mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 13:30:37 +02:00
ide: change class dialog: simplify look, apply changes on return key press
git-svn-id: trunk@22632 -
This commit is contained in:
parent
d3644a32b1
commit
f8141283a2
@ -3,14 +3,13 @@ object ChangeClassDlg: TChangeClassDlg
|
|||||||
Height = 350
|
Height = 350
|
||||||
Top = 163
|
Top = 163
|
||||||
Width = 470
|
Width = 470
|
||||||
ActiveControl = OldAncestorsListBox
|
|
||||||
BorderIcons = [biSystemMenu, biMinimize]
|
BorderIcons = [biSystemMenu, biMinimize]
|
||||||
BorderStyle = bsToolWindow
|
BorderStyle = bsToolWindow
|
||||||
Caption = 'ChangeClassDlg'
|
Caption = 'ChangeClassDlg'
|
||||||
ClientHeight = 350
|
ClientHeight = 350
|
||||||
ClientWidth = 470
|
ClientWidth = 470
|
||||||
OnCreate = ChangeClassDlgCreate
|
OnCreate = ChangeClassDlgCreate
|
||||||
LCLVersion = '0.9.27'
|
LCLVersion = '0.9.29'
|
||||||
object OldGroupBox: TGroupBox
|
object OldGroupBox: TGroupBox
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 306
|
Height = 306
|
||||||
@ -23,39 +22,39 @@ object ChangeClassDlg: TChangeClassDlg
|
|||||||
ClientWidth = 224
|
ClientWidth = 224
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
object OldClassLabel: TLabel
|
object OldClassLabel: TLabel
|
||||||
|
AnchorSideLeft.Control = OldGroupBox
|
||||||
|
AnchorSideTop.Control = OldGroupBox
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 14
|
Height = 14
|
||||||
Top = 2
|
Top = 9
|
||||||
Width = 67
|
Width = 78
|
||||||
|
BorderSpacing.Top = 3
|
||||||
|
BorderSpacing.Bottom = 4
|
||||||
|
BorderSpacing.Around = 6
|
||||||
Caption = 'OldClassLabel'
|
Caption = 'OldClassLabel'
|
||||||
|
Font.Style = [fsBold]
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
|
ParentFont = False
|
||||||
end
|
end
|
||||||
object OldAncestorGroupBox: TGroupBox
|
object OldAncestorsListBox: TListBox
|
||||||
|
AnchorSideLeft.Control = OldGroupBox
|
||||||
AnchorSideTop.Control = OldClassLabel
|
AnchorSideTop.Control = OldClassLabel
|
||||||
AnchorSideTop.Side = asrBottom
|
AnchorSideTop.Side = asrBottom
|
||||||
Left = 0
|
AnchorSideRight.Control = OldGroupBox
|
||||||
Height = 266
|
AnchorSideRight.Side = asrBottom
|
||||||
Top = 22
|
AnchorSideBottom.Control = OldGroupBox
|
||||||
Width = 224
|
AnchorSideBottom.Side = asrBottom
|
||||||
Align = alBottom
|
Left = 6
|
||||||
|
Height = 249
|
||||||
|
Top = 33
|
||||||
|
Width = 212
|
||||||
Anchors = [akTop, akLeft, akRight, akBottom]
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
BorderSpacing.Top = 6
|
BorderSpacing.Around = 6
|
||||||
Caption = 'OldAncestorGroupBox'
|
|
||||||
ClientHeight = 248
|
|
||||||
ClientWidth = 220
|
|
||||||
TabOrder = 0
|
|
||||||
object OldAncestorsListBox: TListBox
|
|
||||||
Left = 0
|
|
||||||
Height = 248
|
|
||||||
Top = 0
|
|
||||||
Width = 220
|
|
||||||
Align = alClient
|
|
||||||
ClickOnSelChange = False
|
ClickOnSelChange = False
|
||||||
ItemHeight = 0
|
ItemHeight = 0
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
object NewGroupBox: TGroupBox
|
object NewGroupBox: TGroupBox
|
||||||
Left = 240
|
Left = 240
|
||||||
Height = 306
|
Height = 306
|
||||||
@ -68,40 +67,41 @@ object ChangeClassDlg: TChangeClassDlg
|
|||||||
ClientWidth = 220
|
ClientWidth = 220
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
object NewClassComboBox: TComboBox
|
object NewClassComboBox: TComboBox
|
||||||
|
AnchorSideLeft.Control = NewGroupBox
|
||||||
|
AnchorSideTop.Control = NewGroupBox
|
||||||
|
AnchorSideRight.Control = NewGroupBox
|
||||||
|
AnchorSideRight.Side = asrBottom
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 21
|
Height = 21
|
||||||
Top = 6
|
Top = 6
|
||||||
Width = 208
|
Width = 208
|
||||||
Align = alTop
|
Anchors = [akTop, akLeft, akRight]
|
||||||
AutoComplete = True
|
AutoComplete = True
|
||||||
AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
|
AutoCompleteText = [cbactEnabled, cbactEndOfLineComplete, cbactSearchAscending]
|
||||||
BorderSpacing.Around = 6
|
BorderSpacing.Around = 6
|
||||||
ItemHeight = 13
|
ItemHeight = 13
|
||||||
ItemWidth = 0
|
|
||||||
OnEditingDone = NewClassComboBoxEditingDone
|
OnEditingDone = NewClassComboBoxEditingDone
|
||||||
|
OnKeyUp = NewClassComboBoxKeyUp
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
Text = 'NewClassComboBox'
|
Text = 'NewClassComboBox'
|
||||||
end
|
end
|
||||||
object NewAncestorGroupBox: TGroupBox
|
|
||||||
Left = 0
|
|
||||||
Height = 255
|
|
||||||
Top = 33
|
|
||||||
Width = 220
|
|
||||||
Align = alClient
|
|
||||||
Caption = 'NewAncestorGroupBox'
|
|
||||||
ClientHeight = 237
|
|
||||||
ClientWidth = 216
|
|
||||||
TabOrder = 1
|
|
||||||
object NewAncestorsListBox: TListBox
|
object NewAncestorsListBox: TListBox
|
||||||
Left = 0
|
AnchorSideLeft.Control = NewGroupBox
|
||||||
Height = 237
|
AnchorSideTop.Control = NewClassComboBox
|
||||||
Top = 0
|
AnchorSideTop.Side = asrBottom
|
||||||
Width = 216
|
AnchorSideRight.Control = NewGroupBox
|
||||||
Align = alClient
|
AnchorSideRight.Side = asrBottom
|
||||||
|
AnchorSideBottom.Control = NewGroupBox
|
||||||
|
AnchorSideBottom.Side = asrBottom
|
||||||
|
Left = 6
|
||||||
|
Height = 249
|
||||||
|
Top = 33
|
||||||
|
Width = 208
|
||||||
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
|
BorderSpacing.Around = 6
|
||||||
ClickOnSelChange = False
|
ClickOnSelChange = False
|
||||||
ItemHeight = 0
|
ItemHeight = 0
|
||||||
TabOrder = 0
|
TabOrder = 1
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object BtnPanel: TButtonPanel
|
object BtnPanel: TButtonPanel
|
||||||
|
@ -2,37 +2,44 @@
|
|||||||
|
|
||||||
LazarusResources.Add('TChangeClassDlg','FORMDATA',[
|
LazarusResources.Add('TChangeClassDlg','FORMDATA',[
|
||||||
'TPF0'#15'TChangeClassDlg'#14'ChangeClassDlg'#4'Left'#3'#'#1#6'Height'#3'^'#1
|
'TPF0'#15'TChangeClassDlg'#14'ChangeClassDlg'#4'Left'#3'#'#1#6'Height'#3'^'#1
|
||||||
+#3'Top'#3#163#0#5'Width'#3#214#1#13'ActiveControl'#7#19'OldAncestorsListBox'
|
+#3'Top'#3#163#0#5'Width'#3#214#1#11'BorderIcons'#11#12'biSystemMenu'#10'biMi'
|
||||||
+#11'BorderIcons'#11#12'biSystemMenu'#10'biMinimize'#0#11'BorderStyle'#7#12'b'
|
+'nimize'#0#11'BorderStyle'#7#12'bsToolWindow'#7'Caption'#6#14'ChangeClassDlg'
|
||||||
+'sToolWindow'#7'Caption'#6#14'ChangeClassDlg'#12'ClientHeight'#3'^'#1#11'Cli'
|
+#12'ClientHeight'#3'^'#1#11'ClientWidth'#3#214#1#8'OnCreate'#7#20'ChangeClas'
|
||||||
+'entWidth'#3#214#1#8'OnCreate'#7#20'ChangeClassDlgCreate'#10'LCLVersion'#6#6
|
+'sDlgCreate'#10'LCLVersion'#6#6'0.9.29'#0#9'TGroupBox'#11'OldGroupBox'#4'Lef'
|
||||||
+'0.9.27'#0#9'TGroupBox'#11'OldGroupBox'#4'Left'#2#6#6'Height'#3'2'#1#3'Top'#2
|
+'t'#2#6#6'Height'#3'2'#1#3'Top'#2#6#5'Width'#3#228#0#5'Align'#7#8'alClient'
|
||||||
+#6#5'Width'#3#228#0#5'Align'#7#8'alClient'#20'BorderSpacing.Around'#2#6#7'Ca'
|
+#20'BorderSpacing.Around'#2#6#7'Caption'#6#11'OldGroupBox'#12'ClientHeight'#3
|
||||||
+'ption'#6#11'OldGroupBox'#12'ClientHeight'#3' '#1#11'ClientWidth'#3#224#0#8
|
+' '#1#11'ClientWidth'#3#224#0#8'TabOrder'#2#0#0#6'TLabel'#13'OldClassLabel'
|
||||||
+'TabOrder'#2#0#0#6'TLabel'#13'OldClassLabel'#4'Left'#2#6#6'Height'#2#14#3'To'
|
+#22'AnchorSideLeft.Control'#7#11'OldGroupBox'#21'AnchorSideTop.Control'#7#11
|
||||||
+'p'#2#2#5'Width'#2'C'#7'Caption'#6#13'OldClassLabel'#11'ParentColor'#8#0#0#9
|
+'OldGroupBox'#4'Left'#2#6#6'Height'#2#14#3'Top'#2#9#5'Width'#2'N'#17'BorderS'
|
||||||
+'TGroupBox'#19'OldAncestorGroupBox'#21'AnchorSideTop.Control'#7#13'OldClassL'
|
+'pacing.Top'#2#3#20'BorderSpacing.Bottom'#2#4#20'BorderSpacing.Around'#2#6#7
|
||||||
+'abel'#18'AnchorSideTop.Side'#7#9'asrBottom'#4'Left'#2#0#6'Height'#3#10#1#3
|
+'Caption'#6#13'OldClassLabel'#10'Font.Style'#11#6'fsBold'#0#11'ParentColor'#8
|
||||||
+'Top'#2#22#5'Width'#3#224#0#5'Align'#7#8'alBottom'#7'Anchors'#11#5'akTop'#6
|
+#10'ParentFont'#8#0#0#8'TListBox'#19'OldAncestorsListBox'#22'AnchorSideLeft.'
|
||||||
+'akLeft'#7'akRight'#8'akBottom'#0#17'BorderSpacing.Top'#2#6#7'Caption'#6#19
|
+'Control'#7#11'OldGroupBox'#21'AnchorSideTop.Control'#7#13'OldClassLabel'#18
|
||||||
+'OldAncestorGroupBox'#12'ClientHeight'#3#248#0#11'ClientWidth'#3#220#0#8'Tab'
|
+'AnchorSideTop.Side'#7#9'asrBottom'#23'AnchorSideRight.Control'#7#11'OldGrou'
|
||||||
+'Order'#2#0#0#8'TListBox'#19'OldAncestorsListBox'#4'Left'#2#0#6'Height'#3#248
|
+'pBox'#20'AnchorSideRight.Side'#7#9'asrBottom'#24'AnchorSideBottom.Control'#7
|
||||||
+#0#3'Top'#2#0#5'Width'#3#220#0#5'Align'#7#8'alClient'#16'ClickOnSelChange'#8
|
+#11'OldGroupBox'#21'AnchorSideBottom.Side'#7#9'asrBottom'#4'Left'#2#6#6'Heig'
|
||||||
+#10'ItemHeight'#2#0#8'TabOrder'#2#0#0#0#0#0#9'TGroupBox'#11'NewGroupBox'#4'L'
|
+'ht'#3#249#0#3'Top'#2'!'#5'Width'#3#212#0#7'Anchors'#11#5'akTop'#6'akLeft'#7
|
||||||
+'eft'#3#240#0#6'Height'#3'2'#1#3'Top'#2#6#5'Width'#3#224#0#5'Align'#7#7'alRi'
|
+'akRight'#8'akBottom'#0#20'BorderSpacing.Around'#2#6#16'ClickOnSelChange'#8
|
||||||
+'ght'#20'BorderSpacing.Around'#2#6#7'Caption'#6#11'NewGroupBox'#12'ClientHei'
|
+#10'ItemHeight'#2#0#8'TabOrder'#2#0#0#0#0#9'TGroupBox'#11'NewGroupBox'#4'Lef'
|
||||||
+'ght'#3' '#1#11'ClientWidth'#3#220#0#8'TabOrder'#2#1#0#9'TComboBox'#16'NewCl'
|
+'t'#3#240#0#6'Height'#3'2'#1#3'Top'#2#6#5'Width'#3#224#0#5'Align'#7#7'alRigh'
|
||||||
+'assComboBox'#4'Left'#2#6#6'Height'#2#21#3'Top'#2#6#5'Width'#3#208#0#5'Align'
|
+'t'#20'BorderSpacing.Around'#2#6#7'Caption'#6#11'NewGroupBox'#12'ClientHeigh'
|
||||||
+#7#5'alTop'#12'AutoComplete'#9#16'AutoCompleteText'#11#12'cbactEnabled'#22'c'
|
+'t'#3' '#1#11'ClientWidth'#3#220#0#8'TabOrder'#2#1#0#9'TComboBox'#16'NewClas'
|
||||||
+'bactEndOfLineComplete'#20'cbactSearchAscending'#0#20'BorderSpacing.Around'#2
|
+'sComboBox'#22'AnchorSideLeft.Control'#7#11'NewGroupBox'#21'AnchorSideTop.Co'
|
||||||
+#6#10'ItemHeight'#2#13#9'ItemWidth'#2#0#13'OnEditingDone'#7#27'NewClassCombo'
|
+'ntrol'#7#11'NewGroupBox'#23'AnchorSideRight.Control'#7#11'NewGroupBox'#20'A'
|
||||||
+'BoxEditingDone'#8'TabOrder'#2#0#4'Text'#6#16'NewClassComboBox'#0#0#9'TGroup'
|
+'nchorSideRight.Side'#7#9'asrBottom'#4'Left'#2#6#6'Height'#2#21#3'Top'#2#6#5
|
||||||
+'Box'#19'NewAncestorGroupBox'#4'Left'#2#0#6'Height'#3#255#0#3'Top'#2'!'#5'Wi'
|
+'Width'#3#208#0#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#0#12'AutoComplet'
|
||||||
+'dth'#3#220#0#5'Align'#7#8'alClient'#7'Caption'#6#19'NewAncestorGroupBox'#12
|
+'e'#9#16'AutoCompleteText'#11#12'cbactEnabled'#22'cbactEndOfLineComplete'#20
|
||||||
+'ClientHeight'#3#237#0#11'ClientWidth'#3#216#0#8'TabOrder'#2#1#0#8'TListBox'
|
+'cbactSearchAscending'#0#20'BorderSpacing.Around'#2#6#10'ItemHeight'#2#13#13
|
||||||
+#19'NewAncestorsListBox'#4'Left'#2#0#6'Height'#3#237#0#3'Top'#2#0#5'Width'#3
|
+'OnEditingDone'#7#27'NewClassComboBoxEditingDone'#7'OnKeyUp'#7#21'NewClassCo'
|
||||||
+#216#0#5'Align'#7#8'alClient'#16'ClickOnSelChange'#8#10'ItemHeight'#2#0#8'Ta'
|
+'mboBoxKeyUp'#8'TabOrder'#2#0#4'Text'#6#16'NewClassComboBox'#0#0#8'TListBox'
|
||||||
+'bOrder'#2#0#0#0#0#0#12'TButtonPanel'#8'BtnPanel'#4'Left'#2#6#6'Height'#2#26
|
+#19'NewAncestorsListBox'#22'AnchorSideLeft.Control'#7#11'NewGroupBox'#21'Anc'
|
||||||
+#3'Top'#3'>'#1#5'Width'#3#202#1#8'TabOrder'#2#2#11'ShowButtons'#11#4'pbOK'#8
|
+'horSideTop.Control'#7#16'NewClassComboBox'#18'AnchorSideTop.Side'#7#9'asrBo'
|
||||||
+'pbCancel'#0#9'ShowBevel'#8#0#0#0
|
+'ttom'#23'AnchorSideRight.Control'#7#11'NewGroupBox'#20'AnchorSideRight.Side'
|
||||||
|
+#7#9'asrBottom'#24'AnchorSideBottom.Control'#7#11'NewGroupBox'#21'AnchorSide'
|
||||||
|
+'Bottom.Side'#7#9'asrBottom'#4'Left'#2#6#6'Height'#3#249#0#3'Top'#2'!'#5'Wid'
|
||||||
|
+'th'#3#208#0#7'Anchors'#11#5'akTop'#6'akLeft'#7'akRight'#8'akBottom'#0#20'Bo'
|
||||||
|
+'rderSpacing.Around'#2#6#16'ClickOnSelChange'#8#10'ItemHeight'#2#0#8'TabOrde'
|
||||||
|
+'r'#2#1#0#0#0#12'TButtonPanel'#8'BtnPanel'#4'Left'#2#6#6'Height'#2#26#3'Top'
|
||||||
|
+#3'>'#1#5'Width'#3#202#1#8'TabOrder'#2#2#11'ShowButtons'#11#4'pbOK'#8'pbCanc'
|
||||||
|
+'el'#0#9'ShowBevel'#8#0#0#0
|
||||||
]);
|
]);
|
||||||
|
@ -36,7 +36,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, LCLProc, LResources, Forms, Controls, Graphics, Dialogs,
|
Classes, SysUtils, LCLProc, LResources, Forms, Controls, Graphics, Dialogs,
|
||||||
StdCtrls, Buttons, AVGLvlTree, LFMTrees, CodeCache, CodeToolManager,
|
StdCtrls, Buttons, AVGLvlTree, LFMTrees, CodeCache, CodeToolManager, LCLType,
|
||||||
// IDE
|
// IDE
|
||||||
SrcEditorIntf, PropEdits, LazarusIDEStrConsts, ComponentReg, ComponentEditors,
|
SrcEditorIntf, PropEdits, LazarusIDEStrConsts, ComponentReg, ComponentEditors,
|
||||||
FormEditingIntf, CheckLFMDlg, Project, MainIntf, ExtCtrls, ButtonPanel;
|
FormEditingIntf, CheckLFMDlg, Project, MainIntf, ExtCtrls, ButtonPanel;
|
||||||
@ -48,15 +48,15 @@ type
|
|||||||
TChangeClassDlg = class(TForm)
|
TChangeClassDlg = class(TForm)
|
||||||
BtnPanel: TButtonPanel;
|
BtnPanel: TButtonPanel;
|
||||||
NewClassComboBox: TComboBox;
|
NewClassComboBox: TComboBox;
|
||||||
NewAncestorGroupBox: TGroupBox;
|
|
||||||
NewAncestorsListBox: TListBox;
|
NewAncestorsListBox: TListBox;
|
||||||
OldAncestorGroupBox: TGroupBox;
|
|
||||||
OldAncestorsListBox: TListBox;
|
OldAncestorsListBox: TListBox;
|
||||||
OldClassLabel: TLabel;
|
OldClassLabel: TLabel;
|
||||||
NewGroupBox: TGroupBox;
|
NewGroupBox: TGroupBox;
|
||||||
OldGroupBox: TGroupBox;
|
OldGroupBox: TGroupBox;
|
||||||
procedure ChangeClassDlgCreate(Sender: TObject);
|
procedure ChangeClassDlgCreate(Sender: TObject);
|
||||||
procedure NewClassComboBoxEditingDone(Sender: TObject);
|
procedure NewClassComboBoxEditingDone(Sender: TObject);
|
||||||
|
procedure NewClassComboBoxKeyUp(Sender: TObject; var Key: Word;
|
||||||
|
Shift: TShiftState);
|
||||||
private
|
private
|
||||||
FClasses: TAvgLvlTree;
|
FClasses: TAvgLvlTree;
|
||||||
FNewClass: TClass;
|
FNewClass: TClass;
|
||||||
@ -301,8 +301,6 @@ procedure TChangeClassDlg.ChangeClassDlgCreate(Sender: TObject);
|
|||||||
begin
|
begin
|
||||||
OldGroupBox.Caption:=lisOldClass;
|
OldGroupBox.Caption:=lisOldClass;
|
||||||
NewGroupBox.Caption:=lisNewClass;
|
NewGroupBox.Caption:=lisNewClass;
|
||||||
OldAncestorGroupBox.Caption:=lisOldAncestors;
|
|
||||||
NewAncestorGroupBox.Caption:=lisNewAncestors;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TChangeClassDlg.NewClassComboBoxEditingDone(Sender: TObject);
|
procedure TChangeClassDlg.NewClassComboBoxEditingDone(Sender: TObject);
|
||||||
@ -310,6 +308,13 @@ begin
|
|||||||
UpdateNewInfo;
|
UpdateNewInfo;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TChangeClassDlg.NewClassComboBoxKeyUp(Sender: TObject; var Key: Word;
|
||||||
|
Shift: TShiftState);
|
||||||
|
begin
|
||||||
|
if Key = VK_RETURN then
|
||||||
|
UpdateNewInfo;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TChangeClassDlg.SetThePersistent(const AValue: TPersistent);
|
procedure TChangeClassDlg.SetThePersistent(const AValue: TPersistent);
|
||||||
begin
|
begin
|
||||||
if FThePersistent=AValue then exit;
|
if FThePersistent=AValue then exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user