Re: [lazarus] Making Configure Build Lazarus more user friendly
On Tue, 24 Jul 2007 10:06:07 +0200 Giuliano Colla [EMAIL PROTECTED] wrote: This one is how it looks when you open the dialog. Sorry to say, but that is ugly. I would like the dialog to remember that I always want to see the advanced options. Is that possible? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making Configure Build Lazarus more user friendly
Lord Satan ha scritto: On Tue, 24 Jul 2007 10:06:07 +0200 Giuliano Colla [EMAIL PROTECTED] wrote: This one is how it looks when you open the dialog. Sorry to say, but that is ugly. I would like the dialog to remember that I always want to see the advanced options. Is that possible? Just click the "Advanced" button, and you're set. This solution came out as a result of the different suggestions (See Mattias Grtner's + Michael Van Canneyt's + Al Boldi's comments). Of course, another possibility is to have always the look of the "advanced" page, i.e. not to hide the advanced options and keep the quick options in the lower right corner. But it's up to you guys to decide. IMHO this solution is less frightening for a non-expert, which is not even shown options he doesn't understand (what in the hell is JIT? Should I build it or not? To insert a package do I need to rebuild IDE interface or not?) but that's just my opinion. Debate is open. Giuliano -- Giuliano Colla Still using C++ and Visual Studio? I'm using Object Pascal and Lazarus. _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Making Configure Build Lazarus more user friendly
The configure build lazarus IDE provides a lot of options which the majority of us don't use, but we're however forced to check/uncheck. Therefore I've added a small Group Box, named Quick Configure Options with thre buttons: All, LCL, and Custom. The first two cover (in my opinion) the needs of the vast majority of users, while the third one can be handy. The All Button checks all the Build (or Clean+Build, if Clean All is checked), the LCL button unchecks everything, except LCL (which is set to Build or Clean+Build as above), while Custom unchecks everything. If the idea seems good, the attached patch can be applied, or someone can do it better. If not, I'll just keep it for me, because I find it handy. Giuliano Index: ide/buildlazdialog.pas === --- ide/buildlazdialog.pas (revisione 11586) +++ ide/buildlazdialog.pas (copia locale) @@ -175,6 +175,7 @@ CancelButton: TButton; CleanAllCheckBox: TCheckBox; ConfirmBuildCheckBox: TCheckBox; +BuildOptionsGroupBox: TGroupBox; ItemListHeader: THeaderControl; ItemsListBox: TListBox; LCLInterfaceRadioGroup: TRadioGroup; @@ -182,6 +183,9 @@ OptionsEdit: TEdit; OptionsLabel: TLabel; RestartAfterBuildCheckBox: TCheckBox; +BuildAllSpeedButton: TSpeedButton; +BuildLCLSpeedButton: TSpeedButton; +CustomBuildSpeedButton: TSpeedButton; TargetCPUComboBox: TComboBox; TargetCPULabel: TLabel; TargetDirectoryButton: TButton; @@ -190,8 +194,12 @@ TargetOSEdit: TEdit; TargetOSLabel: TLabel; WithStaticPackagesCheckBox: TCheckBox; +procedure BuildLCLSpeedButtonMouseUp(Sender: TObject; Button: TMouseButton; + Shift: TShiftState; X, Y: Integer); procedure CancelButtonClick(Sender: TObject); procedure CompileButtonClick(Sender: TObject); +procedure CustomBuildSpeedButtonMouseUp(Sender: TObject; + Button: TMouseButton; Shift: TShiftState; X, Y: Integer); procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); @@ -204,6 +212,8 @@ Shift: TShiftState; X, Y: Integer); procedure ItemsListBoxShowHint(Sender: TObject; HintInfo: PHintInfo); procedure SaveSettingsButtonClick(Sender: TObject); +procedure BuildAllSpeedButtonMouseUp(Sender: TObject; Button: TMouseButton; + Shift: TShiftState; X, Y: Integer); procedure TargetDirectoryButtonClick(Sender: TObject); private Options: TBuildLazarusOptions; @@ -837,6 +847,58 @@ ModalResult:=mrOk; end; +procedure TConfigureBuildLazarusDlg.BuildAllSpeedButtonMouseUp(Sender: TObject; + Button: TMouseButton; Shift: TShiftState; X, Y: Integer); +var + i: Integer; + Spb: TSpeedButton; + mm: TMakeMode; +begin + Spb := Sender as TSpeedButton; + if not Spb.Down then exit; + if CleanAllCheckBox.Checked then mm := mmCleanBuild + else mm := mmBuild; + for i := 0 to OPtions.Count-1 do begin +Options.Items[i].MakeMode := mm; +end; + ItemsListBox.Invalidate; +end; + +procedure TConfigureBuildLazarusDlg.BuildLCLSpeedButtonMouseUp(Sender: TObject; + Button: TMouseButton; Shift: TShiftState; X, Y: Integer); +var + i: Integer; + Spb: TSpeedButton; + mm: TMakeMode; +begin + Spb := Sender as TSpeedButton; + if not Spb.Down then exit; + if CleanAllCheckBox.Checked then mm := mmCleanBuild + else mm := mmBuild; + for i := 0 to OPtions.Count-1 do begin +If Options.Items[i].Description = 'LCL' then + Options.Items[i].MakeMode := mm +else + Options.Items[i].MakeMode := mmNone; +end; + ItemsListBox.Invalidate; + +end; + +procedure TConfigureBuildLazarusDlg.CustomBuildSpeedButtonMouseUp( + Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); +var + i: Integer; + Spb: TSpeedButton; +begin + Spb := Sender as TSpeedButton; + if not Spb.Down then exit; + for i := 0 to OPtions.Count-1 do begin +Options.Items[i].MakeMode := mmNone; +end; + ItemsListBox.Invalidate; +end; + procedure TConfigureBuildLazarusDlg.TargetDirectoryButtonClick(Sender: TObject); var AFilename: String; Index: ide/buildlazdialog.lrs === --- ide/buildlazdialog.lrs (revisione 11586) +++ ide/buildlazdialog.lrs (copia locale) @@ -10,109 +10,120 @@ +'lose'#8'OnCreate'#7#10'FormCreate'#9'OnDestroy'#7#11'FormDestroy'#8'Positio' +'n'#7#14'poScreenCenter'#0#6'TLabel'#12'OptionsLabel'#22'AnchorSideLeft.Cont' +'rol'#7#12'ItemsListBox'#21'AnchorSideTop.Control'#7#12'ItemsListBox'#18'Anc' - +'horSideTop.Side'#7#9'asrBottom'#4'Left'#2#6#6'Height'#2#14#3'Top'#3#26#1#5 - +'Width'#2'*'#17'BorderSpacing.Top'#2#18#7'Caption'#6#8'Options:'#5'Color'#7#6 - +'clNone'#11'ParentColor'#8#0#0#6'TLabel'#13'TargetOSLabel'#22'AnchorSideLeft' -
Re: [lazarus] Making Configure Build Lazarus more user friendly
En/na Giuliano Colla ha escrit: The All Button checks all the Build (or Clean+Build, if Clean All is checked), You can do that now by clicking on the column header for clean+build (the rightmost one) the LCL button unchecks everything, except LCL (which is set to Build or Clean+Build as above), Two clicks: one on the column header with the red cross (the leftmost one), then click on build or clean+build for the lcl while Custom unchecks everything. click on the column header with the red cross. Bye -- Luca _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making Configure Build Lazarus more user friendly
Giuliano Colla wrote: The configure build lazarus IDE provides a lot of options which the majority of us don't use, but we're however forced to check/uncheck. Therefore I've added a small Group Box, named Quick Configure Options with thre buttons: All, LCL, and Custom. The first two cover (in my opinion) the needs of the vast majority of users, while the third one can be handy. The All Button checks all the Build (or Clean+Build, if Clean All is checked), the LCL button unchecks everything, except LCL (which is set to Build or Clean+Build as above), while Custom unchecks everything. If the idea seems good, the attached patch can be applied, or someone can do it better. If not, I'll just keep it for me, because I find it handy. This is great, but there is one important option missing: Build Packages which would turn off everything, except IDE with Packages. Thanks! -- Al _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making Configure Build Lazarus more user friendly
Zitat von Al Boldi [EMAIL PROTECTED]: Giuliano Colla wrote: The configure build lazarus IDE provides a lot of options which the majority of us don't use, but we're however forced to check/uncheck. Therefore I've added a small Group Box, named Quick Configure Options with thre buttons: All, LCL, and Custom. The first two cover (in my opinion) the needs of the vast majority of users, while the third one can be handy. The All Button checks all the Build (or Clean+Build, if Clean All is checked), the LCL button unchecks everything, except LCL (which is set to Build or Clean+Build as above), while Custom unchecks everything. If the idea seems good, the attached patch can be applied, or someone can do it better. If not, I'll just keep it for me, because I find it handy. This is great, but there is one important option missing: Build Packages which would turn off everything, except IDE with Packages. Maybe there should be two pages: One with a simple radiogroup called 'Common' and the other with the current options called 'Advanced'. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making Configure Build Lazarus more user friendly
On Mon, 23 Jul 2007, Mattias Gärtner wrote: Zitat von Al Boldi [EMAIL PROTECTED]: Giuliano Colla wrote: The configure build lazarus IDE provides a lot of options which the majority of us don't use, but we're however forced to check/uncheck. Therefore I've added a small Group Box, named Quick Configure Options with thre buttons: All, LCL, and Custom. The first two cover (in my opinion) the needs of the vast majority of users, while the third one can be handy. The All Button checks all the Build (or Clean+Build, if Clean All is checked), the LCL button unchecks everything, except LCL (which is set to Build or Clean+Build as above), while Custom unchecks everything. If the idea seems good, the attached patch can be applied, or someone can do it better. If not, I'll just keep it for me, because I find it handy. This is great, but there is one important option missing: Build Packages which would turn off everything, except IDE with Packages. Maybe there should be two pages: One with a simple radiogroup called 'Common' and the other with the current options called 'Advanced'. I second this :-) Michael.
Re: [lazarus] Making Configure Build Lazarus more user friendly
Mattias Gärtner wrote: Zitat von Al Boldi [EMAIL PROTECTED]: Giuliano Colla wrote: The configure build lazarus IDE provides a lot of options which the majority of us don't use, but we're however forced to check/uncheck. Therefore I've added a small Group Box, named Quick Configure Options with thre buttons: All, LCL, and Custom. The first two cover (in my opinion) the needs of the vast majority of users, while the third one can be handy. The All Button checks all the Build (or Clean+Build, if Clean All is checked), the LCL button unchecks everything, except LCL (which is set to Build or Clean+Build as above), while Custom unchecks everything. If the idea seems good, the attached patch can be applied, or someone can do it better. If not, I'll just keep it for me, because I find it handy. This is great, but there is one important option missing: Build Packages which would turn off everything, except IDE with Packages. Maybe there should be two pages: One with a simple radiogroup called 'Common' and the other with the current options called 'Advanced'. Instead of pages, have an Advanced button that fold and unfold additional config. Thanks! -- Al _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Making Configure Build Lazarus more user friendly
Mattias Gärtner ha scritto: Zitat von Al Boldi [EMAIL PROTECTED]: Giuliano Colla wrote: The configure build lazarus IDE provides a lot of options which the majority of us don't use, but we're however forced to check/uncheck. Therefore I've added a small Group Box, named Quick Configure Options with thre buttons: All, LCL, and Custom. The first two cover (in my opinion) the needs of the vast majority of users, while the third one can be handy. The All Button checks all the Build (or Clean+Build, if Clean All is checked), the LCL button unchecks everything, except LCL (which is set to Build or Clean+Build as above), while Custom unchecks everything. If the idea seems good, the attached patch can be applied, or someone can do it better. If not, I'll just keep it for me, because I find it handy. This is great, but there is one important option missing: Build Packages which would turn off everything, except IDE with Packages. Maybe there should be two pages: One with a simple radiogroup called 'Common' and the other with the current options called 'Advanced'. This was my original idea, but I've been too lazy to implement it :-( Giuliano _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives