IDE: New options page for re-ordering component palette entries. Requires define "EnableComponentPaletteOptions".

git-svn-id: trunk@42574 -
This commit is contained in:
juha 2013-09-03 12:04:16 +00:00
parent c537260b95
commit 6baa075aab
6 changed files with 35 additions and 30 deletions

View File

@ -225,11 +225,12 @@ const
EnvOptionsFiles = 100; EnvOptionsFiles = 100;
EnvOptionsDesktop = 200; EnvOptionsDesktop = 200;
EnvOptionsWindow = 300; EnvOptionsWindow = 300;
EnvOptionsCompPalette = 350;
EnvOptionsFormEd = 400; EnvOptionsFormEd = 400;
EnvOptionsOI = 500; EnvOptionsOI = 500;
EnvOptionsBackup = 600; EnvOptionsFpDoc = 600;
EnvOptionsNaming = 700; EnvOptionsBackup = 700;
EnvOptionsFpDoc = 800; EnvOptionsNaming = 800;
EnvOptionsFileFilters = 900; EnvOptionsFileFilters = 900;
GroupEditor = 200; GroupEditor = 200;

View File

@ -16,7 +16,7 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideRight.Control = Panel1 AnchorSideRight.Control = Panel1
AnchorSideBottom.Control = ButtonPanel1 AnchorSideBottom.Control = ButtonPanel1
Left = 3 Left = 3
Height = 305 Height = 299
Top = 29 Top = 29
Width = 533 Width = 533
Anchors = [akTop, akLeft, akRight, akBottom] Anchors = [akTop, akLeft, akRight, akBottom]
@ -29,11 +29,12 @@ object EditorFileManagerForm: TEditorFileManagerForm
OnKeyDown = CheckListBox1KeyDown OnKeyDown = CheckListBox1KeyDown
PopupMenu = PopupMenu1 PopupMenu = PopupMenu1
TabOrder = 0 TabOrder = 0
TopIndex = -1
end end
object ButtonPanel1: TButtonPanel object ButtonPanel1: TButtonPanel
Left = 6 Left = 6
Height = 34 Height = 40
Top = 340 Top = 334
Width = 710 Width = 710
OKButton.Name = 'OKButton' OKButton.Name = 'OKButton'
OKButton.DefaultCaption = True OKButton.DefaultCaption = True
@ -53,11 +54,11 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = ButtonPanel1 AnchorSideBottom.Control = ButtonPanel1
Left = 536 Left = 536
Height = 327 Height = 328
Top = 0 Top = 0
Width = 186 Width = 186
Anchors = [akTop, akRight, akBottom] Anchors = [akTop, akRight, akBottom]
ClientHeight = 327 ClientHeight = 328
ClientWidth = 186 ClientWidth = 186
TabOrder = 2 TabOrder = 2
object CheckAllCheckBox: TCheckBox object CheckAllCheckBox: TCheckBox
@ -65,9 +66,9 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideTop.Control = FileCountLabel AnchorSideTop.Control = FileCountLabel
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 7 Left = 7
Height = 20 Height = 22
Top = 64 Top = 67
Width = 116 Width = 156
BorderSpacing.Top = 11 BorderSpacing.Top = 11
BorderSpacing.Around = 6 BorderSpacing.Around = 6
Caption = 'CheckAllCheckBox' Caption = 'CheckAllCheckBox'
@ -81,8 +82,8 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideRight.Control = Panel1 AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 7 Left = 7
Height = 25 Height = 28
Top = 90 Top = 95
Width = 172 Width = 172
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
AutoSize = True AutoSize = True
@ -99,8 +100,8 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideRight.Control = Panel1 AnchorSideRight.Control = Panel1
AnchorSideRight.Side = asrBottom AnchorSideRight.Side = asrBottom
Left = 7 Left = 7
Height = 25 Height = 28
Top = 121 Top = 129
Width = 172 Width = 172
Anchors = [akTop, akLeft, akRight] Anchors = [akTop, akLeft, akRight]
AutoSize = True AutoSize = True
@ -117,11 +118,10 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 82 Left = 82
Height = 26 Height = 26
Top = 170 Top = 181
Width = 22 Width = 22
BorderSpacing.Top = 24 BorderSpacing.Top = 24
Enabled = False Enabled = False
NumGlyphs = 0
OnClick = MoveUpBtnClick OnClick = MoveUpBtnClick
ShowHint = True ShowHint = True
ParentShowHint = False ParentShowHint = False
@ -132,11 +132,10 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 82 Left = 82
Height = 26 Height = 26
Top = 203 Top = 214
Width = 22 Width = 22
BorderSpacing.Top = 7 BorderSpacing.Top = 7
Enabled = False Enabled = False
NumGlyphs = 0
OnClick = MoveDownBtnClick OnClick = MoveDownBtnClick
ShowHint = True ShowHint = True
ParentShowHint = False ParentShowHint = False
@ -145,9 +144,9 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideLeft.Control = Panel1 AnchorSideLeft.Control = Panel1
AnchorSideTop.Side = asrBottom AnchorSideTop.Side = asrBottom
Left = 7 Left = 7
Height = 15 Height = 18
Top = 32 Top = 32
Width = 77 Width = 104
BorderSpacing.Around = 6 BorderSpacing.Around = 6
Caption = 'FileCountLabel' Caption = 'FileCountLabel'
ParentColor = False ParentColor = False
@ -169,13 +168,15 @@ object EditorFileManagerForm: TEditorFileManagerForm
AnchorSideTop.Control = SortAlphabeticallyButton AnchorSideTop.Control = SortAlphabeticallyButton
AnchorSideTop.Side = asrCenter AnchorSideTop.Side = asrCenter
Left = 76 Left = 76
Height = 24 Height = 26
Top = 2 Top = 1
Width = 224 Width = 224
ButtonWidth = 23 ButtonWidth = 23
NumGlyphs = 0 NumGlyphs = 1
BorderSpacing.Left = 11 BorderSpacing.Left = 11
Font.Color = clBtnShadow
MaxLength = 0 MaxLength = 0
ParentFont = False
TabOrder = 0 TabOrder = 0
FilteredListbox = CheckListBox1 FilteredListbox = CheckListBox1
end end
@ -194,7 +195,6 @@ object EditorFileManagerForm: TEditorFileManagerForm
BorderSpacing.Left = 3 BorderSpacing.Left = 3
Constraints.MinHeight = 25 Constraints.MinHeight = 25
Constraints.MinWidth = 25 Constraints.MinWidth = 25
NumGlyphs = 0
OnClick = ActivateButtonClick OnClick = ActivateButtonClick
ShowHint = True ShowHint = True
ParentShowHint = False ParentShowHint = False
@ -215,7 +215,6 @@ object EditorFileManagerForm: TEditorFileManagerForm
Constraints.MinHeight = 25 Constraints.MinHeight = 25
Constraints.MinWidth = 25 Constraints.MinWidth = 25
GroupIndex = 2 GroupIndex = 2
NumGlyphs = 0
OnClick = SortAlphabeticallyButtonClick OnClick = SortAlphabeticallyButtonClick
ShowHint = True ShowHint = True
ParentShowHint = False ParentShowHint = False

