File: keyvalpropeditdlg.pas

package info (click to toggle)
lazarus 1.6.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 172,444 kB
  • ctags: 124,173
  • sloc: pascal: 1,528,777; xml: 260,232; sh: 3,008; java: 603; makefile: 512; perl: 297; sql: 222; ansic: 137
file content (60 lines) | stat: -rw-r--r-- 1,356 bytes parent folder | download | duplicates (2)
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
{
 *****************************************************************************
  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
  Classes, SysUtils, LCLProc, Forms, Controls, Buttons, Dialogs, StdCtrls,
  TextTools, ObjInspStrConsts, ExtCtrls, ButtonPanel, ValEdit;
  
type

  { TKeyValPropEditorFrm }

  TKeyValPropEditorFrm = class(TForm)
    BtnPanel: TButtonPanel;
    ValueListEdit: TValueListEditor;
    StatusLabel: TLabel;
    SortButton: TButton;
    TextGroupBox: TGroupBox;
    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;
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.