Changeset 15 for trunk/Forms
- Timestamp:
- Feb 27, 2018, 6:11:44 PM (7 years ago)
- Location:
- trunk/Forms
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAbout.pas
r1 r15 69 69 begin 70 70 Core.CoolTranslator1.TranslateComponentRecursive(Self); 71 Core.ThemeManager1.UseTheme(Self); 71 72 end; 72 73 -
trunk/Forms/UFormContact.lfm
r9 r15 17 17 Top = 8 18 18 Width = 744 19 ActivePage = TabSheet General19 ActivePage = TabSheetAll 20 20 Anchors = [akTop, akLeft, akRight, akBottom] 21 TabIndex = 021 TabIndex = 2 22 22 TabOrder = 0 23 23 object TabSheetGeneral: TTabSheet … … 398 398 end> 399 399 OwnerData = True 400 PopupMenu = PopupMenu1 400 401 ReadOnly = True 401 402 RowSelect = True … … 403 404 ViewStyle = vsReport 404 405 OnData = ListView1Data 406 OnDblClick = AEditFieldExecute 405 407 end 406 408 end … … 426 428 TabOrder = 2 427 429 end 430 object ActionList1: TActionList 431 Images = Core.ImageList1 432 left = 317 433 top = 157 434 object AEditField: TAction 435 Caption = 'Edit' 436 OnExecute = AEditFieldExecute 437 end 438 end 439 object PopupMenu1: TPopupMenu 440 Images = Core.ImageList1 441 left = 172 442 top = 159 443 object MenuItem1: TMenuItem 444 Action = AEditField 445 end 446 end 428 447 end -
trunk/Forms/UFormContact.pas
r9 r15 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 ComCtrls, UContact;9 ComCtrls, ActnList, Menus, UContact; 10 10 11 11 type … … 14 14 15 15 TFormContact = class(TForm) 16 AEditField: TAction; 17 ActionList1: TActionList; 16 18 ButtonCancel: TButton; 17 19 ButtonOk: TButton; … … 63 65 ListView1: TListView; 64 66 MemoNotes: TMemo; 67 MenuItem1: TMenuItem; 65 68 PageControlContact: TPageControl; 69 PopupMenu1: TPopupMenu; 66 70 TabSheetGeneral: TTabSheet; 67 71 TabSheetDetails: TTabSheet; 68 72 TabSheetAll: TTabSheet; 73 procedure AEditFieldExecute(Sender: TObject); 69 74 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 70 75 procedure FormCreate(Sender: TObject); … … 89 94 uses 90 95 UCore; 96 97 resourcestring 98 SFieldEdit = 'Field edit'; 99 SEditFieldValue = 'Edit field value'; 91 100 92 101 { TFormContact } … … 126 135 end; 127 136 137 procedure TFormContact.AEditFieldExecute(Sender: TObject); 138 begin 139 if Assigned(ListView1.Selected) then begin 140 Contact.Fields[TContactFieldIndex(ListView1.Selected.Index)] := 141 InputBox(SFieldEdit, SEditFieldValue, Contact.Fields[TContactFieldIndex(ListView1.Selected.Index)]); 142 end; 143 end; 144 128 145 procedure TFormContact.FormCreate(Sender: TObject); 129 146 begin 130 147 Core.CoolTranslator1.TranslateComponentRecursive(Self); 148 Core.ThemeManager1.UseTheme(Self); 131 149 Contact := nil; 132 150 end; -
trunk/Forms/UFormContacts.pas
r14 r15 101 101 begin 102 102 Core.PersistentForm1.Load(Self); 103 Core.ThemeManager1.UseTheme(Self); 103 104 ReloadList; 104 105 UpdateInterface; -
trunk/Forms/UFormMain.lfm
r14 r15 5 5 Width = 785 6 6 Caption = 'vCard Studio' 7 ClientHeight = 4977 ClientHeight = 506 8 8 ClientWidth = 785 9 DesignTimePPI = 120 9 10 Menu = MainMenu1 10 11 OnClose = FormClose … … 12 13 OnCreate = FormCreate 13 14 OnShow = FormShow 14 LCLVersion = '1.8.0. 4'15 LCLVersion = '1.8.0.6' 15 16 object CoolBar1: TCoolBar 16 17 Left = 0 17 Height = 3 218 Height = 38 18 19 Top = 0 19 20 Width = 785 … … 35 36 AnchorSideTop.Control = CoolBar1 36 37 Left = 24 37 Height = 2 838 Height = 22 38 39 Top = 5 39 Width = 1 3240 Width = 105 40 41 Align = alNone 41 42 AutoSize = True … … 55 56 end 56 57 object ToolButton2: TToolButton 57 Left = 3058 Left = 24 58 59 Top = 0 59 60 Action = Core.AFileOpen … … 62 63 end 63 64 object ToolButton3: TToolButton 64 Left = 7465 Left = 59 65 66 Top = 0 66 67 Action = Core.AFileSave 67 68 end 68 69 object ToolButton4: TToolButton 69 Left = 10370 Left = 82 70 71 Top = 0 71 72 Action = Core.AFileClose … … 76 77 AnchorSideTop.Control = CoolBar1 77 78 Left = 188 78 Height = 2 879 Height = 22 79 80 Top = 5 80 Width = 3081 Width = 24 81 82 Align = alNone 82 83 AutoSize = True … … 99 100 object StatusBar1: TStatusBar 100 101 Left = 0 101 Height = 30102 Top = 4 67102 Height = 28 103 Top = 478 103 104 Width = 785 104 105 Panels = < -
trunk/Forms/UFormMain.pas
r14 r15 93 93 begin 94 94 Core.Initialize; 95 Core.ThemeManager1.UseTheme(Self); 95 96 Core.PersistentForm1.Load(Self); 96 97 FormContacts.ManualDock(Self, nil, alClient); -
trunk/Forms/UFormSettings.lfm
r1 r15 63 63 end 64 64 object SpinEditDPI: TSpinEdit 65 Left = 1 5265 Left = 160 66 66 Height = 28 67 67 Top = 144 … … 97 97 Anchors = [akLeft, akRight, akBottom] 98 98 end 99 object Label2: TLabel 100 Left = 20 101 Height = 20 102 Top = 184 103 Width = 48 104 Caption = 'Theme:' 105 ParentColor = False 106 end 107 object ComboBoxTheme: TComboBox 108 Left = 160 109 Height = 28 110 Top = 184 111 Width = 260 112 ItemHeight = 20 113 Style = csDropDownList 114 TabOrder = 6 115 end 99 116 end -
trunk/Forms/UFormSettings.pas
r1 r15 20 20 CheckBoxAutomaticDPI: TCheckBox; 21 21 ComboBoxLanguage: TComboBox; 22 ComboBoxTheme: TComboBox; 22 23 Label1: TLabel; 24 Label2: TLabel; 23 25 LabelDPI: TLabel; 24 26 SpinEditDPI: TSpinEdit; … … 39 41 FormSettings: TFormSettings; 40 42 43 41 44 implementation 42 45 … … 44 47 45 48 uses 46 UCore ;49 UCore, UTheme; 47 50 48 51 { TFormSettings } … … 53 56 ComboBoxLanguage.ItemIndex := ComboBoxLanguage.Items.IndexOfObject(Core.CoolTranslator1.Language); 54 57 if ComboBoxLanguage.ItemIndex = -1 then ComboBoxLanguage.ItemIndex := 0; 58 59 Core.ThemeManager1.Themes.LoadToStrings(ComboBoxTheme.Items); 60 ComboBoxTheme.ItemIndex := ComboBoxTheme.Items.IndexOfObject(Core.ThemeManager1.Theme); 61 if ComboBoxTheme.ItemIndex = -1 then ComboBoxTheme.ItemIndex := 0; 55 62 end; 56 63 … … 58 65 begin 59 66 if ComboBoxLanguage.ItemIndex <> -1 then 60 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxLanguage.ItemIndex]); 67 Core.CoolTranslator1.Language := TLanguage(ComboBoxLanguage.Items.Objects[ComboBoxTheme.ItemIndex]); 68 if ComboBoxTheme.ItemIndex <> -1 then 69 Core.ThemeManager1.Theme := TTheme(ComboBoxTheme.Items.Objects[ComboBoxTheme.ItemIndex]); 61 70 end; 62 71 … … 74 83 begin 75 84 Core.CoolTranslator1.TranslateComponentRecursive(Self); 85 Core.ThemeManager1.UseTheme(Self); 76 86 end; 77 87
Note:
See TracChangeset
for help on using the changeset viewer.