Changeset 207 for trunk/Forms
- Timestamp:
- Sep 20, 2021, 10:16:37 AM (3 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAcronym.pas
r174 r207 68 68 procedure TFormAcronym.FormCreate(Sender: TObject); 69 69 begin 70 Core. CoolTranslator1.TranslateComponentRecursive(Self);70 Core.Translator.TranslateComponentRecursive(Self); 71 71 Core.ThemeManager.UseTheme(Self); 72 72 end; -
trunk/Forms/UFormAcronyms.pas
r204 r207 258 258 FocusAcronym := nil; 259 259 MeaningCount := 0; 260 Core. CoolTranslator1.TranslateComponentRecursive(Self);260 Core.Translator.TranslateComponentRecursive(Self); 261 261 Core.ThemeManager.UseTheme(Self); 262 262 for I := 0 to ToolBar1.ButtonCount - 1 do -
trunk/Forms/UFormCategories.pas
r174 r207 187 187 I: Integer; 188 188 begin 189 Core. CoolTranslator1.TranslateComponentRecursive(Self);189 Core.Translator.TranslateComponentRecursive(Self); 190 190 Core.ThemeManager.UseTheme(Self); 191 191 for I := 0 to ToolBar1.ButtonCount - 1 do -
trunk/Forms/UFormCategorySelect.pas
r174 r207 50 50 procedure TFormCategorySelect.FormCreate(Sender: TObject); 51 51 begin 52 Core. CoolTranslator1.TranslateComponentRecursive(Self);52 Core.Translator.TranslateComponentRecursive(Self); 53 53 Core.ThemeManager.UseTheme(Self); 54 54 end; -
trunk/Forms/UFormCheck.pas
r206 r207 207 207 AcronymDbSummary := TAcronymDb.Create; 208 208 AcronymDbContent := TAcronymDb.Create; 209 Core. CoolTranslator1.TranslateComponentRecursive(Self);209 Core.Translator.TranslateComponentRecursive(Self); 210 210 Core.ThemeManager.UseTheme(Self); 211 211 ReportItems := TReportItems.Create; -
trunk/Forms/UFormExport.pas
r184 r207 67 67 procedure TFormExport.FormCreate(Sender: TObject); 68 68 begin 69 Core. CoolTranslator1.TranslateComponentRecursive(Self);69 Core.Translator.TranslateComponentRecursive(Self); 70 70 Core.ThemeManager.UseTheme(Self); 71 71 end; -
trunk/Forms/UFormImport.pas
r184 r207 69 69 procedure TFormImport.FormCreate(Sender: TObject); 70 70 begin 71 Core. CoolTranslator1.TranslateComponentRecursive(Self);71 Core.Translator.TranslateComponentRecursive(Self); 72 72 Core.ThemeManager.UseTheme(Self); 73 73 end; -
trunk/Forms/UFormImportFormat.pas
r174 r207 160 160 procedure TFormImportFormat.FormCreate(Sender: TObject); 161 161 begin 162 Core. CoolTranslator1.TranslateComponentRecursive(Self);162 Core.Translator.TranslateComponentRecursive(Self); 163 163 Core.ThemeManager.UseTheme(Self); 164 164 YesNoString[False] := SNo; -
trunk/Forms/UFormImportFormats.pas
r174 r207 189 189 I: Integer; 190 190 begin 191 Core. CoolTranslator1.TranslateComponentRecursive(Self);191 Core.Translator.TranslateComponentRecursive(Self); 192 192 Core.ThemeManager.UseTheme(Self); 193 193 for I := 0 to ToolBar1.ButtonCount - 1 do -
trunk/Forms/UFormImportPattern.pas
r174 r207 53 53 procedure TFormImportPattern.FormCreate(Sender: TObject); 54 54 begin 55 Core. CoolTranslator1.TranslateComponentRecursive(Self);55 Core.Translator.TranslateComponentRecursive(Self); 56 56 Core.ThemeManager.UseTheme(Self); 57 57 InitControls; -
trunk/Forms/UFormImportSource.pas
r174 r207 98 98 procedure TFormImportSource.FormCreate(Sender: TObject); 99 99 begin 100 Core. CoolTranslator1.TranslateComponentRecursive(Self);100 Core.Translator.TranslateComponentRecursive(Self); 101 101 Core.ThemeManager.UseTheme(Self); 102 102 end; -
trunk/Forms/UFormImportSources.pas
r204 r207 354 354 I: Integer; 355 355 begin 356 Core. CoolTranslator1.TranslateComponentRecursive(Self);356 Core.Translator.TranslateComponentRecursive(Self); 357 357 Core.ThemeManager.UseTheme(Self); 358 358 for I := 0 to ToolBar1.ButtonCount - 1 do -
trunk/Forms/UFormMain.lfm
r203 r207 1 1 object FormMain: TFormMain 2 2 Left = 395 3 Height = 6023 Height = 722 4 4 Top = 261 5 Width = 8475 Width = 1016 6 6 Caption = 'Acronym Decoder' 7 ClientHeight = 5778 ClientWidth = 8479 DesignTimePPI = 1 207 ClientHeight = 688 8 ClientWidth = 1016 9 DesignTimePPI = 144 10 10 Menu = MainMenu1 11 11 OnClose = FormClose … … 16 16 OnResize = FormResize 17 17 OnShow = FormShow 18 LCLVersion = '2.0. 2.0'18 LCLVersion = '2.0.12.0' 19 19 object PanelMain: TPanel 20 20 Left = 0 21 Height = 47922 Top = 7023 Width = 84721 Height = 580 22 Top = 81 23 Width = 1016 24 24 Align = alClient 25 25 BevelOuter = bvNone 26 ClientHeight = 479 27 ClientWidth = 847 26 ClientHeight = 580 27 ClientWidth = 1016 28 ParentFont = False 28 29 TabOrder = 0 29 30 object ListViewFilter1: TListViewFilter 30 Left = 431 Height = 3832 Top = 433 Width = 83831 Left = 5 32 Height = 46 33 Top = 5 34 Width = 1005 34 35 OnChange = ListViewFilter1Change 35 36 Anchors = [akTop, akLeft, akRight] 36 37 end 37 38 object ListViewAcronyms: TListView 38 Left = 439 Height = 43240 Top = 4241 Width = 83839 Left = 5 40 Height = 524 41 Top = 50 42 Width = 1005 42 43 Anchors = [akTop, akLeft, akRight, akBottom] 43 44 Columns = < 44 45 item 45 46 Caption = 'Name' 46 Width = 1 2547 Width = 150 47 48 end 48 49 item 49 50 Caption = 'Meaning' 50 Width = 37551 Width = 450 51 52 end 52 53 item 53 54 Caption = 'Categories' 54 Width = 43455 Width = 521 55 56 end> 56 57 OwnerData = True 58 ParentFont = False 57 59 PopupMenu = PopupMenuFilter 58 60 ReadOnly = True … … 67 69 object PanelParam: TPanel 68 70 Left = 0 69 Height = 3 270 Top = 3871 Width = 84771 Height = 38 72 Top = 43 73 Width = 1016 72 74 Align = alTop 73 75 BevelOuter = bvNone 74 ClientHeight = 32 75 ClientWidth = 847 76 ClientHeight = 38 77 ClientWidth = 1016 78 ParentFont = False 76 79 TabOrder = 1 77 80 object CheckBoxExactLength: TCheckBox 78 Left = 1 079 Height = 2480 Top = 481 Width = 1 0781 Left = 12 82 Height = 30 83 Top = 5 84 Width = 132 82 85 Action = AFilterSameLength 86 ParentFont = False 83 87 TabOrder = 0 84 88 end 85 89 object CheckBoxCaseSensitive: TCheckBox 86 Left = 2 0087 Height = 2488 Top = 489 Width = 1 3390 Left = 240 91 Height = 30 92 Top = 5 93 Width = 165 90 94 Action = AFilterSameLetterCase 95 ParentFont = False 91 96 TabOrder = 1 92 97 end 93 98 object CheckBoxEnabledCategories: TCheckBox 94 Left = 45095 Height = 2496 Top = 497 Width = 1 5199 Left = 540 100 Height = 30 101 Top = 5 102 Width = 187 98 103 Action = AFilterEnabledCategories 104 ParentFont = False 99 105 TabOrder = 2 100 106 end … … 102 108 object CoolBar1: TCoolBar 103 109 Left = 0 104 Height = 38110 Height = 43 105 111 Top = 0 106 Width = 847112 Width = 1016 107 113 AutoSize = True 108 114 Bands = < … … 136 142 end> 137 143 Images = Core.ImageList1 144 ParentFont = False 138 145 object ToolBarFile: TToolBar 139 146 AnchorSideLeft.Control = CoolBar1 140 147 AnchorSideTop.Control = CoolBar1 141 148 Left = 24 142 Height = 28143 Top = 5 144 Width = 1 32149 Height = 33 150 Top = 5 151 Width = 159 145 152 Align = alNone 146 153 AutoSize = True … … 151 158 EdgeOuter = esNone 152 159 Images = Core.ImageList1 160 ParentFont = False 153 161 ParentShowHint = False 154 162 ShowHint = True … … 161 169 end 162 170 object ToolButton6: TToolButton 163 Left = 3 0171 Left = 36 164 172 Top = 0 165 173 Action = AFileOpen … … 168 176 end 169 177 object ToolButton7: TToolButton 170 Left = 74178 Left = 89 171 179 Top = 0 172 180 Action = AFileSave 173 181 end 174 182 object ToolButton12: TToolButton 175 Left = 1 03183 Left = 124 176 184 Top = 0 177 185 Action = AFileClose … … 182 190 AnchorSideTop.Control = CoolBar1 183 191 Left = 188 184 Height = 28185 Top = 5 186 Width = 1 17192 Height = 33 193 Top = 5 194 Width = 141 187 195 Align = alNone 188 196 AutoSize = True … … 193 201 EdgeOuter = esNone 194 202 Images = Core.ImageList1 203 ParentFont = False 195 204 ParentShowHint = False 196 205 ShowHint = True … … 203 212 end 204 213 object ToolButton3: TToolButton 205 Left = 3 0214 Left = 36 206 215 Top = 0 207 216 Action = AShowCategories 208 217 end 209 218 object ToolButton5: TToolButton 210 Left = 59219 Left = 71 211 220 Top = 0 212 221 Action = AShowImportSources 213 222 end 214 223 object ToolButton4: TToolButton 215 Left = 88224 Left = 106 216 225 Top = 0 217 226 Action = AShowImportFormats … … 222 231 AnchorSideTop.Control = CoolBar1 223 232 Left = 337 224 Height = 28225 Top = 5 226 Width = 59233 Height = 33 234 Top = 5 235 Width = 71 227 236 Align = alNone 228 237 AutoSize = True … … 233 242 EdgeOuter = esNone 234 243 Images = Core.ImageList1 244 ParentFont = False 235 245 ParentShowHint = False 236 246 ShowHint = True … … 238 248 Transparent = True 239 249 object ToolButton11: TToolButton 240 Left = 3 0250 Left = 36 241 251 Top = 0 242 252 Action = ASettings … … 252 262 AnchorSideTop.Control = CoolBar1 253 263 Left = 428 254 Height = 28255 Top = 5 256 Width = 88264 Height = 33 265 Top = 5 266 Width = 106 257 267 Align = alNone 258 268 AutoSize = True … … 263 273 EdgeOuter = esNone 264 274 Images = Core.ImageList1 275 ParentFont = False 265 276 ParentShowHint = False 266 277 ShowHint = True … … 274 285 end 275 286 object ToolButton13: TToolButton 276 Left = 3 0287 Left = 36 277 288 Top = 0 278 289 Action = AFilterSameLetterCase … … 280 291 end 281 292 object ToolButton8: TToolButton 282 Left = 59293 Left = 71 283 294 Top = 0 284 295 Action = AFilterEnabledCategories … … 289 300 object StatusBar1: TStatusBar 290 301 Left = 0 291 Height = 2 8292 Top = 549293 Width = 847302 Height = 27 303 Top = 661 304 Width = 1016 294 305 Panels = < 295 306 item 296 Width = 250307 Width = 300 297 308 end 298 309 item 299 Width = 250310 Width = 300 300 311 end> 312 ParentFont = False 301 313 SimplePanel = False 302 314 end 303 315 object ActionList1: TActionList 304 316 Images = Core.ImageList1 305 left = 590306 top = 240317 Left = 708 318 Top = 288 307 319 object AExit: TAction 308 320 Caption = 'Exit' … … 426 438 object MainMenu1: TMainMenu 427 439 Images = Core.ImageList1 428 left = 590429 top = 170440 Left = 708 441 Top = 204 430 442 object MenuItem8: TMenuItem 431 443 Caption = 'File' … … 515 527 object OpenDialog1: TOpenDialog 516 528 DefaultExt = '.adp' 517 left = 100518 top = 260529 Left = 120 530 Top = 312 519 531 end 520 532 object SaveDialog1: TSaveDialog 521 533 DefaultExt = '.adp' 522 534 Filter = 'Acronym Decoder project (.adp)|*.adp|All files|*.*' 523 left = 100524 top = 180535 Left = 120 536 Top = 216 525 537 end 526 538 object LastOpenedList1: TLastOpenedList 527 539 MaxCount = 10 528 540 OnChange = LastOpenedList1Change 529 left = 330530 top = 300541 Left = 396 542 Top = 360 531 543 end 532 544 object ListViewSort1: TListViewSort … … 537 549 Column = 2 538 550 Order = soDown 539 left = 590540 top = 320551 Left = 708 552 Top = 384 541 553 end 542 554 object PopupMenuOpenRecent: TPopupMenu 543 555 Images = Core.ImageList1 544 left = 100545 top = 350556 Left = 120 557 Top = 420 546 558 end 547 559 object PopupMenuFilter: TPopupMenu 548 left = 345549 top = 181560 Left = 414 561 Top = 217 550 562 object MenuItem1: TMenuItem 551 563 Action = AManageAcronym … … 556 568 end 557 569 end 570 object AboutDialog1: TAboutDialog 571 Translator = Core.Translator 572 ThemeManager = Core.ThemeManager 573 ApplicationInfo = Core.ApplicationInfo1 574 Left = 392 575 Top = 448 576 end 558 577 end -
trunk/Forms/UFormMain.pas
r204 r207 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 9 ComCtrls, StdCtrls, ExtCtrls, ActnList, Grids, UAcronym, UPersistentForm, 10 URegistry, ULastOpenedList, UListViewSort, UJobProgressView, 10 URegistry, ULastOpenedList, UListViewSort, UJobProgressView, UAboutDialog, 11 11 Registry, fgl, LazUTF8, LazFileUtils; 12 12 … … 16 16 17 17 TFormMain = class(TForm) 18 AboutDialog1: TAboutDialog; 18 19 ADocumentCheck: TAction; 19 20 AFilterEnabledCategories: TAction; … … 439 440 procedure TFormMain.AShowAboutExecute(Sender: TObject); 440 441 begin 441 FormAbout := TFormAbout.Create(Self); 442 try 443 FormAbout.ApplicationInfo := Core.ApplicationInfo1; 444 FormAbout.ShowModal; 445 finally 446 FreeAndNil(FormAbout); 447 end; 442 AboutDialog1.Show; 448 443 end; 449 444 … … 760 755 // If installed in Linux system then use installation directory for po files 761 756 if Application.ExeName = '/usr/bin/' + ExtractFileNameOnly(Application.ExeName) then 762 Core. CoolTranslator1.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages';757 Core.Translator.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages'; 763 758 {$ENDIF} 764 759 -
trunk/Forms/UFormSettings.pas
r184 r207 81 81 procedure TFormSettings.FormCreate(Sender: TObject); 82 82 begin 83 Core. CoolTranslator1.TranslateComponentRecursive(Self);83 Core.Translator.TranslateComponentRecursive(Self); 84 84 Core.ThemeManager.UseTheme(Self); 85 85 Core.ThemeManager.Themes.LoadToStrings(ComboBoxTheme.Items); 86 Core. CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);86 Core.Translator.LanguageListToStrings(ComboBoxLanguage.Items); 87 87 end; 88 88 89 89 procedure TFormSettings.Load; 90 90 begin 91 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core. CoolTranslator1.Language);91 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Translator.Language); 92 92 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 93 93 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager.Theme); … … 105 105 begin 106 106 if ComboBoxLanguage.ItemIndex <> -1 then 107 Core. CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]);107 Core.Translator.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 108 108 if ComboBoxTheme.ItemIndex <> -1 then 109 109 Core.ThemeManager.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]);
Note:
See TracChangeset
for help on using the changeset viewer.