View File

@ -228,7 +228,7 @@ end;
procedure TEditorFileManagerForm.CheckListBox1KeyDown(Sender: TObject; procedure TEditorFileManagerForm.CheckListBox1KeyDown(Sender: TObject;
var Key: Word; Shift: TShiftState); var Key: Word; Shift: TShiftState);
begin begin
if (ssCtrl in shift ) and ((Key = VK_UP) or (Key = VK_DOWN)) then begin if (ssCtrl in Shift ) and ((Key = VK_UP) or (Key = VK_DOWN)) then begin
if Key = VK_UP then if Key = VK_UP then
MoveUpBtnClick(nil) MoveUpBtnClick(nil)
else else

View File

@ -217,6 +217,7 @@ begin
P.Sources.AddSrc('frames/editor_mouseaction_options_advanced.pas'); P.Sources.AddSrc('frames/editor_mouseaction_options_advanced.pas');
P.Sources.AddSrc('frames/editor_multiwindow_options.pas'); P.Sources.AddSrc('frames/editor_multiwindow_options.pas');
P.Sources.AddSrc('frames/files_options.pas'); P.Sources.AddSrc('frames/files_options.pas');
P.Sources.AddSrc('frames/componentpalette_options.pas');
P.Sources.AddSrc('frames/formed_options.pas'); P.Sources.AddSrc('frames/formed_options.pas');
P.Sources.AddSrc('frames/fpdoc_options.pas'); P.Sources.AddSrc('frames/fpdoc_options.pas');
P.Sources.AddSrc('frames/help_general_options.pas'); P.Sources.AddSrc('frames/help_general_options.pas');

