Changeset 58 for trunk/Forms
- Timestamp:
- Sep 25, 2014, 3:24:18 PM (10 years ago)
- Location:
- trunk/Forms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r46 r58 1 1 object FormMain: TFormMain 2 Left = 5032 Left = 102 3 3 Height = 621 4 Top = 2634 Top = 0 5 5 Width = 775 6 6 Caption = 'xTactics' 7 ClientHeight = 5927 ClientHeight = 600 8 8 ClientWidth = 775 9 9 Menu = MainMenu1 … … 13 13 OnDestroy = FormDestroy 14 14 OnShow = FormShow 15 LCLVersion = '1. 3'15 LCLVersion = '1.0.10.0' 16 16 WindowState = wsMaximized 17 17 object PaintBox1: TPaintBox 18 18 Left = 0 19 Height = 5 3119 Height = 547 20 20 Top = 32 21 21 Width = 775 … … 32 32 object StatusBar1: TStatusBar 33 33 Left = 0 34 Height = 2 935 Top = 5 6334 Height = 21 35 Top = 579 36 36 Width = 775 37 37 Panels = < … … 83 83 Action = Core.ASettings 84 84 end 85 object ToolButton6: TToolButton 86 Left = 171 87 Top = 2 88 Action = AZoomIn 89 end 90 object ToolButton7: TToolButton 91 Left = 203 92 Top = 2 93 Action = AZoomOut 94 end 95 object ToolButton8: TToolButton 96 Left = 235 97 Top = 2 98 Action = AZoomAll 99 end 100 object ToolButton9: TToolButton 101 Left = 161 102 Top = 2 103 Width = 10 104 Caption = 'ToolButton9' 105 Style = tbsSeparator 106 end 85 107 end 86 108 object MainMenu1: TMainMenu … … 129 151 Caption = '-' 130 152 end 153 object MenuItem21: TMenuItem 154 Action = AToolBarVisible 155 end 131 156 object MenuItem20: TMenuItem 132 157 Action = AToolBarBigIcons 158 end 159 object MenuItem22: TMenuItem 160 Action = AStatusBarVisible 133 161 end 134 162 end … … 158 186 object AZoomIn: TAction 159 187 Caption = 'Zoom in' 188 ImageIndex = 8 160 189 OnExecute = AZoomInExecute 161 190 ShortCut = 16491 … … 163 192 object AZoomOut: TAction 164 193 Caption = 'Zoom out' 194 ImageIndex = 9 165 195 OnExecute = AZoomOutExecute 166 196 ShortCut = 16493 … … 168 198 object AZoomAll: TAction 169 199 Caption = 'Zoom all' 200 ImageIndex = 7 170 201 OnExecute = AZoomAllExecute 171 202 ShortCut = 16449 … … 174 205 Caption = 'Toolbar big icons' 175 206 OnExecute = AToolBarBigIconsExecute 207 end 208 object AToolBarVisible: TAction 209 Caption = 'Toolbar visible' 210 OnExecute = AToolBarVisibleExecute 211 end 212 object AStatusBarVisible: TAction 213 Caption = 'Statusbar visible' 214 OnExecute = AStatusBarVisibleExecute 176 215 end 177 216 end -
trunk/Forms/UFormMain.lrt
r46 r58 1 1 TFORMMAIN.CAPTION=xTactics 2 TFORMMAIN.TOOLBUTTON9.CAPTION=ToolButton9 2 3 TFORMMAIN.MENUITEM1.CAPTION=Game 3 4 TFORMMAIN.MENUITEM5.CAPTION=- … … 10 11 TFORMMAIN.AZOOMALL.CAPTION=Zoom all 11 12 TFORMMAIN.ATOOLBARBIGICONS.CAPTION=Toolbar big icons 13 TFORMMAIN.ATOOLBARVISIBLE.CAPTION=Toolbar visible 14 TFORMMAIN.ASTATUSBARVISIBLE.CAPTION=Statusbar visible -
trunk/Forms/UFormMain.pas
r52 r58 17 17 18 18 TFormMain = class(TForm) 19 AStatusBarVisible: TAction; 20 AToolBarVisible: TAction; 19 21 AToolBarBigIcons: TAction; 20 22 AZoomIn: TAction; … … 36 38 MenuItem2: TMenuItem; 37 39 MenuItem20: TMenuItem; 40 MenuItem21: TMenuItem; 41 MenuItem22: TMenuItem; 38 42 MenuItem3: TMenuItem; 39 43 MenuItem4: TMenuItem; … … 53 57 ToolButton4: TToolButton; 54 58 ToolButton5: TToolButton; 59 ToolButton6: TToolButton; 60 ToolButton7: TToolButton; 61 ToolButton8: TToolButton; 62 ToolButton9: TToolButton; 63 procedure AStatusBarVisibleExecute(Sender: TObject); 55 64 procedure AToolBarBigIconsExecute(Sender: TObject); 65 procedure AToolBarVisibleExecute(Sender: TObject); 56 66 procedure AZoomAllExecute(Sender: TObject); 57 67 procedure AZoomInExecute(Sender: TObject); … … 149 159 with Config do begin 150 160 AToolBarBigIcons.Checked := GetValue(Path + '/LargeIcons', False); 161 AToolBarVisible.Checked := GetValue(Path + '/ToolBarVisible', True); 162 AStatusBarVisible.Checked := GetValue(Path + '/StatusBarVisible', True); 151 163 end; 152 164 end; … … 156 168 with Config do begin 157 169 SetValue(Path + '/LargeIcons', AToolBarBigIcons.Checked); 170 SetValue(Path + '/ToolBarVisible', AToolBarVisible.Checked); 171 SetValue(Path + '/StatusBarVisible', AStatusBarVisible.Checked); 158 172 end; 159 173 end; … … 172 186 ToolBar1.Images := Core.ImageListSmall; 173 187 end; 188 ToolBar1.Visible := AToolBarVisible.Checked; 189 StatusBar1.Visible := AStatusBarVisible.Checked; 174 190 end; 175 191 … … 209 225 begin 210 226 AToolBarBigIcons.Checked := not AToolBarBigIcons.Checked; 227 ReloadView; 228 end; 229 230 procedure TFormMain.AStatusBarVisibleExecute(Sender: TObject); 231 begin 232 AStatusBarVisible.Checked := not AStatusBarVisible.Checked; 233 ReloadView; 234 end; 235 236 procedure TFormMain.AToolBarVisibleExecute(Sender: TObject); 237 begin 238 AToolBarVisible.Checked := not AToolBarVisible.Checked; 211 239 ReloadView; 212 240 end;
Note:
See TracChangeset
for help on using the changeset viewer.