Changeset 19 for trunk/Forms
- Timestamp:
- Jun 14, 2011, 12:20:15 PM (13 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UMainForm.lfm
r13 r19 182 182 OnExecute = AInitSystemValuesExecute 183 183 end 184 object AImportStructure: TAction 185 Caption = 'Import structure...' 186 OnExecute = AImportStructureExecute 187 end 184 188 end 185 189 object PopupMenuItem: TPopupMenu … … 332 336 Action = AInitSystemValues 333 337 end 338 object MenuItem20: TMenuItem 339 Action = AImportStructure 340 end 334 341 end 335 342 object MenuItem12: TMenuItem -
trunk/Forms/UMainForm.lrt
r11 r19 19 19 TMAINFORM.ASETTINGS.HINT=Settings 20 20 TMAINFORM.AINITSYSTEMVALUES.CAPTION=Init system values 21 TMAINFORM.AIMPORTSTRUCTURE.CAPTION=Import structure... 21 22 TMAINFORM.MENUITEM13.CAPTION=Server 22 23 TMAINFORM.MENUITEM11.CAPTION=View -
trunk/Forms/UMainForm.pas
r17 r19 15 15 16 16 TMainForm = class(TForm) 17 published 17 18 AConnect: TAction; 19 AImportStructure: TAction; 18 20 AInitSystemValues: TAction; 19 21 ASettings: TAction; … … 50 52 MenuItem19: TMenuItem; 51 53 MenuItem2: TMenuItem; 54 MenuItem20: TMenuItem; 52 55 MenuItem3: TMenuItem; 53 56 MenuItem4: TMenuItem; … … 66 69 procedure AConnectExecute(Sender: TObject); 67 70 procedure AExitExecute(Sender: TObject); 71 procedure AImportStructureExecute(Sender: TObject); 68 72 procedure AInitSystemValuesExecute(Sender: TObject); 69 73 procedure AItemAddExecute(Sender: TObject); … … 124 128 uses 125 129 UItemView, UItemEdit, UItemAdd, ULoginForm, USettingForm, UApplicationInfo, 126 UCore ;130 UCore, UImportStructureForm; 127 131 128 132 {$R *.lfm} … … 340 344 '`Min` int NOT NULL,' + 341 345 '`Max` int NOT NULL,' + 346 'KEY `CustomType` (`CustomType`),' + 347 'PRIMARY KEY (`Id`)' + 348 ') ENGINE=InnoDB DEFAULT CHARSET=utf8'); 349 end; 350 351 if Tables.IndexOf(TypeFloat) = -1 then begin 352 Database.Query(DbRows, 'CREATE TABLE IF NOT EXISTS `' + TypeFloat + '` ( ' + 353 '`Id` int(11) NOT NULL AUTO_INCREMENT,' + 354 '`CustomType` int NOT NULL,' + 355 '`Default` float NOT NULL,' + 356 '`Min` float NOT NULL,' + 357 '`Max` float NOT NULL,' + 342 358 'KEY `CustomType` (`CustomType`),' + 343 359 'PRIMARY KEY (`Id`)' + … … 555 571 begin 556 572 Close; 573 end; 574 575 procedure TMainForm.AImportStructureExecute(Sender: TObject); 576 begin 577 ImportStructureForm.ShowModal; 557 578 end; 558 579 -
trunk/Forms/USettingForm.lfm
r18 r19 1 1 object SettingForm: TSettingForm 2 Left = 3 552 Left = 371 3 3 Height = 328 4 Top = 1 664 Top = 138 5 5 Width = 446 6 6 Caption = 'Settings' … … 46 46 end 47 47 object Label2: TLabel 48 Left = 948 Left = 8 49 49 Height = 14 50 50 Top = 38
Note:
See TracChangeset
for help on using the changeset viewer.