Changeset 162 for trunk/Forms
- Timestamp:
- Jun 30, 2023, 10:01:24 PM (17 months ago)
- Location:
- trunk/Forms
- Files:
-
- 6 deleted
- 39 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormColumns.lfm
r149 r162 1 1 object FormColumns: TFormColumns 2 Left = 7312 Left = 922 3 3 Height = 540 4 Top = 3444 Top = 450 5 5 Width = 715 6 6 Caption = 'Columns settings' … … 8 8 ClientWidth = 715 9 9 DesignTimePPI = 144 10 OnClose = FormClose11 10 OnCreate = FormCreate 12 11 OnDestroy = FormDestroy -
trunk/Forms/FormColumns.pas
r149 r162 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, VCard ;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, VCard, FormEx; 7 7 8 8 type … … 10 10 { TFormColumns } 11 11 12 TFormColumns = class(TForm )12 TFormColumns = class(TFormEx) 13 13 ButtonUp: TButton; 14 14 ButtonToLeft: TButton; … … 26 26 procedure ButtonToRightClick(Sender: TObject); 27 27 procedure ButtonUpClick(Sender: TObject); 28 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);29 28 procedure FormCreate(Sender: TObject); 30 29 procedure FormDestroy(Sender: TObject); … … 45 44 {$R *.lfm} 46 45 47 uses48 Core;49 50 46 { TFormColumns } 51 47 52 48 procedure TFormColumns.FormShow(Sender: TObject); 53 49 begin 54 Core.Core.PersistentForm1.Load(Self);55 56 50 ListBoxActive.Items.Assign(ActiveColumns); 57 51 ListBoxAvailable.Items.Assign(AvailableColumns); … … 85 79 ListBox.Items.Objects[Index1] := ListBox.Items.Objects[Index2]; 86 80 ListBox.Items.Objects[Index2] := TempObject; 87 end;88 89 procedure TFormColumns.FormClose(Sender: TObject; var CloseAction: TCloseAction90 );91 begin92 Core.Core.PersistentForm1.Save(Self);93 81 end; 94 82 … … 136 124 procedure TFormColumns.FormCreate(Sender: TObject); 137 125 begin 138 Core.Core.Translator.TranslateComponentRecursive(Self);139 Core.Core.ThemeManager1.UseTheme(Self);140 126 ActiveColumns := TStringList.Create; 141 127 AvailableColumns := TStringList.Create; -
trunk/Forms/FormCompare.lfm
r158 r162 1 1 object FormCompare: TFormCompare 2 Left = 6022 Left = 846 3 3 Height = 456 4 Top = 6394 Top = 492 5 5 Width = 867 6 6 Caption = 'Compare' -
trunk/Forms/FormCompare.pas
r154 r162 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, DataFile, 7 VCardFile, VCard, Common, RegistryEx ;7 VCardFile, VCard, Common, RegistryEx, FormEx; 8 8 9 9 type … … 11 11 { TFormCompare } 12 12 13 TFormCompare = class(TForm )13 TFormCompare = class(TFormEx) 14 14 ButtonBrowse: TButton; 15 15 ButtonCancel: TButton; … … 53 53 procedure TFormCompare.FormCreate(Sender: TObject); 54 54 begin 55 Core.Core.Translator.TranslateComponentRecursive(Self);56 Core.Core.ThemeManager1.UseTheme(Self);57 55 LeftVCard := TVCardFile.Create(nil); 58 56 RightVCard := TVCardFile.Create(nil); … … 69 67 begin 70 68 SaveConfig; 71 Core.Core.PersistentForm1.Save(Self);72 69 end; 73 70 … … 120 117 procedure TFormCompare.FormShow(Sender: TObject); 121 118 begin 122 Core.Core.PersistentForm1.Load(Self);123 119 LoadConfig; 124 120 end; -
trunk/Forms/FormCompareSideBySide.lfm
r159 r162 1 1 object FormCompareSideBySide: TFormCompareSideBySide 2 Left = 3772 Left = 684 3 3 Height = 888 4 Top = 2 694 Top = 276 5 5 Width = 1191 6 6 Caption = 'Compare side by side' … … 10 10 Menu = MainMenu1 11 11 OnActivate = FormActivate 12 OnClose = FormClose13 12 OnCreate = FormCreate 14 13 OnDestroy = FormDestroy -
trunk/Forms/FormCompareSideBySide.pas
r159 r162 7 7 VCard, Diff, LCLType, LCLIntf, ComCtrls, Buttons, Menus, ActnList, SynEdit, 8 8 SynEditMiscClasses, SynHighlighterPosition, SynEditHighlighter, Common, 9 SynEditEx ;9 SynEditEx, FormEx; 10 10 11 11 type … … 13 13 { TFormCompareSideBySide } 14 14 15 TFormCompareSideBySide = class(TForm )15 TFormCompareSideBySide = class(TFormEx) 16 16 ASwitchSides: TAction; 17 17 AReloadFiles: TAction; … … 41 41 procedure ASwitchSidesExecute(Sender: TObject); 42 42 procedure FormActivate(Sender: TObject); 43 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);44 43 procedure FormCreate(Sender: TObject); 45 44 procedure FormDestroy(Sender: TObject); … … 80 79 81 80 uses 82 Core,VCardFile;81 VCardFile; 83 82 84 83 { TFormCompareSideBySide } 85 86 procedure TFormCompareSideBySide.FormClose(Sender: TObject; var CloseAction: TCloseAction87 );88 begin89 Core.Core.PersistentForm1.Save(Self);90 end;91 84 92 85 procedure TFormCompareSideBySide.ASwitchSidesExecute(Sender: TObject); … … 143 136 procedure TFormCompareSideBySide.FormCreate(Sender: TObject); 144 137 begin 145 Core.Core.Translator.TranslateComponentRecursive(Self);146 Core.Core.ThemeManager1.UseTheme(Self);147 138 Diff := TDiff.Create(Self); 148 139 … … 196 187 procedure TFormCompareSideBySide.FormShow(Sender: TObject); 197 188 begin 198 Core.Core.PersistentForm1.Load(Self);199 189 UpdateInterface; 200 190 ReloadContent; -
trunk/Forms/FormContact.lfm
r160 r162 1476 1476 end 1477 1477 object OpenPictureDialog1: TOpenPictureDialog 1478 Title = 'Open existing file'1479 1478 Left = 168 1480 1479 Top = 552 1481 1480 end 1482 1481 object SavePictureDialog1: TSavePictureDialog 1483 Title = 'Save file as'1484 1482 Left = 169 1485 1483 Top = 468 -
trunk/Forms/FormContact.lrj
r149 r162 97 97 {"hash":368487,"name":"tformcontact.aphotoshow.caption","sourcebytes":[83,104,111,119],"value":"Show"}, 98 98 {"hash":163994172,"name":"tformcontact.aphotoseturl.caption","sourcebytes":[83,101,116,32,85,82,76],"value":"Set URL"}, 99 {"hash":218146437,"name":"tformcontact.openpicturedialog1.title","sourcebytes":[79,112,101,110,32,101,120,105,115,116,105,110,103,32,102,105,108,101],"value":"Open existing file"},100 {"hash":159035875,"name":"tformcontact.savepicturedialog1.title","sourcebytes":[83,97,118,101,32,102,105,108,101,32,97,115],"value":"Save file as"},101 99 {"hash":171928085,"name":"tformcontact.calendardialog1.title","sourcebytes":[83,101,108,101,99,116,32,100,97,116,101],"value":"Select date"}, 102 100 {"hash":11067,"name":"tformcontact.calendardialog1.okcaption","sourcebytes":[38,79,75],"value":"&OK"}, -
trunk/Forms/FormContact.pas
r149 r162 7 7 ComCtrls, ActnList, Menus, ExtCtrls, ExtDlgs, Buttons, VCard, LCLIntf, 8 8 FormProperties, DateUtils, {$IFDEF LCLGTK2}Gtk2Globals, {$ENDIF}ContactImage, 9 ubarcodes ;9 ubarcodes, FormEx; 10 10 11 11 type … … 13 13 { TFormContact } 14 14 15 TFormContact = class(TForm )15 TFormContact = class(TFormEx) 16 16 APhotoSetUrl: TAction; 17 17 APhotoShow: TAction; … … 325 325 if Visible then LastMouse.WinControl := PageControlContact.ActivePage; 326 326 {$ENDIF} 327 Core.Core.PersistentForm1.Load(Self);328 327 PhotoChange(nil); 329 328 … … 695 694 696 695 Core.Core.LastContactTabIndex := PageControlContact.TabIndex; 697 Core.Core.PersistentForm1.Save(Self);698 696 end; 699 697 … … 837 835 procedure TFormContact.FormCreate(Sender: TObject); 838 836 begin 839 Core.Core.Translator.TranslateComponentRecursive(Self);840 Core.Core.ThemeManager1.UseTheme(Self);841 837 FContact := nil; 842 838 FormProperties := TFormProperties.Create(nil); -
trunk/Forms/FormContacts.lfm
r149 r162 255 255 end 256 256 object SaveDialog1: TSaveDialog 257 Title = 'Uložit soubor jako' 257 258 Left = 720 258 259 Top = 408 259 260 end 260 261 object OpenDialog1: TOpenDialog 262 Title = 'Otevřít existující soubor' 261 263 Left = 720 262 264 Top = 480 -
trunk/Forms/FormContacts.lrj
r149 r162 19 19 {"hash":19140,"name":"tformcontacts.acut.caption","sourcebytes":[67,117,116],"value":"Cut"}, 20 20 {"hash":5671589,"name":"tformcontacts.apaste.caption","sourcebytes":[80,97,115,116,101],"value":"Paste"}, 21 {"hash":174310419,"name":"tformcontacts.acolumns.caption","sourcebytes":[67,111,108,117,109,110,115],"value":"Columns"} 21 {"hash":174310419,"name":"tformcontacts.acolumns.caption","sourcebytes":[67,111,108,117,109,110,115],"value":"Columns"}, 22 {"hash":201423615,"name":"tformcontacts.savedialog1.title","sourcebytes":[85,108,111,197,190,105,116,32,115,111,117,98,111,114,32,106,97,107,111],"value":"Ulo\u017Eit soubor jako"}, 23 {"hash":45680018,"name":"tformcontacts.opendialog1.title","sourcebytes":[79,116,101,118,197,153,195,173,116,32,101,120,105,115,116,117,106,195,173,99,195,173,32,115,111,117,98,111,114],"value":"Otev\u0159\u00EDt existuj\u00EDc\u00ED soubor"} 22 24 ]} -
trunk/Forms/FormContacts.pas
r160 r162 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 7 Menus, ActnList, VCard, ListViewSort, LazUTF8, Clipbrd, RegistryEx, 7 Menus, ActnList, VCard, ListViewSort, LazUTF8, Clipbrd, RegistryEx, FormEx, 8 8 Generics.Collections; 9 9 … … 12 12 { TFormContacts } 13 13 14 TFormContacts = class(TForm )14 TFormContacts = class(TFormEx) 15 15 AAdd: TAction; 16 16 AClone: TAction; … … 385 385 LoadFromRegistry(Context); 386 386 UpdateColumns; 387 Core.Core.Translator.TranslateComponentRecursive(Self);388 Core.Core.ThemeManager1.UseTheme(Self);389 Core.Core.PersistentForm1.Load(Self);390 387 ReloadList; 391 388 UpdateInterface; … … 672 669 begin 673 670 SaveToRegistry(Context); 674 Core.Core.PersistentForm1.Save(Self);675 671 end; 676 672 -
trunk/Forms/FormError.lfm
r158 r162 8 8 ClientWidth = 956 9 9 DesignTimePPI = 144 10 OnClose = FormClose11 OnCreate = FormCreate12 OnShow = FormShow13 10 LCLVersion = '2.2.6.0' 14 11 object MemoErrors: TMemo -
trunk/Forms/FormError.pas
r149 r162 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls ;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, FormEx; 7 7 8 8 type … … 10 10 { TFormError } 11 11 12 TFormError = class(TForm )12 TFormError = class(TFormEx) 13 13 MemoErrors: TMemo; 14 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);15 procedure FormCreate(Sender: TObject);16 procedure FormShow(Sender: TObject);17 14 end; 18 15 … … 22 19 {$R *.lfm} 23 20 24 uses25 Core;26 27 { TFormError }28 29 procedure TFormError.FormCreate(Sender: TObject);30 begin31 Core.Core.Translator.TranslateComponentRecursive(Self);32 Core.Core.ThemeManager1.UseTheme(Self);33 end;34 35 procedure TFormError.FormShow(Sender: TObject);36 begin37 Core.Core.PersistentForm1.Load(Self);38 end;39 40 procedure TFormError.FormClose(Sender: TObject; var CloseAction: TCloseAction);41 begin42 Core.Core.PersistentForm1.Save(Self);43 end;44 45 21 end. 46 22 -
trunk/Forms/FormExport.lfm
r160 r162 105 105 end 106 106 object SaveDialog1: TSaveDialog 107 Title = 'Uložit soubor jako' 107 108 Left = 350 108 109 Top = 163 -
trunk/Forms/FormExport.lrj
r158 r162 5 5 {"hash":31521658,"name":"tformexport.label1.caption","sourcebytes":[79,117,116,112,117,116,32,102,111,114,109,97,116,58],"value":"Output format:"}, 6 6 {"hash":50353482,"name":"tformexport.label2.caption","sourcebytes":[79,117,116,112,117,116,32,102,105,108,101,58],"value":"Output file:"}, 7 {"hash":77164181,"name":"tformexport.buttonbrowse.caption","sourcebytes":[66,114,111,119,115,101],"value":"Browse"} 7 {"hash":77164181,"name":"tformexport.buttonbrowse.caption","sourcebytes":[66,114,111,119,115,101],"value":"Browse"}, 8 {"hash":201423615,"name":"tformexport.savedialog1.title","sourcebytes":[85,108,111,197,190,105,116,32,115,111,117,98,111,114,32,106,97,107,111],"value":"Ulo\u017Eit soubor jako"} 8 9 ]} -
trunk/Forms/FormExport.pas
r161 r162 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, ComCtrls, 7 Table, LazFileUtils ;7 Table, LazFileUtils, FormEx; 8 8 9 9 type … … 11 11 { TFormExport } 12 12 13 TFormExport = class(TForm )13 TFormExport = class(TFormEx) 14 14 ButtonBrowse: TButton; 15 15 ButtonCancel: TButton; … … 50 50 begin 51 51 SaveConfig; 52 Core.Core.PersistentForm1.Save(Self);53 52 end; 54 53 … … 80 79 TableFormat: TTableFormat; 81 80 begin 82 Core.Core.Translator.TranslateComponentRecursive(Self);83 Core.Core.ThemeManager1.UseTheme(Self);84 85 81 ComboBoxOutputFormat.Items.BeginUpdate; 86 82 try … … 106 102 procedure TFormExport.FormShow(Sender: TObject); 107 103 begin 108 Core.Core.PersistentForm1.Load(Self);109 110 104 PrepareTable; 111 105 Table.GetOutputListView(ListView1); -
trunk/Forms/FormFind.lfm
r158 r162 9 9 ClientWidth = 807 10 10 DesignTimePPI = 144 11 OnClose = FormClose12 11 OnCreate = FormCreate 13 12 OnDestroy = FormDestroy -
trunk/Forms/FormFind.pas
r149 r162 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 7 ExtCtrls, StdCtrls, ActnList, Menus, VCard, FormContacts ;7 ExtCtrls, StdCtrls, ActnList, Menus, VCard, FormContacts, FormEx; 8 8 9 9 type … … 11 11 { TFormFind } 12 12 13 TFormFind = class(TForm )13 TFormFind = class(TFormEx) 14 14 ButtonFind: TButton; 15 15 ComboBoxField: TComboBox; … … 20 20 procedure ComboBoxFieldChange(Sender: TObject); 21 21 procedure EditValueKeyPress(Sender: TObject; var Key: char); 22 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);23 22 procedure FormCreate(Sender: TObject); 24 23 procedure FormDestroy(Sender: TObject); … … 38 37 39 38 {$R *.lfm} 40 41 uses42 Core;43 39 44 40 resourcestring … … 93 89 procedure TFormFind.FormCreate(Sender: TObject); 94 90 begin 95 Core.Core.Translator.TranslateComponentRecursive(Self);96 Core.Core.ThemeManager1.UseTheme(Self);97 98 91 ContactFieldIndex := cfNone; 99 92 … … 125 118 end; 126 119 127 procedure TFormFind.FormClose(Sender: TObject;128 var CloseAction: TCloseAction);129 begin130 Core.Core.PersistentForm1.Save(Self);131 end;132 133 120 procedure TFormFind.FormDestroy(Sender: TObject); 134 121 begin … … 138 125 procedure TFormFind.FormShow(Sender: TObject); 139 126 begin 140 Core.Core.PersistentForm1.Load(Self);141 142 127 FormContacts.ManualDock(Self, nil, alClient); 143 128 FormContacts.Align := alClient; -
trunk/Forms/FormFindDuplicity.lfm
r155 r162 8 8 ClientWidth = 807 9 9 DesignTimePPI = 144 10 OnClose = FormClose11 10 OnCreate = FormCreate 12 11 OnDestroy = FormDestroy … … 56 55 object ComboBoxField: TComboBox 57 56 Left = 232 58 Height = 3357 Height = 42 59 58 Top = 16 60 59 Width = 326 61 ItemHeight = 2560 ItemHeight = 0 62 61 OnChange = ComboBoxFieldChange 63 62 ParentFont = False … … 67 66 object Label1: TLabel 68 67 Left = 13 69 Height = 2 568 Height = 26 70 69 Top = 19 71 Width = 1 2570 Width = 135 72 71 Caption = 'By contact field:' 73 72 ParentColor = False -
trunk/Forms/FormFindDuplicity.pas
r152 r162 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 7 7 ExtCtrls, StdCtrls, ActnList, Menus, VCard, Generics.Collections, RegistryEx, 8 Generics.Defaults ;8 Generics.Defaults, FormEx; 9 9 10 10 type … … 27 27 { TFormFindDuplicity } 28 28 29 TFormFindDuplicity = class(TForm )29 TFormFindDuplicity = class(TFormEx) 30 30 AShowContacts: TAction; 31 31 ActionList1: TActionList; … … 40 40 procedure ButtonMergeClick(Sender: TObject); 41 41 procedure ComboBoxFieldChange(Sender: TObject); 42 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);43 42 procedure FormCreate(Sender: TObject); 44 43 procedure FormDestroy(Sender: TObject); … … 165 164 procedure TFormFindDuplicity.FormCreate(Sender: TObject); 166 165 begin 167 Core.Core.Translator.TranslateComponentRecursive(Self);168 Core.Core.ThemeManager1.UseTheme(Self);169 170 166 FoundItems := TFoundItems.Create; 171 167 ContactFieldIndex := cfFullName; … … 234 230 end; 235 231 236 procedure TFormFindDuplicity.FormClose(Sender: TObject;237 var CloseAction: TCloseAction);238 begin239 Core.Core.PersistentForm1.Save(Self);240 end;241 242 232 procedure TFormFindDuplicity.FormDestroy(Sender: TObject); 243 233 begin … … 247 237 procedure TFormFindDuplicity.FormShow(Sender: TObject); 248 238 begin 249 Core.Core.PersistentForm1.Load(Self);250 239 Find; 251 240 end; -
trunk/Forms/FormGenerate.lfm
r157 r162 9 9 DesignTimePPI = 144 10 10 OnClose = FormClose 11 OnCreate = FormCreate12 11 OnShow = FormShow 13 12 LCLVersion = '2.2.6.0' -
trunk/Forms/FormGenerate.pas
r157 r162 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 7 Spin, VCard ;7 Spin, VCard, FormEx; 8 8 9 9 type … … 11 11 { TFormGenerate } 12 12 13 TFormGenerate = class(TForm )13 TFormGenerate = class(TFormEx) 14 14 ButtonGenerate: TButton; 15 15 Label1: TLabel; … … 17 17 procedure ButtonGenerateClick(Sender: TObject); 18 18 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 19 procedure FormCreate(Sender: TObject);20 19 procedure FormShow(Sender: TObject); 21 20 public … … 93 92 begin 94 93 Core.Core.GenerateCount := SpinEditCount.Value; 95 Core.Core.PersistentForm1.Save(Self);96 end;97 98 procedure TFormGenerate.FormCreate(Sender: TObject);99 begin100 Core.Core.Translator.TranslateComponentRecursive(Self);101 Core.Core.ThemeManager1.UseTheme(Self);102 94 end; 103 95 104 96 procedure TFormGenerate.FormShow(Sender: TObject); 105 97 begin 106 Core.Core.PersistentForm1.Load(Self);107 98 SpinEditCount.Value := Core.Core.GenerateCount; 108 99 UpdateInterface; -
trunk/Forms/FormImage.pas
r149 r162 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ExtCtrls, StdCtrls, 7 ExtDlgs, ContactImage ;7 ExtDlgs, ContactImage, FormEx; 8 8 9 9 type … … 11 11 { TFormImage } 12 12 13 TFormImage = class(TForm )13 TFormImage = class(TFormEx) 14 14 ButtonCancel: TButton; 15 15 ButtonOk: TButton; … … 26 26 procedure ButtonSaveClick(Sender: TObject); 27 27 procedure EditUrlChange(Sender: TObject); 28 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);29 28 procedure FormCreate(Sender: TObject); 30 29 procedure FormDestroy(Sender: TObject); … … 47 46 { TFormImage } 48 47 49 procedure TFormImage.FormClose(Sender: TObject; var CloseAction: TCloseAction);50 begin51 Core.Core.PersistentForm1.Save(Self);52 end;53 54 48 procedure TFormImage.FormCreate(Sender: TObject); 55 49 begin 56 Core.Core.Translator.TranslateComponentRecursive(Self);57 Core.Core.ThemeManager1.UseTheme(Self);58 59 50 Image := TContactImage.Create(nil); 60 51 Image.OnChange := ImageChange; … … 98 89 procedure TFormImage.FormShow(Sender: TObject); 99 90 begin 100 Core.Core.PersistentForm1.Load(Self);101 102 91 ImageChange(nil); 103 92 end; -
trunk/Forms/FormMain.lfm
r158 r162 1 1 object FormMain: TFormMain 2 Left = 5 533 Height = 7964 Top = 4015 Width = 1 1782 Left = 534 3 Height = 993 4 Top = 223 5 Width = 1491 6 6 AllowDropFiles = True 7 7 Caption = 'vCard Studio' 8 ClientHeight = 7629 ClientWidth = 1 1788 ClientHeight = 959 9 ClientWidth = 1491 10 10 DesignTimePPI = 144 11 11 Menu = MainMenu1 … … 22 22 Height = 43 23 23 Top = 0 24 Width = 1 17824 Width = 1491 25 25 AutoSize = True 26 26 Bands = < -
trunk/Forms/FormMain.pas
r158 r162 5 5 uses 6 6 Classes, SysUtils, LazFileUtils, Forms, Controls, Graphics, Dialogs, Menus, 7 ComCtrls, FormContacts ;7 ComCtrls, FormContacts, FormEx; 8 8 9 9 type … … 11 11 { TFormMain } 12 12 13 TFormMain = class(TForm )13 TFormMain = class(TFormEx) 14 14 CoolBar1: TCoolBar; 15 15 MainMenu1: TMainMenu; … … 95 95 SaveConfig; 96 96 FormContacts.Close; 97 Core.Core.PersistentForm1.Save(Self);98 97 Application.Terminate; 99 98 end; … … 139 138 SetToolbarHints; 140 139 Core.Core.Initialize; 141 Core.Core.Translator.TranslateComponentRecursive(Self);142 Core.Core.ThemeManager1.UseTheme(Self);143 Core.Core.PersistentForm1.Load(Self);144 Core.Core.ScaleDPI1.ScaleControl(CoolBar1, Core.Core.ScaleDPI1.DesignDPI);140 Translator.TranslateComponentRecursive(Self); 141 ThemeManager.UseTheme(Self); 142 PersistentForm.Load(Self); 143 ScaleDPI.ScaleControl(CoolBar1, Core.Core.ScaleDPI1.DesignDPI); 145 144 CoolBar1.AutosizeBands; 146 145 -
trunk/Forms/FormNameDetails.lfm
r155 r162 10 10 Constraints.MinWidth = 270 11 11 DesignTimePPI = 144 12 OnClose = FormClose13 OnCreate = FormCreate14 OnShow = FormShow15 12 LCLVersion = '2.2.6.0' 16 13 object EditFirstName: TEdit 17 14 Left = 192 18 Height = 3315 Height = 43 19 16 Top = 61 20 17 Width = 361 … … 25 22 object Label1: TLabel 26 23 Left = 15 27 Height = 2 524 Height = 26 28 25 Top = 69 29 Width = 3726 Width = 41 30 27 Caption = 'First:' 31 28 ParentColor = False … … 34 31 object Label5: TLabel 35 32 Left = 15 36 Height = 2 533 Height = 26 37 34 Top = 161 38 Width = 3 535 Width = 39 39 36 Caption = 'Last:' 40 37 ParentColor = False … … 43 40 object EditLastName: TEdit 44 41 Left = 192 45 Height = 3342 Height = 43 46 43 Top = 154 47 44 Width = 361 … … 52 49 object EditMiddleName: TEdit 53 50 Left = 192 54 Height = 3351 Height = 43 55 52 Top = 108 56 53 Width = 361 … … 61 58 object Label25: TLabel 62 59 Left = 15 63 Height = 2 560 Height = 26 64 61 Top = 119 65 Width = 5962 Width = 63 66 63 Caption = 'Middle:' 67 64 ParentColor = False … … 70 67 object Label26: TLabel 71 68 Left = 15 72 Height = 2 569 Height = 26 73 70 Top = 23 74 Width = 3671 Width = 41 75 72 Caption = 'Title:' 76 73 ParentColor = False … … 79 76 object EditTitleBefore: TEdit 80 77 Left = 192 81 Height = 3378 Height = 43 82 79 Top = 15 83 80 Width = 361 … … 88 85 object Label27: TLabel 89 86 Left = 15 90 Height = 2 587 Height = 26 91 88 Top = 207 92 Width = 4889 Width = 53 93 90 Caption = 'Suffix:' 94 91 ParentColor = False … … 97 94 object EditTitleAfter: TEdit 98 95 Left = 192 99 Height = 3396 Height = 43 100 97 Top = 200 101 98 Width = 361 -
trunk/Forms/FormNameDetails.pas
r149 r162 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls ;6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, FormEx; 7 7 8 8 type … … 10 10 { TFormNameDetails } 11 11 12 TFormNameDetails = class(TForm )12 TFormNameDetails = class(TFormEx) 13 13 ButtonOk: TButton; 14 14 ButtonCancel: TButton; … … 23 23 Label27: TLabel; 24 24 Label5: TLabel; 25 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);26 procedure FormCreate(Sender: TObject);27 procedure FormShow(Sender: TObject);28 25 end; 29 26 … … 33 30 {$R *.lfm} 34 31 35 uses36 Core;37 38 { TFormNameDetails }39 40 procedure TFormNameDetails.FormClose(Sender: TObject;41 var CloseAction: TCloseAction);42 begin43 Core.Core.PersistentForm1.Save(Self);44 end;45 46 procedure TFormNameDetails.FormCreate(Sender: TObject);47 begin48 Core.Core.Translator.TranslateComponentRecursive(Self);49 Core.Core.ThemeManager1.UseTheme(Self);50 end;51 52 procedure TFormNameDetails.FormShow(Sender: TObject);53 begin54 Core.Core.PersistentForm1.Load(Self);55 end;56 57 32 end. 58 33 -
trunk/Forms/FormNormalize.lfm
r158 r162 9 9 DesignTimePPI = 144 10 10 OnClose = FormClose 11 OnCreate = FormCreate12 11 OnShow = FormShow 13 12 LCLVersion = '2.2.6.0' -
trunk/Forms/FormNormalize.pas
r155 r162 6 6 7 7 uses 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, RegistryEx; 8 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, RegistryEx, 9 FormEx; 9 10 10 11 type … … 12 13 { TFormNormalize } 13 14 14 TFormNormalize = class(TForm )15 TFormNormalize = class(TFormEx) 15 16 ButtonCancel: TButton; 16 17 ButtonProcess: TButton; … … 25 26 procedure ButtonProcessClick(Sender: TObject); 26 27 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 27 procedure FormCreate(Sender: TObject);28 28 procedure FormShow(Sender: TObject); 29 29 private … … 41 41 { TFormNormalize } 42 42 43 procedure TFormNormalize.FormCreate(Sender: TObject);44 begin45 Core.Core.Translator.TranslateComponentRecursive(Self);46 Core.Core.ThemeManager1.UseTheme(Self);47 end;48 49 43 procedure TFormNormalize.FormClose(Sender: TObject; 50 44 var CloseAction: TCloseAction); 51 45 begin 52 46 SaveConfig; 53 Core.Core.PersistentForm1.Save(Self);54 47 end; 55 48 … … 77 70 begin 78 71 LoadConfig; 79 Core.Core.PersistentForm1.Load(Self);80 72 end; 81 73 -
trunk/Forms/FormProperties.lfm
r160 r162 8 8 ClientWidth = 1210 9 9 DesignTimePPI = 144 10 OnClose = FormClose11 10 OnCreate = FormCreate 12 11 OnShow = FormShow … … 193 192 end 194 193 object SaveDialog1: TSaveDialog 194 Title = 'Uložit soubor jako' 195 195 Left = 760 196 196 Top = 448 197 197 end 198 198 object OpenDialog1: TOpenDialog 199 Title = 'Otevřít existující soubor' 199 200 Left = 760 200 201 Top = 520 -
trunk/Forms/FormProperties.lrj
r149 r162 10 10 {"hash":4863557,"name":"tformproperties.aclone.caption","sourcebytes":[67,108,111,110,101],"value":"Clone"}, 11 11 {"hash":201478110,"name":"tformproperties.asavevaluetofile.caption","sourcebytes":[83,97,118,101,32,118,97,108,117,101,32,116,111,32,102,105,108,101,46,46,46],"value":"Save value to file..."}, 12 {"hash":231494782,"name":"tformproperties.aloadvaluefromfile.caption","sourcebytes":[76,111,97,100,32,118,97,108,117,101,32,102,114,111,109,32,102,105,108,101,46,46,46],"value":"Load value from file..."} 12 {"hash":231494782,"name":"tformproperties.aloadvaluefromfile.caption","sourcebytes":[76,111,97,100,32,118,97,108,117,101,32,102,114,111,109,32,102,105,108,101,46,46,46],"value":"Load value from file..."}, 13 {"hash":201423615,"name":"tformproperties.savedialog1.title","sourcebytes":[85,108,111,197,190,105,116,32,115,111,117,98,111,114,32,106,97,107,111],"value":"Ulo\u017Eit soubor jako"}, 14 {"hash":45680018,"name":"tformproperties.opendialog1.title","sourcebytes":[79,116,101,118,197,153,195,173,116,32,101,120,105,115,116,117,106,195,173,99,195,173,32,115,111,117,98,111,114],"value":"Otev\u0159\u00EDt existuj\u00EDc\u00ED soubor"} 13 15 ]} -
trunk/Forms/FormProperties.pas
r149 r162 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls, 7 Menus, ActnList, VCard, DataFile, ListViewSort, LazUTF8, 7 Menus, ActnList, VCard, DataFile, ListViewSort, LazUTF8, FormEx, 8 8 Generics.Collections; 9 9 … … 12 12 { TFormProperties } 13 13 14 TFormProperties = class(TForm )14 TFormProperties = class(TFormEx) 15 15 AAdd: TAction; 16 16 AClone: TAction; … … 51 51 procedure ASaveValueToFileExecute(Sender: TObject); 52 52 procedure ASelectAllExecute(Sender: TObject); 53 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);54 53 procedure FormCreate(Sender: TObject); 55 54 procedure FormShow(Sender: TObject); … … 204 203 procedure TFormProperties.FormShow(Sender: TObject); 205 204 begin 206 Core.Core.PersistentForm1.Load(Self);207 205 ReloadList; 208 206 UpdateInterface; … … 336 334 end; 337 335 338 procedure TFormProperties.FormClose(Sender: TObject; var CloseAction: TCloseAction339 );340 begin341 Core.Core.PersistentForm1.Save(Self);342 end;343 344 336 procedure TFormProperties.FormCreate(Sender: TObject); 345 337 var 346 338 I: Integer; 347 339 begin 348 Core.Core.Translator.TranslateComponentRecursive(Self);349 Core.Core.ThemeManager1.UseTheme(Self);350 351 340 FProperties := nil; 352 341 for I := 0 to ToolBar1.ButtonCount - 1 do begin -
trunk/Forms/FormProperty.pas
r155 r162 4 4 5 5 uses 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, VCard; 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, VCard, 7 FormEx; 7 8 8 9 type … … 10 11 { TFormProperty } 11 12 12 TFormProperty = class(TForm )13 TFormProperty = class(TFormEx) 13 14 ButtonCancel: TButton; 14 15 ButtonOk: TButton; … … 26 27 procedure EditAttributesChange(Sender: TObject); 27 28 procedure EditNameChange(Sender: TObject); 28 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);29 29 procedure FormCreate(Sender: TObject); 30 procedure FormShow(Sender: TObject);31 30 private 32 31 FContactProperty: TContactProperty; … … 43 42 44 43 {$R *.lfm} 45 46 uses47 Core;48 44 49 45 { TFormProperty } … … 89 85 end; 90 86 91 procedure TFormProperty.FormClose(Sender: TObject; var CloseAction: TCloseAction);92 begin93 Core.Core.PersistentForm1.Save(Self);94 end;95 96 87 procedure TFormProperty.FormCreate(Sender: TObject); 97 88 begin 98 Core.Core.Translator.TranslateComponentRecursive(Self);99 Core.Core.ThemeManager1.UseTheme(Self);100 101 89 FContactProperty := nil; 102 90 TContact.GetFields.LoadToStrings(ComboBoxField.Items); 103 end;104 105 procedure TFormProperty.FormShow(Sender: TObject);106 begin107 Core.Core.PersistentForm1.Load(Self);108 91 end; 109 92 -
trunk/Forms/FormSettings.lfm
r161 r162 10 10 Constraints.MinWidth = 526 11 11 DesignTimePPI = 144 12 OnClose = FormClose13 OnCreate = FormCreate14 12 OnShow = FormShow 15 13 Position = poScreenCenter … … 218 216 end 219 217 object OpenDialog1: TOpenDialog 218 Title = 'Otevřít existující soubor' 220 219 Left = 640 221 220 Top = 72 -
trunk/Forms/FormSettings.lrj
r158 r162 13 13 {"hash":77164181,"name":"tformsettings.buttonbrowse.caption","sourcebytes":[66,114,111,119,115,101],"value":"Browse"}, 14 14 {"hash":99356634,"name":"tformsettings.label6.caption","sourcebytes":[68,101,102,97,117,108,116,32,112,104,111,110,101,32,99,111,117,110,116,114,121,32,112,114,101,102,105,120,58],"value":"Default phone country prefix:"}, 15 {"hash":112394474,"name":"tformsettings.label7.caption","sourcebytes":[68,101,102,97,117,108,116,32,105,110,116,101,114,110,97,116,105,111,110,97,108,32,99,97,108,108,32,112,114,101,102,105,120,58],"value":"Default international call prefix:"} 15 {"hash":112394474,"name":"tformsettings.label7.caption","sourcebytes":[68,101,102,97,117,108,116,32,105,110,116,101,114,110,97,116,105,111,110,97,108,32,99,97,108,108,32,112,114,101,102,105,120,58],"value":"Default international call prefix:"}, 16 {"hash":45680018,"name":"tformsettings.opendialog1.title","sourcebytes":[79,116,101,118,197,153,195,173,116,32,101,120,105,115,116,117,106,195,173,99,195,173,32,115,111,117,98,111,114],"value":"Otev\u0159\u00EDt existuj\u00EDc\u00ED soubor"} 16 17 ]} -
trunk/Forms/FormSettings.pas
r152 r162 5 5 uses 6 6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 7 Menus, Spin, ExtCtrls, Languages ;7 Menus, Spin, ExtCtrls, Languages, FormEx; 8 8 9 9 type … … 11 11 { TFormSettings } 12 12 13 TFormSettings = class(TForm )13 TFormSettings = class(TFormEx) 14 14 ButtonBrowse: TButton; 15 15 ButtonOk: TButton; … … 39 39 procedure CheckBoxAutomaticDPIChange(Sender: TObject); 40 40 procedure CheckBoxStartOnLogonChange(Sender: TObject); 41 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);42 procedure FormCreate(Sender: TObject);43 41 procedure FormShow(Sender: TObject); 44 42 private … … 62 60 procedure TFormSettings.FormShow(Sender: TObject); 63 61 begin 64 Core.Core.PersistentForm1.Load(Self);65 66 62 Core.Core.Translator.LanguageListToStrings(ComboBoxLanguage.Items); 67 63 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.Core.Translator.Language); … … 98 94 begin 99 95 UpdateInterface; 100 end;101 102 procedure TFormSettings.FormClose(Sender: TObject; var CloseAction: TCloseAction103 );104 begin105 Core.Core.PersistentForm1.Save(Self);106 end;107 108 procedure TFormSettings.FormCreate(Sender: TObject);109 begin110 Core.Core.Translator.TranslateComponentRecursive(Self);111 Core.Core.ThemeManager1.UseTheme(Self);112 96 end; 113 97 -
trunk/Forms/FormSource.lfm
r149 r162 8 8 ClientWidth = 913 9 9 DesignTimePPI = 144 10 OnClose = FormClose11 10 OnCreate = FormCreate 12 11 OnDestroy = FormDestroy -
trunk/Forms/FormSource.pas
r149 r162 5 5 uses 6 6 Classes, SysUtils, Forms, Controls, Graphics, Dialogs, ActnList, Menus, 7 StdCtrls, SynEdit, SynHighlighterAny, VCardHighlighter, Common ;7 StdCtrls, SynEdit, SynHighlighterAny, VCardHighlighter, Common, FormEx; 8 8 9 9 type … … 11 11 { TFormSource } 12 12 13 TFormSource = class(TForm )13 TFormSource = class(TFormEx) 14 14 APaste: TAction; 15 15 ACopy: TAction; … … 29 29 procedure APasteExecute(Sender: TObject); 30 30 procedure ASelectAllExecute(Sender: TObject); 31 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);32 31 procedure FormCreate(Sender: TObject); 33 32 procedure FormDestroy(Sender: TObject); … … 51 50 52 51 { TFormSource } 53 54 procedure TFormSource.FormClose(Sender: TObject; var CloseAction: TCloseAction);55 begin56 Core.Core.PersistentForm1.Save(Self);57 end;58 52 59 53 procedure TFormSource.ASelectAllExecute(Sender: TObject); … … 82 76 I: Integer; 83 77 begin 84 Core.Core.Translator.TranslateComponentRecursive(Self);85 Core.Core.ThemeManager1.UseTheme(Self);86 87 78 VCardHighlighter := TSynVCardHighlighter.Create(nil); 88 79 ContactFields := TContact.GetFields; … … 102 93 procedure TFormSource.FormShow(Sender: TObject); 103 94 begin 104 Core.Core.PersistentForm1.Load(Self);105 95 UpdateTheme; 106 96 end;
Note:
See TracChangeset
for help on using the changeset viewer.