1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
{
*****************************************************************************
See the file COPYING.modifiedLGPL.txt, included in this distribution,
for details about the license.
*****************************************************************************
Abstract:
Dialog for the TStrings property editor for TValueListEditor.
}
unit KeyValPropEditDlg;
{$mode objfpc}{$H+}
interface
uses
SysUtils,
// LCL
Forms, StdCtrls, ButtonPanel, ValEdit,
// IdeIntf
TextTools, ObjInspStrConsts, IDEWindowIntf;
type
{ TKeyValPropEditorFrm }
TKeyValPropEditorFrm = class(TForm)
BtnPanel: TButtonPanel;
ValueListEdit: TValueListEditor;
StatusLabel: TLabel;
SortButton: TButton;
TextGroupBox: TGroupBox;
procedure FormClose(Sender: TObject; var {%H-}CloseAction: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure SortButtonClick(Sender: TObject);
public
end;
implementation
{$R *.lfm}
{ TKeyValPropEditorFrm }
procedure TKeyValPropEditorFrm.FormCreate(Sender: TObject);
begin
Caption := oisStringsEditorDialog;
StatusLabel.Caption := ois0Lines0Chars;
//SortButton.Caption := oisSort;
IDEDialogLayoutList.ApplyLayout(Self);
end;
procedure TKeyValPropEditorFrm.FormClose(Sender: TObject; var CloseAction: TCloseAction);
begin
IDEDialogLayoutList.SaveLayout(Self);
end;
procedure TKeyValPropEditorFrm.SortButtonClick(Sender: TObject);
begin
if not Assigned(ShowSortSelectionDialogFunc) then
begin
SortButton.Enabled := False;
Exit;
end;
// ToDo: implement or remove the whole button.
end;
end.
|