Changeset 191
- Timestamp:
- May 17, 2019, 12:02:45 AM (6 years ago)
- Location:
- branches/generator
- Files:
-
- 24 added
- 10 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 -
branches/generator/Languages/generator.cs.po
r190 r191 18 18 19 19 #: tformgrammer.buttonok.caption 20 msgctxt "tformgrammer.buttonok.caption" 20 21 msgid "OK" 21 22 msgstr "OK" 22 23 23 24 #: tformgrammer.caption 25 msgctxt "tformgrammer.caption" 24 26 msgid "Grammer settings" 25 27 msgstr "Nastavenà gramatiky:" … … 107 109 108 110 #: tformmain.agrammersettings.caption 109 msgid "Settings" 110 msgstr "NastavenÃ" 111 msgctxt "tformmain.agrammersettings.caption" 112 msgid "Grammer settings" 113 msgstr "Nastavenà gramatiky" 111 114 112 115 #: tformmain.alookuptables.caption … … 162 165 msgstr "Pravidla" 163 166 167 #: tformmain.asettings.caption 168 msgctxt "tformmain.asettings.caption" 169 msgid "Settings" 170 msgstr "NastavenÃ" 171 164 172 #: tformmain.atoolbarvisible.caption 165 173 msgctxt "tformmain.atoolbarvisible.caption" … … 175 183 msgstr "ZobrazenÃ" 176 184 185 #: tformmain.menuitem14.caption 186 msgid "Tools" 187 msgstr "Nástroje" 188 177 189 #: tformmain.menuitem2.caption 178 190 msgid "File" … … 421 433 msgstr "ÃroveÅ" 422 434 435 #: tformsettings.buttoncancel.caption 436 msgctxt "tformsettings.buttoncancel.caption" 437 msgid "Cancel" 438 msgstr "ZruÅ¡it" 439 440 #: tformsettings.buttonok.caption 441 msgctxt "tformsettings.buttonok.caption" 442 msgid "OK" 443 msgstr "OK" 444 445 #: tformsettings.caption 446 msgctxt "tformsettings.caption" 447 msgid "Settings" 448 msgstr "NastavenÃ" 449 450 #: tformsettings.label1.caption 451 msgid "Language:" 452 msgstr "Jazyk:" 453 423 454 #: uformmain.sdoyouwanttosaveproject 424 455 msgid "There are unsaved changes in project. Do you want to save them?" -
branches/generator/Languages/generator.po
r190 r191 8 8 9 9 #: tformgrammer.buttonok.caption 10 msgctxt "tformgrammer.buttonok.caption" 10 11 msgid "OK" 11 12 msgstr "" 12 13 13 14 #: tformgrammer.caption 15 msgctxt "tformgrammer.caption" 14 16 msgid "Grammer settings" 15 17 msgstr "" … … 97 99 98 100 #: tformmain.agrammersettings.caption 99 msgid "Settings" 101 msgctxt "tformmain.agrammersettings.caption" 102 msgid "Grammer settings" 100 103 msgstr "" 101 104 … … 152 155 msgstr "" 153 156 157 #: tformmain.asettings.caption 158 msgctxt "tformmain.asettings.caption" 159 msgid "Settings" 160 msgstr "" 161 154 162 #: tformmain.atoolbarvisible.caption 155 163 msgctxt "tformmain.atoolbarvisible.caption" … … 165 173 msgstr "" 166 174 175 #: tformmain.menuitem14.caption 176 msgid "Tools" 177 msgstr "" 178 167 179 #: tformmain.menuitem2.caption 168 180 msgid "File" … … 411 423 msgstr "" 412 424 425 #: tformsettings.buttoncancel.caption 426 msgctxt "tformsettings.buttoncancel.caption" 427 msgid "Cancel" 428 msgstr "" 429 430 #: tformsettings.buttonok.caption 431 msgctxt "tformsettings.buttonok.caption" 432 msgid "OK" 433 msgstr "" 434 435 #: tformsettings.caption 436 msgctxt "tformsettings.caption" 437 msgid "Settings" 438 msgstr "" 439 440 #: tformsettings.label1.caption 441 msgid "Language:" 442 msgstr "" 443 413 444 #: uformmain.sdoyouwanttosaveproject 414 445 msgid "There are unsaved changes in project. Do you want to save them?" -
branches/generator/UCore.lfm
r167 r191 3 3 OnDestroy = DataModuleDestroy 4 4 OldCreateOrder = False 5 Height = 5626 HorizontalOffset = 3847 VerticalOffset = 2768 Width = 8659 PPI = 1 205 Height = 674 6 HorizontalOffset = 517 7 VerticalOffset = 441 8 Width = 1038 9 PPI = 144 10 10 object ImageList1: TImageList 11 left = 25612 top = 1 3611 left = 307 12 top = 163 13 13 Bitmap = { 14 14 4C690B0000001000000010000000000000000000000000000000000000000000 … … 370 370 MinVisiblePart = 50 371 371 EntireVisible = False 372 left = 4 08373 top = 1 44372 left = 490 373 top = 173 374 374 end 375 375 object XMLConfig1: TXMLConfig … … 377 377 RootName = 'CONFIG' 378 378 ReadOnly = False 379 left = 96380 top = 1 28379 left = 115 380 top = 154 381 381 end 382 382 object ApplicationInfo1: TApplicationInfo … … 386 386 VersionBugFix = 0 387 387 AppName = 'Generator' 388 ReleaseDate = 0 388 Description = 'Programming language generator' 389 ReleaseDate = 43601 389 390 RegistryKey = '\Software\Chronosoft\Generator' 390 391 RegistryRoot = rrKeyCurrentUser 391 License = 'CC)' 392 left = 192 393 top = 259 392 License = 'CC0' 393 left = 230 394 top = 311 395 end 396 object CoolTranslator1: TCoolTranslator 397 POFilesFolder = 'Languages' 398 left = 422 399 top = 306 394 400 end 395 401 end -
branches/generator/UCore.pas
r167 r191 7 7 uses 8 8 Classes, SysUtils, XMLConf, FileUtil, Controls, ActnList, UGrammer, 9 UPersistentForm, ULastOpenedList, UApplicationInfo ;9 UPersistentForm, ULastOpenedList, UApplicationInfo, UCoolTranslator; 10 10 11 11 type … … 15 15 TCore = class(TDataModule) 16 16 ApplicationInfo1: TApplicationInfo; 17 CoolTranslator1: TCoolTranslator; 17 18 ImageList1: TImageList; 18 19 PersistentForm1: TPersistentForm; … … 57 58 with XMLConfig1 do begin 58 59 ReopenLastFile := GetValue('ReopenLastFile', True); 60 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(String(GetValue('Language', ''))); 59 61 end; 60 62 end; … … 64 66 with XMLConfig1 do begin 65 67 SetValue('ReopenLastFile', ReopenLastFile); 68 SetValue('Language', WideString(CoolTranslator1.Language.Code)); 66 69 Flush; 67 70 end; -
branches/generator/generator.lpi
r189 r191 30 30 <IncludeFiles Value="$(ProjOutDir)"/> 31 31 <OtherUnitFiles Value="Forms"/> 32 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS) "/>32 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)-$(BuildMode)"/> 33 33 </SearchPaths> 34 34 <Parsing> … … 74 74 </Modes> 75 75 </RunParams> 76 <RequiredPackages Count=" 3">76 <RequiredPackages Count="4"> 77 77 <Item1> 78 <PackageName Value="FCL"/> 78 <PackageName Value="CoolTranslator"/> 79 <DefaultFilename Value="Packages/CoolTranslator/CoolTranslator.lpk" Prefer="True"/> 79 80 </Item1> 80 81 <Item2> 82 <PackageName Value="FCL"/> 83 </Item2> 84 <Item3> 81 85 <PackageName Value="Common"/> 82 86 <DefaultFilename Value="Packages/Common/Common.lpk" Prefer="True"/> 83 </Item 2>84 <Item 3>87 </Item3> 88 <Item4> 85 89 <PackageName Value="LCL"/> 86 </Item 3>90 </Item4> 87 91 </RequiredPackages> 88 <Units Count="1 2">92 <Units Count="13"> 89 93 <Unit0> 90 94 <Filename Value="generator.lpr"/> … … 162 166 <ResourceBaseClass Value="Form"/> 163 167 </Unit11> 168 <Unit12> 169 <Filename Value="Forms/UFormSettings.pas"/> 170 <IsPartOfProject Value="True"/> 171 <ComponentName Value="FormSettings"/> 172 <HasResources Value="True"/> 173 <ResourceBaseClass Value="Form"/> 174 </Unit12> 164 175 </Units> 165 176 </ProjectOptions> … … 172 183 <IncludeFiles Value="$(ProjOutDir)"/> 173 184 <OtherUnitFiles Value="Forms"/> 174 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS) "/>185 <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)-$(BuildMode)"/> 175 186 </SearchPaths> 176 187 <Parsing> -
branches/generator/generator.lpr
r189 r191 8 8 {$ENDIF}{$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 Forms, UCore, Common, UFormMain, SysUtils, UBuilder, 11 UFormRules, UFormLookupTables, UFormLookupTable 10 Forms, UCore, Common, UFormMain, SysUtils, UBuilder, CoolTranslator, 11 UFormRules, UFormLookupTables, UFormLookupTable, UFormSettings 12 12 { you can add units after this }; 13 13
Note:
See TracChangeset
for help on using the changeset viewer.