Changeset 26 for trunk/Forms
- Timestamp:
- Sep 10, 2022, 8:03:08 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 9 added
- 8 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 7 7 heaptrclog.trc 8 8 MyData.exe 9 MyData.dbg 10
-
- Property svn:ignore
-
trunk/Forms/UFormConnect.lfm
r20 r26 1 1 object FormConnect: TFormConnect 2 2 Left = 795 3 Height = 4523 Height = 542 4 4 Top = 509 5 Width = 6165 Width = 739 6 6 Caption = 'Connection parameters:' 7 ClientHeight = 4528 ClientWidth = 6169 DesignTimePPI = 1 207 ClientHeight = 542 8 ClientWidth = 739 9 DesignTimePPI = 144 10 10 OnShow = FormShow 11 LCLVersion = ' 1.8.0.6'11 LCLVersion = '2.2.2.0' 12 12 object EditName: TEdit 13 Left = 2 1114 Height = 2815 Top = 2 116 Width = 26113 Left = 253 14 Height = 43 15 Top = 25 16 Width = 313 17 17 TabOrder = 0 18 18 end 19 19 object Label1: TLabel 20 Left = 1 621 Height = 2 022 Top = 2623 Width = 4320 Left = 19 21 Height = 26 22 Top = 31 23 Width = 56 24 24 Caption = 'Name:' 25 25 ParentColor = False 26 26 end 27 27 object Label2: TLabel 28 Left = 1 629 Height = 2 030 Top = 6731 Width = 1 1528 Left = 19 29 Height = 26 30 Top = 80 31 Width = 147 32 32 Caption = 'Database engine:' 33 33 ParentColor = False 34 34 end 35 35 object ComboBox1: TComboBox 36 Left = 2 1337 Height = 2838 Top = 6739 Width = 26040 ItemHeight = 2036 Left = 256 37 Height = 42 38 Top = 80 39 Width = 312 40 ItemHeight = 0 41 41 OnChange = ComboBox1Change 42 42 Style = csDropDownList … … 44 44 end 45 45 object ButtonOk: TButton 46 Left = 46047 Height = 2548 Top = 4 0249 Width = 7546 Left = 552 47 Height = 30 48 Top = 482 49 Width = 90 50 50 Anchors = [akRight, akBottom] 51 51 Caption = 'Ok' … … 54 54 end 55 55 object ButtonCancel: TButton 56 Left = 33657 Height = 2558 Top = 4 0059 Width = 7556 Left = 403 57 Height = 30 58 Top = 480 59 Width = 90 60 60 Anchors = [akRight, akBottom] 61 61 Caption = 'Cancel' … … 64 64 end 65 65 object PageControl1: TPageControl 66 Left = 1 567 Height = 25068 Top = 1 1669 Width = 58666 Left = 18 67 Height = 300 68 Top = 139 69 Width = 703 70 70 ActivePage = TabSheetRegistry 71 71 Anchors = [akTop, akLeft, akRight] … … 74 74 TabOrder = 4 75 75 object TabSheetXml: TTabSheet 76 ClientHeight = 2 4277 ClientWidth = 57876 ClientHeight = 296 77 ClientWidth = 693 78 78 object Label3: TLabel 79 Left = 1 480 Height = 2 081 Top = 2 082 Width = 5479 Left = 17 80 Height = 26 81 Top = 24 82 Width = 69 83 83 Caption = 'Xml file:' 84 84 ParentColor = False 85 85 end 86 86 object EditXml: TEdit 87 Left = 9288 Height = 2889 Top = 2 190 Width = 37287 Left = 110 88 Height = 43 89 Top = 25 90 Width = 446 91 91 Anchors = [akTop, akLeft, akRight] 92 92 TabOrder = 0 93 93 end 94 94 object ButtonXmlBrowse: TButton 95 Left = 47296 Height = 3 197 Top = 1 698 Width = 9495 Left = 566 96 Height = 37 97 Top = 19 98 Width = 113 99 99 Anchors = [akTop, akRight] 100 100 Caption = 'Browse' … … 104 104 end 105 105 object TabSheetSql: TTabSheet 106 ClientHeight = 2 42107 ClientWidth = 578106 ClientHeight = 296 107 ClientWidth = 693 108 108 object Label4: TLabel 109 Left = 1 4110 Height = 2 0111 Top = 1 6112 Width = 34109 Left = 17 110 Height = 26 111 Top = 19 112 Width = 44 113 113 Caption = 'Host:' 114 114 ParentColor = False 115 115 end 116 116 object EditHost: TEdit 117 Left = 1 25118 Height = 28119 Top = 1 2120 Width = 260117 Left = 150 118 Height = 43 119 Top = 14 120 Width = 312 121 121 TabOrder = 0 122 122 end 123 123 object Label5: TLabel 124 Left = 1 6125 Height = 2 0126 Top = 48127 Width = 30124 Left = 19 125 Height = 26 126 Top = 58 127 Width = 40 128 128 Caption = 'Port:' 129 129 ParentColor = False 130 130 end 131 131 object SpinEditPort: TSpinEdit 132 Left = 1 25133 Height = 28134 Top = 48135 Width = 1 11132 Left = 150 133 Height = 43 134 Top = 58 135 Width = 133 136 136 MaxValue = 65535 137 137 TabOrder = 1 … … 146 146 end 147 147 object OpenDialog1: TOpenDialog 148 left = 528149 top = 32148 Left = 632 149 Top = 32 150 150 end 151 151 end -
trunk/Forms/UFormConnect.pas
r20 r26 1 1 unit UFormConnect; 2 3 {$mode delphi}4 2 5 3 interface … … 36 34 procedure ComboBox1Change(Sender: TObject); 37 35 procedure FormShow(Sender: TObject); 38 private39 36 public 40 37 procedure Load(ConnectProfile: TDbConnectProfile); -
trunk/Forms/UFormDatabases.lfm
r20 r26 1 1 object FormDatabases: TFormDatabases 2 2 Left = 592 3 Height = 5153 Height = 618 4 4 Top = 429 5 Width = 9085 Width = 1090 6 6 Caption = 'Connection profiles' 7 ClientHeight = 5158 ClientWidth = 9089 DesignTimePPI = 1 207 ClientHeight = 618 8 ClientWidth = 1090 9 DesignTimePPI = 144 10 10 OnShow = FormShow 11 11 Position = poMainFormCenter 12 LCLVersion = ' 1.8.0.6'12 LCLVersion = '2.2.2.0' 13 13 object ListView1: TListView 14 Left = 415 Height = 47116 Top = 417 Width = 90014 Left = 5 15 Height = 565 16 Top = 5 17 Width = 1080 18 18 Align = alClient 19 BorderSpacing.Around = 419 BorderSpacing.Around = 5 20 20 Columns = < 21 21 item 22 22 Caption = 'Name' 23 Width = 2 0023 Width = 240 24 24 end 25 25 item 26 26 Caption = 'Type' 27 Width = 2 0027 Width = 240 28 28 end 29 29 item 30 30 Caption = 'Connection string' 31 Width = 48331 Width = 585 32 32 end> 33 33 OwnerData = True … … 43 43 object ToolBar1: TToolBar 44 44 Left = 0 45 Height = 3646 Top = 47947 Width = 90845 Height = 43 46 Top = 575 47 Width = 1090 48 48 Align = alBottom 49 ButtonHeight = 3 250 ButtonWidth = 3 249 ButtonHeight = 38 50 ButtonWidth = 38 51 51 Images = Core.ImageList1 52 52 ParentShowHint = False … … 59 59 end 60 60 object ToolButton2: TToolButton 61 Left = 3 761 Left = 39 62 62 Top = 2 63 63 Action = AModify 64 64 end 65 65 object ToolButton3: TToolButton 66 Left = 7 366 Left = 77 67 67 Top = 2 68 68 Action = ARemove 69 69 end 70 70 object ToolButton4: TToolButton 71 Left = 1 0971 Left = 115 72 72 Top = 2 73 73 Action = AOpen … … 76 76 object PopupMenu1: TPopupMenu 77 77 Images = Core.ImageList1 78 left = 56979 top = 13678 Left = 704 79 Top = 168 80 80 object MenuItem1: TMenuItem 81 81 Action = AAdd … … 94 94 object ActionList1: TActionList 95 95 Images = Core.ImageList1 96 left = 39297 top = 13696 Left = 470 97 Top = 163 98 98 object AAdd: TAction 99 99 Caption = 'New' -
trunk/Forms/UFormDatabases.pas
r20 r26 1 1 unit UFormDatabases; 2 3 {$mode delphi}4 2 5 3 interface … … 39 37 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 40 38 Selected: Boolean); 41 private42 39 public 43 40 SelectedProfile: TDbConnectProfile; -
trunk/Forms/UFormField.pas
r20 r26 1 1 unit UFormField; 2 3 {$mode delphi}4 2 5 3 interface … … 47 45 procedure FormCreate(Sender: TObject); 48 46 procedure FormShow(Sender: TObject); 49 private50 { private declarations }51 47 public 52 48 procedure Load(Field: TField); … … 56 52 var 57 53 FormField: TFormField; 54 58 55 59 56 implementation -
trunk/Forms/UFormFields.pas
r24 r26 1 1 unit UFormFields; 2 3 {$mode delphi}4 2 5 3 interface … … 40 38 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 41 39 Selected: Boolean); 42 private43 { private declarations }44 40 public 45 41 Fields: TFields; … … 166 162 Fields.Table.DbClient.Query('SELECT * FROM ModelField WHERE Model = ' + Fields.Table.Name, DbRows); 167 163 for I := 0 to DbRows.Count - 1 do begin 168 NewField := Fields.AddNew(DbRows[I].Values['Name'], Fields.Table.DbClient.DbManager.DataTypes.SearchByName(DbRows[I].Values['DataType'])); 169 NewField.TextBefore := DbRows[I].Values['Caption']; 164 NewField := Fields.AddNew(DbRows[I].Items['Name'], 165 Fields.Table.DbClient.DbManager.DataTypes.SearchByName(DbRows[I].Items['DataType'])); 166 NewField.TextBefore := DbRows[I].Items['Caption']; 170 167 end; 171 168 DbRows.Free; -
trunk/Forms/UFormMain.pas
r22 r26 1 1 unit UFormMain; 2 3 {$mode delphi}4 2 5 3 interface … … 33 31 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 34 32 procedure FormShow(Sender: TObject); 35 private36 { private declarations }37 33 public 38 34 procedure DockInit; -
trunk/Forms/UFormPreferences.lfm
r19 r26 10 10 OnClose = FormClose 11 11 OnShow = FormShow 12 LCLVersion = ' 1.8.2.0'12 LCLVersion = '2.2.2.0' 13 13 object CheckBoxRememberDatabase: TCheckBox 14 14 Left = 18 15 Height = 2915 Height = 30 16 16 Top = 20 17 Width = 19417 Width = 201 18 18 Caption = 'Remember database' 19 19 TabOrder = 0 … … 40 40 end 41 41 object ComboBoxLanguage: TComboBox 42 Left = 19243 Height = 3344 Top = 6442 Left = 200 43 Height = 42 44 Top = 56 45 45 Width = 292 46 ItemHeight = 2546 ItemHeight = 0 47 47 Style = csDropDownList 48 48 TabOrder = 3 … … 50 50 object Label1: TLabel 51 51 Left = 18 52 Height = 2 552 Height = 26 53 53 Top = 65 54 Width = 8 154 Width = 88 55 55 Caption = 'Language:' 56 56 ParentColor = False -
trunk/Forms/UFormPreferences.pas
r25 r26 1 1 unit UFormPreferences; 2 3 {$mode delphi}4 2 5 3 interface … … 20 18 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 21 19 procedure FormShow(Sender: TObject); 22 private23 { private declarations }24 20 public 25 21 procedure Load(Preferences: TPreferences); -
trunk/Forms/UFormRecord.pas
r14 r26 1 1 unit UFormRecord; 2 3 {$mode delphi}4 2 5 3 interface … … 25 23 procedure FormDestroy(Sender: TObject); 26 24 procedure FormShow(Sender: TObject); 27 private28 { private declarations }29 25 public 30 26 Table: TTable; -
trunk/Forms/UFormRecords.pas
r15 r26 1 1 unit UFormRecords; 2 3 {$mode delphi}4 2 5 3 interface … … 34 32 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 35 33 Selected: Boolean); 36 private37 { private declarations }38 34 public 39 35 Table: TTable; -
trunk/Forms/UFormTable.pas
r4 r26 1 1 unit UFormTable; 2 3 {$mode delphi}4 2 5 3 interface … … 20 18 Label1: TLabel; 21 19 Label2: TLabel; 22 private23 { private declarations }24 20 public 25 21 procedure Load(Table: TTable); … … 29 25 var 30 26 FormTable: TFormTable; 27 31 28 32 29 implementation -
trunk/Forms/UFormTables.lfm
r21 r26 1 1 object FormTables: TFormTables 2 2 Left = 731 3 Height = 6603 Height = 792 4 4 Top = 117 5 Width = 9785 Width = 1174 6 6 Caption = 'Tables' 7 ClientHeight = 660 8 ClientWidth = 978 9 DesignTimePPI = 120 10 OnActivate = FormActivate 11 OnClose = FormClose 7 ClientHeight = 792 8 ClientWidth = 1174 9 DesignTimePPI = 144 12 10 OnCreate = FormCreate 13 11 OnDestroy = FormDestroy 14 12 OnShow = FormShow 15 LCLVersion = ' 1.8.0.6'13 LCLVersion = '2.2.2.0' 16 14 object ListView1: TListView 17 Left = 418 Height = 61619 Top = 420 Width = 97015 Left = 5 16 Height = 739 17 Top = 5 18 Width = 1164 21 19 Align = alClient 22 BorderSpacing.Around = 420 BorderSpacing.Around = 5 23 21 Columns = < 24 22 item 25 23 Caption = 'Name' 26 Width = 50024 Width = 600 27 25 end 28 26 item 29 27 Caption = 'Records' 30 Width = 45328 Width = 549 31 29 end> 32 30 OwnerData = True … … 42 40 object ToolBar1: TToolBar 43 41 Left = 0 44 Height = 3645 Top = 62446 Width = 97842 Height = 43 43 Top = 749 44 Width = 1174 47 45 Align = alBottom 48 ButtonHeight = 3 249 ButtonWidth = 3 246 ButtonHeight = 38 47 ButtonWidth = 38 50 48 Images = Core.ImageList1 51 49 ParentShowHint = False … … 58 56 end 59 57 object ToolButton2: TToolButton 60 Left = 3 758 Left = 39 61 59 Top = 2 62 60 Action = AModify 63 61 end 64 62 object ToolButton3: TToolButton 65 Left = 7 363 Left = 77 66 64 Top = 2 67 65 Action = ARemove 68 66 end 69 67 object ToolButton4: TToolButton 70 Left = 1 0968 Left = 115 71 69 Top = 2 72 70 Action = AShowRecords 73 71 end 74 72 object ToolButton5: TToolButton 75 Left = 1 4573 Left = 153 76 74 Top = 2 77 75 Action = AShowFields … … 80 78 object ActionList1: TActionList 81 79 Images = Core.ImageList1 82 left = 32283 top = 14280 Left = 368 81 Top = 173 84 82 object AAdd: TAction 85 83 Caption = 'Add' … … 110 108 object PopupMenu1: TPopupMenu 111 109 Images = Core.ImageList1 112 left = 464113 top = 144110 Left = 557 111 Top = 173 114 112 object MenuItem4: TMenuItem 115 113 Action = AShowRecords -
trunk/Forms/UFormTables.pas
r24 r26 1 1 unit UFormTables; 2 3 {$mode delphi}{$H+}4 2 5 3 interface … … 7 5 uses 8 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 9 ActnList, Menus, UDatabase , SpecializedDictionary;7 ActnList, Menus, UDatabase; 10 8 11 9 type … … 38 36 procedure AShowFieldsExecute(Sender: TObject); 39 37 procedure AShowRecordsExecute(Sender: TObject); 40 procedure FormActivate(Sender: TObject);41 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);42 38 procedure FormCreate(Sender: TObject); 43 39 procedure FormDestroy(Sender: TObject); … … 60 56 FormTables: TFormTables; 61 57 58 62 59 implementation 63 60 … … 71 68 SRemoveTableConfirm = 'Do you want to really remove table ''%s'' ?'; 72 69 SNewTable = 'New table'; 73 74 70 75 71 { TFormTables } … … 202 198 end; 203 199 204 procedure TFormTables.FormActivate(Sender: TObject);205 begin206 end;207 208 procedure TFormTables.FormClose(Sender: TObject; var CloseAction: TCloseAction);209 begin210 end;211 212 200 procedure TFormTables.FormCreate(Sender: TObject); 213 201 begin … … 217 205 procedure TFormTables.FormDestroy(Sender: TObject); 218 206 begin 219 F Tables.Free;207 FreeAndNil(FTables); 220 208 end; 221 209 … … 241 229 DbClient.Query('SELECT * FROM Model', DbRows); 242 230 for I := 0 to DbRows.Count - 1 do begin 243 NewTable := Tables.AddNew( TDictionaryStringString(DbRows[I]).Values['Name']);244 NewTable.Caption := TDictionaryStringString(DbRows[I]).Values['Caption'];231 NewTable := Tables.AddNew(DbRows[I].Items['Name']); 232 NewTable.Caption := DbRows[I].Items['Caption']; 245 233 end; 246 234 DbRows.Free;
Note:
See TracChangeset
for help on using the changeset viewer.