- Timestamp:
- Aug 19, 2021, 11:47:56 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContact.lfm
r21 r23 11 11 OnCreate = FormCreate 12 12 OnShow = FormShow 13 LCLVersion = '2.0. 0.4'13 LCLVersion = '2.0.12.0' 14 14 object PageControlContact: TPageControl 15 15 Left = 10 … … 483 483 object ActionList1: TActionList 484 484 Images = Core.ImageList1 485 left = 380486 top = 188485 Left = 380 486 Top = 188 487 487 object AEditField: TAction 488 488 Caption = 'Edit' … … 492 492 object PopupMenu1: TPopupMenu 493 493 Images = Core.ImageList1 494 left = 206495 top = 191494 Left = 206 495 Top = 191 496 496 object MenuItem1: TMenuItem 497 497 Action = AEditField -
trunk/Forms/UFormContact.pas
r15 r23 145 145 procedure TFormContact.FormCreate(Sender: TObject); 146 146 begin 147 Core. CoolTranslator1.TranslateComponentRecursive(Self);147 Core.Translator.TranslateComponentRecursive(Self); 148 148 Core.ThemeManager1.UseTheme(Self); 149 149 Contact := nil; -
trunk/Forms/UFormContacts.lfm
r21 r23 11 11 OnCreate = FormCreate 12 12 OnShow = FormShow 13 LCLVersion = '2.0. 0.4'13 LCLVersion = '2.0.12.0' 14 14 object ListView1: TListView 15 15 Left = 0 … … 82 82 object PopupMenuContact: TPopupMenu 83 83 Images = Core.ImageList1 84 left = 43585 top = 26384 Left = 435 85 Top = 263 86 86 object MenuItem1: TMenuItem 87 87 Action = AAdd … … 99 99 object ActionList1: TActionList 100 100 Images = Core.ImageList1 101 left = 732102 top = 257101 Left = 732 102 Top = 257 103 103 object AAdd: TAction 104 104 Caption = 'Add' -
trunk/Forms/UFormContacts.pas
r19 r23 104 104 Core.PersistentForm1.Load(Self); 105 105 Core.ThemeManager1.UseTheme(Self); 106 Core. CoolTranslator1.TranslateComponentRecursive(Self);106 Core.Translator.TranslateComponentRecursive(Self); 107 107 ReloadList; 108 108 UpdateInterface; -
trunk/Forms/UFormFindDuplicity.lfm
r21 r23 12 12 OnDestroy = FormDestroy 13 13 OnShow = FormShow 14 LCLVersion = '2.0. 0.4'14 LCLVersion = '2.0.12.0' 15 15 object ListView1: TListView 16 16 Left = 5 … … 56 56 object ComboBoxField: TComboBox 57 57 Left = 173 58 Height = 4 258 Height = 41 59 59 Top = 14 60 60 Width = 326 … … 67 67 object Label1: TLabel 68 68 Left = 13 69 Height = 2 669 Height = 24 70 70 Top = 19 71 Width = 11 371 Width = 111 72 72 Caption = 'Contact field:' 73 73 ParentColor = False … … 76 76 end 77 77 object ActionList1: TActionList 78 left = 26279 top = 15478 Left = 262 79 Top = 154 80 80 object AShowContacts: TAction 81 81 Caption = 'Show contacts' … … 84 84 end 85 85 object PopupMenu1: TPopupMenu 86 left = 9087 top = 14986 Left = 90 87 Top = 149 88 88 object MenuItem1: TMenuItem 89 89 Action = AShowContacts -
trunk/Forms/UFormFindDuplicity.pas
r18 r23 151 151 begin 152 152 FoundItems := TFoundItems.Create; 153 Core. CoolTranslator1.TranslateComponentRecursive(Self);153 Core.Translator.TranslateComponentRecursive(Self); 154 154 Core.ThemeManager1.UseTheme(Self); 155 155 ContactField := cfTelCell; -
trunk/Forms/UFormGenerate.lfm
r21 r23 11 11 OnCreate = FormCreate 12 12 OnShow = FormShow 13 LCLVersion = '2.0. 0.4'13 LCLVersion = '2.0.12.0' 14 14 object Label1: TLabel 15 15 Left = 19 16 Height = 2 616 Height = 24 17 17 Top = 19 18 Width = 5 618 Width = 55 19 19 Caption = 'Count:' 20 20 ParentColor = False … … 23 23 object SpinEditCount: TSpinEdit 24 24 Left = 155 25 Height = 4 325 Height = 42 26 26 Top = 18 27 27 Width = 152 -
trunk/Forms/UFormGenerate.pas
r18 r23 64 64 procedure TFormGenerate.FormCreate(Sender: TObject); 65 65 begin 66 Core. CoolTranslator1.TranslateComponentRecursive(Self);66 Core.Translator.TranslateComponentRecursive(Self); 67 67 Core.ThemeManager1.UseTheme(Self); 68 68 end; -
trunk/Forms/UFormSettings.lfm
r21 r23 14 14 OnShow = FormShow 15 15 Position = poScreenCenter 16 LCLVersion = '2.0. 0.4'16 LCLVersion = '2.0.12.0' 17 17 object ComboBoxLanguage: TComboBox 18 18 Left = 192 19 Height = 4 219 Height = 41 20 20 Top = 36 21 21 Width = 312 … … 27 27 object Label1: TLabel 28 28 Left = 24 29 Height = 2 629 Height = 24 30 30 Top = 36 31 31 Width = 88 … … 61 61 Height = 30 62 62 Top = 125 63 Width = 1 5063 Width = 148 64 64 Caption = 'Automatic DPI' 65 65 OnChange = CheckBoxAutomaticDPIChange … … 70 70 object SpinEditDPI: TSpinEdit 71 71 Left = 192 72 Height = 4 372 Height = 42 73 73 Top = 173 74 74 Width = 145 … … 82 82 object LabelDPI: TLabel 83 83 Left = 96 84 Height = 2 684 Height = 24 85 85 Top = 182 86 86 Width = 35 … … 94 94 Height = 30 95 95 Top = 86 96 Width = 22 996 Width = 226 97 97 Caption = 'Reopen last file on start' 98 98 ParentFont = False … … 108 108 object Label2: TLabel 109 109 Left = 24 110 Height = 2 6110 Height = 24 111 111 Top = 221 112 112 Width = 63 … … 117 117 object ComboBoxTheme: TComboBox 118 118 Left = 192 119 Height = 4 2119 Height = 41 120 120 Top = 221 121 121 Width = 312 -
trunk/Forms/UFormSettings.pas
r16 r23 56 56 Core.PersistentForm1.Load(Self); 57 57 58 Core. CoolTranslator1.LanguageListToStrings(ComboBoxLanguage.Items);59 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core. CoolTranslator1.Language);58 Core.Translator.LanguageListToStrings(ComboBoxLanguage.Items); 59 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Translator.Language); 60 60 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 61 61 … … 68 68 begin 69 69 if ComboBoxLanguage.ItemIndex <> -1 then 70 Core. CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxTheme.ItemIndex]);70 Core.Translator.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 71 71 if ComboBoxTheme.ItemIndex <> -1 then 72 72 Core.ThemeManager1.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]); … … 91 91 procedure TFormSettings.FormCreate(Sender: TObject); 92 92 begin 93 Core. CoolTranslator1.TranslateComponentRecursive(Self);93 Core.Translator.TranslateComponentRecursive(Self); 94 94 Core.ThemeManager1.UseTheme(Self); 95 95 end; -
trunk/UCore.lfm
r22 r23 8710 8710 Top = 125 8711 8711 end 8712 object CoolTranslator1: TTranslator8712 object Translator: TTranslator 8713 8713 POFilesFolder = 'Languages' 8714 8714 Left = 115 … … 8725 8725 end 8726 8726 object AboutDialog1: TAboutDialog 8727 CoolTranslator = CoolTranslator18727 CoolTranslator = Translator 8728 8728 ThemeManager = ThemeManager1 8729 8729 ApplicationInfo = ApplicationInfo1 -
trunk/UCore.pas
r22 r23 41 41 ActionList1: TActionList; 42 42 ApplicationInfo1: TApplicationInfo; 43 CoolTranslator1: TTranslator;43 Translator: TTranslator; 44 44 ImageList1: TImageList; 45 45 LastOpenedList1: TLastOpenedList; … … 273 273 274 274 procedure TCore.DataModuleCreate(Sender: TObject); 275 begin 275 const 276 LinuxLanguagesDir = '/usr/share/vCardStudio/Languages'; 277 begin 278 {$IFDEF Linux} 279 // If installed in Linux system then use installation directory for po files 280 if not DirectoryExists(Translator.POFilesFolder) and DirectoryExists(LinuxLanguagesDir) then 281 Translator.POFilesFolder := LinuxLanguagesDir; 282 {$ENDIF} 283 276 284 DataFile := nil; 277 285 DefaultDataFileClass := TContactsFile; … … 396 404 CurrentContext := ApplicationInfo1.GetRegistryContext; 397 405 if ValueExists('LanguageCode') then 398 CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', ''))399 else CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode('');406 Translator.Language := Translator.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', '')) 407 else Translator.Language := Translator.Languages.SearchByCode(''); 400 408 if ValueExists('Theme') then 401 409 ThemeManager1.Theme := ThemeManager1.Themes.FindByName(ReadStringWithDefault('Theme', 'System')) … … 416 424 try 417 425 CurrentContext := ApplicationInfo1.GetRegistryContext; 418 if Assigned( CoolTranslator1.Language) and (CoolTranslator1.Language.Code <> '') then419 WriteString('LanguageCode', CoolTranslator1.Language.Code)426 if Assigned(Translator.Language) and (Translator.Language.Code <> '') then 427 WriteString('LanguageCode', Translator.Language.Code) 420 428 else DeleteValue('LanguageCode'); 421 429 if Assigned(ThemeManager1.Theme) and (ThemeManager1.Theme.Name <> '') then -
trunk/vCardStudio.lpr
r22 r23 4 4 5 5 uses 6 {$IFDEF UNIX} {$IFDEF UseCThreads}7 cthreads, 8 {$ENDIF} {$ENDIF}6 {$IFDEF UNIX} 7 cthreads, clocale, 8 {$ENDIF} 9 9 Interfaces, // this includes the LCL widgetset 10 10 Forms, UFormMain, UCore, Common, UDataFile,
Note:
See TracChangeset
for help on using the changeset viewer.