Changeset 191 for branches/generator/Forms
- Timestamp:
- May 17, 2019, 12:02:45 AM (6 years ago)
- Location:
- branches/generator/Forms
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/Forms
- Property svn:ignore
-
old new 1 *.lrj2 1 *.lrt
-
- Property svn:ignore
-
branches/generator/Forms/UFormMain.lfm
r190 r191 32 32 Height = 33 33 33 Top = 5 34 Width = 23 934 Width = 237 35 35 Align = alNone 36 36 AutoSize = True … … 46 46 Transparent = True 47 47 object ToolButton2: TToolButton 48 Left = 16 948 Left = 167 49 49 Top = 0 50 50 Action = ABuildCompiler … … 79 79 end 80 80 object ToolButton7: TToolButton 81 Left = 20 481 Left = 202 82 82 Top = 0 83 83 Action = ALookupTables … … 184 184 end 185 185 end 186 object MenuItem14: TMenuItem 187 Caption = 'Tools' 188 object MenuItem15: TMenuItem 189 Action = ASettings 190 end 191 end 186 192 end 187 193 object ActionList1: TActionList … … 232 238 end 233 239 object AGrammerSettings: TAction 234 Caption = ' Settings'240 Caption = 'Grammer settings' 235 241 ImageIndex = 3 236 242 OnExecute = AGrammerSettingsExecute … … 250 256 ImageIndex = 8 251 257 OnExecute = ALookupTablesExecute 258 end 259 object ASettings: TAction 260 Caption = 'Settings' 261 OnExecute = ASettingsExecute 252 262 end 253 263 end -
branches/generator/Forms/UFormMain.lrj
r190 r191 8 8 {"hash":243811202,"name":"tformmain.menuitem8.caption","sourcebytes":[71,114,97,109,109,101,114],"value":"Grammer"}, 9 9 {"hash":380871,"name":"tformmain.menuitem1.caption","sourcebytes":[86,105,101,119],"value":"View"}, 10 {"hash":5989939,"name":"tformmain.menuitem14.caption","sourcebytes":[84,111,111,108,115],"value":"Tools"}, 10 11 {"hash":5882563,"name":"tformmain.arules.caption","sourcebytes":[82,117,108,101,115],"value":"Rules"}, 11 12 {"hash":5882563,"name":"tformmain.arules.hint","sourcebytes":[82,117,108,101,115],"value":"Rules"}, … … 20 21 {"hash":21703,"name":"tformmain.aprojectnew.caption","sourcebytes":[78,101,119],"value":"New"}, 21 22 {"hash":4863637,"name":"tformmain.aprojectclose.caption","sourcebytes":[67,108,111,115,101],"value":"Close"}, 22 {"hash": 213582195,"name":"tformmain.agrammersettings.caption","sourcebytes":[83,101,116,116,105,110,103,115],"value":"Settings"},23 {"hash":142765043,"name":"tformmain.agrammersettings.caption","sourcebytes":[71,114,97,109,109,101,114,32,115,101,116,116,105,110,103,115],"value":"Grammer settings"}, 23 24 {"hash":172269778,"name":"tformmain.abuildcompiler.caption","sourcebytes":[66,117,105,108,100,32,99,111,109,112,105,108,101,114],"value":"Build compiler"}, 24 25 {"hash":191244498,"name":"tformmain.atoolbarvisible.caption","sourcebytes":[84,111,111,108,98,97,114],"value":"Toolbar"}, 25 {"hash":79806131,"name":"tformmain.alookuptables.caption","sourcebytes":[76,111,111,107,117,112,32,116,97,98,108,101,115],"value":"Lookup tables"} 26 {"hash":79806131,"name":"tformmain.alookuptables.caption","sourcebytes":[76,111,111,107,117,112,32,116,97,98,108,101,115],"value":"Lookup tables"}, 27 {"hash":213582195,"name":"tformmain.asettings.caption","sourcebytes":[83,101,116,116,105,110,103,115],"value":"Settings"} 26 28 ]} -
branches/generator/Forms/UFormMain.pas
r167 r191 16 16 TFormMain = class(TForm) 17 17 ABuildCompiler: TAction; 18 ASettings: TAction; 18 19 ALookupTables: TAction; 19 20 AToolbarVisible: TAction; … … 38 39 MenuItem12: TMenuItem; 39 40 MenuItem13: TMenuItem; 41 MenuItem14: TMenuItem; 42 MenuItem15: TMenuItem; 40 43 MenuItem2: TMenuItem; 41 44 MenuItem3: TMenuItem; … … 65 68 procedure ABuildCompilerExecute(Sender: TObject); 66 69 procedure ALookupTablesExecute(Sender: TObject); 70 procedure ASettingsExecute(Sender: TObject); 67 71 procedure AToolbarVisibleExecute(Sender: TObject); 68 72 procedure AExitExecute(Sender: TObject); … … 100 104 101 105 uses 102 UFormRules, UCore, UFormGrammer, UBuilder, UFormLookupTables ;106 UFormRules, UCore, UFormGrammer, UBuilder, UFormLookupTables, UFormSettings; 103 107 104 108 resourcestring … … 322 326 end; 323 327 328 procedure TFormMain.ASettingsExecute(Sender: TObject); 329 begin 330 FormSettings := TFormSettings.Create(nil); 331 FormSettings.Load; 332 if FormSettings.ShowModal = mrOk then begin 333 FormSettings.Save; 334 end; 335 FreeAndNil(FormSettings); 336 end; 337 324 338 procedure TFormMain.AToolbarVisibleExecute(Sender: TObject); 325 339 begin
Note:
See TracChangeset
for help on using the changeset viewer.