mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 19:00:27 +02:00
clean up
git-svn-id: trunk@17993 -
This commit is contained in:
parent
940989a1ae
commit
389bbfedef
@ -2,15 +2,15 @@
|
|||||||
<CONFIG>
|
<CONFIG>
|
||||||
<ProjectOptions>
|
<ProjectOptions>
|
||||||
<PathDelim Value="/"/>
|
<PathDelim Value="/"/>
|
||||||
<Version Value="6"/>
|
<Version Value="7"/>
|
||||||
<General>
|
<General>
|
||||||
<Flags>
|
<Flags>
|
||||||
<MainUnitHasCreateFormStatements Value="False"/>
|
<MainUnitHasCreateFormStatements Value="False"/>
|
||||||
<MainUnitHasTitleStatement Value="False"/>
|
<MainUnitHasTitleStatement Value="False"/>
|
||||||
|
<LRSInOutputDirectory Value="False"/>
|
||||||
</Flags>
|
</Flags>
|
||||||
<SessionStorage Value="InProjectDir"/>
|
<SessionStorage Value="InProjectDir"/>
|
||||||
<MainUnit Value="0"/>
|
<MainUnit Value="0"/>
|
||||||
<IconPath Value="./"/>
|
|
||||||
<TargetFileExt Value=""/>
|
<TargetFileExt Value=""/>
|
||||||
<Title Value="openglcontrol_demo"/>
|
<Title Value="openglcontrol_demo"/>
|
||||||
</General>
|
</General>
|
||||||
|
@ -8,8 +8,8 @@ object CompOptBuildModesFrame: TCompOptBuildModesFrame
|
|||||||
Ctl3D = False
|
Ctl3D = False
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
Visible = False
|
Visible = False
|
||||||
DesignLeft = 294
|
DesignLeft = 299
|
||||||
DesignTop = 256
|
DesignTop = 280
|
||||||
object ModesGroupBox: TGroupBox
|
object ModesGroupBox: TGroupBox
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 229
|
Height = 229
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
{ This is an automatically generated lazarus resource file }
|
|
||||||
|
|
||||||
LazarusResources.Add('TCompOptBuildModesFrame','FORMDATA',[
|
LazarusResources.Add('TCompOptBuildModesFrame','FORMDATA',[
|
||||||
'TPF0'#23'TCompOptBuildModesFrame'#22'CompOptBuildModesFrame'#4'Left'#2#0#6'H'
|
'TPF0'#23'TCompOptBuildModesFrame'#22'CompOptBuildModesFrame'#4'Left'#2#0#6'H'
|
||||||
+'eight'#3#233#0#3'Top'#2#0#5'Width'#3#236#1#12'ClientHeight'#3#229#0#11'Clie'
|
+'eight'#3#233#0#3'Top'#2#0#5'Width'#3#236#1#12'ClientHeight'#3#229#0#11'Clie'
|
||||||
+'ntWidth'#3#232#1#5'Ctl3D'#8#8'TabOrder'#2#0#7'Visible'#8#10'DesignLeft'#3'&'
|
+'ntWidth'#3#232#1#5'Ctl3D'#8#8'TabOrder'#2#0#7'Visible'#8#10'DesignLeft'#3'+'
|
||||||
+#1#9'DesignTop'#3#0#1#0#9'TGroupBox'#13'ModesGroupBox'#4'Left'#2#0#6'Height'
|
+#1#9'DesignTop'#3#24#1#0#9'TGroupBox'#13'ModesGroupBox'#4'Left'#2#0#6'Height'
|
||||||
+#3#229#0#3'Top'#2#0#5'Width'#3#186#0#5'Align'#7#6'alLeft'#7'Caption'#6#13'Mo'
|
+#3#229#0#3'Top'#2#0#5'Width'#3#186#0#5'Align'#7#6'alLeft'#7'Caption'#6#13'Mo'
|
||||||
+'desGroupBox'#12'ClientHeight'#3#210#0#11'ClientWidth'#3#182#0#5'Ctl3D'#8#8
|
+'desGroupBox'#12'ClientHeight'#3#210#0#11'ClientWidth'#3#182#0#5'Ctl3D'#8#8
|
||||||
+'TabOrder'#2#0#0#12'TSpeedButton'#14'NewSpeedButton'#22'AnchorSideLeft.Contr'
|
+'TabOrder'#2#0#0#12'TSpeedButton'#14'NewSpeedButton'#22'AnchorSideLeft.Contr'
|
||||||
|
@ -25,7 +25,9 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, LResources, Forms, StdCtrls, Grids, Buttons,
|
Classes, SysUtils, FileUtil, LResources, Forms, StdCtrls, Grids, Buttons,
|
||||||
ExtCtrls, Options_Compiler_Conditionals;
|
ExtCtrls,
|
||||||
|
IDEImagesIntf, ProjectIntf, CompilerOptions,
|
||||||
|
Options_Compiler_Conditionals, LazarusIDEStrConsts;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -45,11 +47,77 @@ type
|
|||||||
ValuesSplitter: TSplitter;
|
ValuesSplitter: TSplitter;
|
||||||
ValuesStringGrid: TStringGrid;
|
ValuesStringGrid: TStringGrid;
|
||||||
private
|
private
|
||||||
|
FBuildModes: TIDEBuildModes;
|
||||||
|
procedure SetBuildModes(const AValue: TIDEBuildModes);
|
||||||
|
procedure UpdateModes;
|
||||||
|
procedure UpdateValues;
|
||||||
|
procedure UpdateDefaultValue;
|
||||||
|
procedure UpdateButtons;
|
||||||
public
|
public
|
||||||
|
constructor Create(TheOwner: TComponent); override;
|
||||||
|
destructor Destroy; override;
|
||||||
|
property BuildModes: TIDEBuildModes read FBuildModes write SetBuildModes;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
{ TCompOptBuildModesFrame }
|
||||||
|
|
||||||
|
procedure TCompOptBuildModesFrame.SetBuildModes(const AValue: TIDEBuildModes);
|
||||||
|
begin
|
||||||
|
if FBuildModes=AValue then exit;
|
||||||
|
FBuildModes:=AValue;
|
||||||
|
UpdateModes;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCompOptBuildModesFrame.UpdateModes;
|
||||||
|
begin
|
||||||
|
|
||||||
|
UpdateValues;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCompOptBuildModesFrame.UpdateValues;
|
||||||
|
begin
|
||||||
|
UpdateDefaultValue;
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCompOptBuildModesFrame.UpdateDefaultValue;
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
procedure TCompOptBuildModesFrame.UpdateButtons;
|
||||||
|
begin
|
||||||
|
|
||||||
|
end;
|
||||||
|
|
||||||
|
constructor TCompOptBuildModesFrame.Create(TheOwner: TComponent);
|
||||||
|
begin
|
||||||
|
inherited Create(TheOwner);
|
||||||
|
|
||||||
|
DefaultValueGroupBox.Caption:='Default value';
|
||||||
|
ValuesGroupBox.Caption:='Values';
|
||||||
|
ModesGroupBox.Caption:='Build modes';
|
||||||
|
NewSpeedButton.LoadGlyphFromLazarusResource('menu_new');
|
||||||
|
NewSpeedButton.ShowHint:=true;
|
||||||
|
NewSpeedButton.Hint:='Create new build mode';
|
||||||
|
DeleteSpeedButton.LoadGlyphFromLazarusResource('menu_project_remove');
|
||||||
|
DeleteSpeedButton.ShowHint:=true;
|
||||||
|
DeleteSpeedButton.Hint:='Delete ...';
|
||||||
|
MoveDownSpeedButton.LoadGlyphFromLazarusResource('arrow_down');
|
||||||
|
MoveDownSpeedButton.ShowHint:=true;
|
||||||
|
MoveDownSpeedButton.Hint:='Move down';
|
||||||
|
MoveUpSpeedButton.LoadGlyphFromLazarusResource('arrow_up');
|
||||||
|
MoveUpSpeedButton.ShowHint:=true;
|
||||||
|
MoveUpSpeedButton.Hint:='Move up';
|
||||||
|
end;
|
||||||
|
|
||||||
|
destructor TCompOptBuildModesFrame.Destroy;
|
||||||
|
begin
|
||||||
|
|
||||||
|
inherited Destroy;
|
||||||
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
{$I options_compiler_buildmodes.lrs}
|
{$I options_compiler_buildmodes.lrs}
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
<PackageName Value="SynEdit"/>
|
<PackageName Value="SynEdit"/>
|
||||||
</Item4>
|
</Item4>
|
||||||
</RequiredPackages>
|
</RequiredPackages>
|
||||||
<Units Count="33">
|
<Units Count="34">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="lazarus.pp"/>
|
<Filename Value="lazarus.pp"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
@ -267,6 +267,14 @@
|
|||||||
<ResourceBaseClass Value="Frame"/>
|
<ResourceBaseClass Value="Frame"/>
|
||||||
<UnitName Value="Options_Compiler_Conditionals"/>
|
<UnitName Value="Options_Compiler_Conditionals"/>
|
||||||
</Unit32>
|
</Unit32>
|
||||||
|
<Unit33>
|
||||||
|
<Filename Value="frames/options_compiler_buildmodes.pas"/>
|
||||||
|
<ComponentName Value="CompOptBuildModesFrame"/>
|
||||||
|
<HasResources Value="True"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<ResourceBaseClass Value="Frame"/>
|
||||||
|
<UnitName Value="options_compiler_buildmodes"/>
|
||||||
|
</Unit33>
|
||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
|
Loading…
Reference in New Issue
Block a user