Recent

Author Topic: Project Wizard  (Read 2359 times)

Zath

  • Sr. Member
  • ****
  • Posts: 391
Project Wizard
« on: April 17, 2015, 02:11:44 pm »
After another thread I made, I learnt about the Project Menu option.
If I use Project > Close Project; A Project Wizard appears.
I can't see any other way of calling this wizard up.
Also, if I close this wizard via the top right windows close option, it not only closes the wizard but also closes Lazarus. This seems odd and surely should just close the wizard, especially when there is a specific "Close Lazarus" button on the wizard.
Quote

This earlier thread mentions similar.
http://forum.lazarus.freepascal.org/index.php/topic,21070.msg122948.html#msg122948

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Project Wizard
« Reply #1 on: April 17, 2015, 02:28:47 pm »
Probably not easy to solve, Lazarus is designed to run with just one opened project. It cannot run without project nor with more projects.
Project Menu is something I didn't use for a years. Recent Projects,  example projects  and New Project are reachable from menu Project, conversion of Delphi project is in Tools.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Signal

  • New Member
  • *
  • Posts: 41
Re: Project Wizard
« Reply #2 on: April 17, 2015, 02:29:23 pm »
In Lazarus, you cannot not have a project. A lot of people find that odd, but that is the way it is. If you don't have anything else, you have the infamous Project1.   :D

So, no project, no Lazarus. Since you are a point where you are forced to choose either a new or existing project or close Lazarus, simply closing the form instead closes Lazarus. The other option would be to force you to Project1, which might not be acceptable either.

rvk

  • Hero Member
  • *****
  • Posts: 6726
Re: Project Wizard
« Reply #3 on: April 17, 2015, 02:29:58 pm »
Here is also a similar thread with more explanation as to why you can't have Lazarus open without a project.
http://forum.lazarus.freepascal.org/index.php/topic,27664.0.html

You can "hack" Lazarus to automatically open an empty project (i.e. ProjectDescriptorEmptyProject) when closing the wizard but there always needs to be a project present.
(You can use a variant of the code I showed in Reply #4 in that thread)

For example doing this in TMainIDE.DoNoProjectWizard in .\lazarus\ide\main.pp will get what you want.
Code: [Select]
    tpws_closeIDE:
      // if QuitIDE then exit;
      DoNewProject(ProjectDescriptorEmptyProject);
(In this case "Quit Lazarus" doesn't work and also opens an empty project but you can always quit via the menu.)

Not sure if it's at all useful to have the IDE open without a project (even an empty one) but it works.
« Last Edit: April 17, 2015, 02:37:56 pm by rvk »

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: Project Wizard
« Reply #4 on: April 17, 2015, 03:55:08 pm »
I read this too :
Quote
http://forum.lazarus.freepascal.org/index.php/topic,27664.0.html

I didn't need an empty IDE, it was just that closing the wizard via the close window option closed Laz' down without any warning. Just seemed unfriendly.

Why not drop the wizard completely and simply have all IDE menu options inactive apart from those, such as Project, that can be used without the IDE becoming unstable. After all, it seems the only way this wizard comes to light is when you try to close a project.

Alternatively make it the main thing we're presented with on startup.
« Last Edit: April 17, 2015, 03:56:45 pm by Zath »

 

TinyPortal © 2005-2018