Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-04

New BuildMode GUI + NewBuildModeWindow define

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

Hi

I finally got the new GUI in project options for build modes working. To test it, build Lazarus with define "NewBuildModeWindow". There is no added functionality yet, only the GUI is more intuitive. The new modal dialog for managing build modes is visually "above" the actual settings, thus indicating it affects them all.

The dialog has a copy of the project's build modes whch are assigned back and forth.
New Assign methods had to be made. I struggled to get rid of all SIGSEGVs for some time.
Now it does not crash but I didn't test if all the settngs are carried correctly with the modes.

Could somebody please test it and comment.

Mattias may want to look at the code, too.
There is one techncal detail: project options dialog works directly with Project1.BuildModes.
If the user clicks Cancel, the modes are restored from a backup copy. IMO a cleaner way is to work on a copy and then assign if the user clicks OK. Is there some technical reason against it?

Regards,
Juha

Reply by email

Mattias Gaertner
to Juha Manninen
[...] If the user clicks Cancel, the modes are restored from a backup copy. IMO a cleaner way is to work on a copy and then assign if the user clicks OK. Is there some technical reason against it?

Yes, this way the frames can show errors after changing a value. The user does not have to click ok and only sees a summary without context.

Mattias

Reply by email

Juha Manninen
to Mattias Gaertner
Mattias Gaertner wrote
Yes, this way the frames can show errors after changing a value. The user does not have to click ok and only sees a summary without context.

Ok...
I wonder how assigning from backup worked. I had to create more Assign methods to get my version running.
Let's see if you find some fundamental flaw there.

BTW, the session in a mode is not stored apparently in my version.

Juha

Reply by email