View File

@ -44,6 +44,7 @@ resourcestring
lisLazarus = 'Lazarus'; lisLazarus = 'Lazarus';
lisAdd = 'Add'; lisAdd = 'Add';
lisBtnAdd = '&Add'; lisBtnAdd = '&Add';
lisBtnDlgAdd = '&Add ...';
lisApply = 'Apply'; lisApply = 'Apply';
lisInsert = 'Insert'; lisInsert = 'Insert';
lisChange = 'Change'; lisChange = 'Change';
@ -101,6 +102,8 @@ resourcestring
lisVariable = 'Variable'; lisVariable = 'Variable';
lisPath = 'Path'; lisPath = 'Path';
lisId = 'ID'; lisId = 'ID';
lisPage = 'Page';
lisPackage = 'Package';
lisCompile = 'Compile'; lisCompile = 'Compile';
lisCompileStage = 'Compile'; lisCompileStage = 'Compile';
lisBuild = 'Build'; lisBuild = 'Build';
@ -3545,7 +3548,6 @@ resourcestring
+'create a new Project'; +'create a new Project';
lisChooseOneOfTheseItemsToCreateANewPackage = 'Choose one of these items to ' lisChooseOneOfTheseItemsToCreateANewPackage = 'Choose one of these items to '
+'create a new Package'; +'create a new Package';
lisPackage = 'Package';
lisNewDlgCreateANewUnitWithALCLForm = 'Create a new unit with a LCL form.'; lisNewDlgCreateANewUnitWithALCLForm = 'Create a new unit with a LCL form.';
lisNewDlgCreateANewUnitWithADataModule = 'Create a new unit with a datamodule.'; lisNewDlgCreateANewUnitWithADataModule = 'Create a new unit with a datamodule.';
lisNewDlgCreateANewUnitWithAFrame = 'Create a new unit with a frame.'; lisNewDlgCreateANewUnitWithAFrame = 'Create a new unit with a frame.';
@ -4361,7 +4363,9 @@ resourcestring
lisProjInspRemovedRequiredPackages = 'Removed required packages'; lisProjInspRemovedRequiredPackages = 'Removed required packages';
lisProjInspProjectInspector = 'Project Inspector - %s'; lisProjInspProjectInspector = 'Project Inspector - %s';
// components list form // components palette settings and list form
lisCmpPages = 'Pages';
lisCmpRestoreDefaults = '&Restore defaults';
lisCmpLstComponents = 'Components'; lisCmpLstComponents = 'Components';
lisCmpLstList = 'List'; lisCmpLstList = 'List';
lisCmpLstPalette = 'Palette'; lisCmpLstPalette = 'Palette';

View File

@ -115,7 +115,7 @@ uses
// converter // converter
ChgEncodingDlg, ConvertDelphi, ConvCodeTool, MissingPropertiesDlg, LazXMLForms, ChgEncodingDlg, ConvertDelphi, ConvCodeTool, MissingPropertiesDlg, LazXMLForms,
// environment option frames // environment option frames
editor_general_options, formed_options, OI_options, editor_general_options, componentpalette_options, formed_options, OI_options,
files_options, desktop_options, window_options, files_options, desktop_options, window_options,
Backup_Options, naming_options, fpdoc_options, Backup_Options, naming_options, fpdoc_options,
editor_display_options, editor_keymapping_options, editor_mouseaction_options, editor_display_options, editor_keymapping_options, editor_mouseaction_options,