Changeset 145 for trunk/Forms


Ignore:
Timestamp:
Nov 12, 2017, 1:47:20 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Do not create settings form on application start but just if form is opened.
  • Fixed: Removed various compilation warnings.
Location:
trunk/Forms
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormCharts.lfm

    r128 r145  
    99  OnClose = FormClose
    1010  OnShow = FormShow
    11   LCLVersion = '1.6.4.0'
     11  LCLVersion = '1.8.0.4'
    1212  object Chart1: TChart
    1313    Left = 8
     
    3535  object ComboBox1: TComboBox
    3636    Left = 24
    37     Height = 34
     37    Height = 36
    3838    Top = 8
    3939    Width = 392
  • trunk/Forms/UFormCharts.pas

    r130 r145  
    77uses
    88  Classes, SysUtils, FileUtil, TAGraph, TASeries, Forms, Controls, Graphics,
    9   Dialogs, StdCtrls, LMessages;
     9  Dialogs, StdCtrls;
    1010
    1111type
  • trunk/Forms/UFormMain.lfm

    r132 r145  
    55  Width = 775
    66  Caption = 'xTactics'
    7   ClientHeight = 596
     7  ClientHeight = 587
    88  ClientWidth = 775
    99  Menu = MainMenu1
     
    1313  OnKeyUp = FormKeyUp
    1414  OnShow = FormShow
    15   LCLVersion = '1.6.2.0'
     15  LCLVersion = '1.8.0.4'
    1616  WindowState = wsMaximized
    1717  object StatusBar1: TStatusBar
    1818    Left = 0
    19     Height = 28
    20     Top = 568
     19    Height = 30
     20    Top = 557
    2121    Width = 775
    2222    Panels = <   
     
    3434  object ToolBar1: TToolBar
    3535    Left = 0
    36     Height = 568
     36    Height = 557
    3737    Top = 0
    3838    Width = 80
     
    7272    object ToolButton6: TToolButton
    7373      Left = 1
    74       Top = 194
     74      Top = 170
    7575      Action = AZoomIn
    7676    end
    7777    object ToolButton7: TToolButton
    7878      Left = 1
    79       Top = 226
     79      Top = 202
    8080      Action = AZoomOut
    8181    end
    8282    object ToolButton8: TToolButton
    8383      Left = 1
    84       Top = 258
     84      Top = 234
    8585      Action = AZoomAll
    8686    end
    8787    object ToolButton9: TToolButton
    8888      Left = 1
    89       Height = 32
    9089      Top = 162
    9190      Width = 32
     
    9493    object ToolButton10: TToolButton
    9594      Left = 1
    96       Height = 32
    97       Top = 290
     95      Top = 266
    9896      Width = 32
    9997      Style = tbsSeparator
     
    10199    object ToolButton11: TToolButton
    102100      Left = 1
    103       Top = 322
     101      Top = 274
    104102      Action = Core.AGameLoad
    105103    end
    106104    object ToolButton12: TToolButton
    107105      Left = 1
    108       Top = 354
     106      Top = 306
    109107      Action = Core.AGameSave
    110108    end
    111109    object ToolButton13: TToolButton
    112110      Left = 1
    113       Top = 386
     111      Top = 338
    114112      Action = Core.AExit
    115113    end
     
    117115  object PaintBox1: TPaintBox
    118116    Left = 80
    119     Height = 568
     117    Height = 557
    120118    Top = 0
    121119    Width = 695
  • trunk/Forms/UFormMain.pas

    r133 r145  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
    9   UGame, LCLType, Menus, ActnList, ComCtrls, types, dateutils, XMLConf;
     9  UGame, LCLType, Menus, ActnList, ComCtrls, types, dateutils, XMLConf, DOM;
    1010
    1111const
     
    193193begin
    194194  with Config do begin
    195     AToolBarBigIcons.Checked := GetValue(Path + '/LargeIcons', False);
    196     AToolBarVisible.Checked := GetValue(Path + '/ToolBarVisible', True);
    197     AStatusBarVisible.Checked := GetValue(Path + '/StatusBarVisible', False);
     195    AToolBarBigIcons.Checked := GetValue(DOMString(Path + '/LargeIcons'), False);
     196    AToolBarVisible.Checked := GetValue(DOMString(Path + '/ToolBarVisible'), True);
     197    AStatusBarVisible.Checked := GetValue(DOMString(Path + '/StatusBarVisible'), False);
    198198  end;
    199199end;
     
    202202begin
    203203  with Config do begin
    204     SetValue(Path + '/LargeIcons', AToolBarBigIcons.Checked);
    205     SetValue(Path + '/ToolBarVisible', AToolBarVisible.Checked);
    206     SetValue(Path + '/StatusBarVisible', AStatusBarVisible.Checked);
     204    SetValue(DOMString(Path + '/LargeIcons'), AToolBarBigIcons.Checked);
     205    SetValue(DOMString(Path + '/ToolBarVisible'), AToolBarVisible.Checked);
     206    SetValue(DOMString(Path + '/StatusBarVisible'), AStatusBarVisible.Checked);
    207207  end;
    208208end;
     
    289289
    290290procedure TFormMain.AZoomOutExecute(Sender: TObject);
    291 var
    292   D: TPoint;
     291//var
     292//  D: TPoint;
    293293begin
    294294  with Core.CurrentClient do begin
  • trunk/Forms/UFormSettings.lfm

    r107 r145  
    1313  OnShow = FormShow
    1414  Position = poMainFormCenter
    15   LCLVersion = '1.4.4.0'
     15  LCLVersion = '1.8.0.4'
    1616  object ButtonOk: TButton
    1717    Left = 444
     
    4747    object TabSheetGeneral: TTabSheet
    4848      Caption = 'General'
    49       ClientHeight = 226
    50       ClientWidth = 538
     49      ClientHeight = 220
     50      ClientWidth = 540
    5151      object Label2: TLabel
    5252        Left = 27
    53         Height = 25
     53        Height = 26
    5454        Top = 78
    55         Width = 139
     55        Width = 150
    5656        Caption = 'Animation speed:'
    5757        ParentColor = False
     
    5959      object SpinEditAnimSpeed: TSpinEdit
    6060        Left = 232
    61         Height = 33
     61        Height = 36
    6262        Top = 72
    6363        Width = 122
     
    6666      object Label3: TLabel
    6767        Left = 368
    68         Height = 25
     68        Height = 26
    6969        Top = 82
    7070        Width = 15
     
    7272        ParentColor = False
    7373      end
    74       object CheckBox1: TCheckBox
     74      object CheckBoxAutoSaveTurn: TCheckBox
    7575        Left = 8
    7676        Height = 27
    7777        Top = 112
    78         Width = 584
     78        Width = 586
    7979        Anchors = [akTop, akLeft, akRight]
    8080        AutoSize = False
     
    8484      object Label1: TLabel
    8585        Left = 20
    86         Height = 25
     86        Height = 26
    8787        Top = 26
    88         Width = 81
     88        Width = 88
    8989        Caption = 'Language:'
    9090        ParentColor = False
     
    9292      object ComboBoxLanguage: TComboBox
    9393        Left = 178
    94         Height = 33
     94        Height = 40
    9595        Top = 24
    9696        Width = 196
    97         ItemHeight = 25
     97        ItemHeight = 0
    9898        Style = csDropDownList
    9999        TabOrder = 2
     
    102102    object TabSheetDebug: TTabSheet
    103103      Caption = 'Debug'
    104       ClientHeight = 226
    105       ClientWidth = 538
     104      ClientHeight = 220
     105      ClientWidth = 540
    106106      object CheckBoxDevelMode: TCheckBox
    107107        Left = 16
  • trunk/Forms/UFormSettings.pas

    r104 r145  
    1616    ButtonOk: TButton;
    1717    ButtonCancel: TButton;
    18     CheckBox1: TCheckBox;
     18    CheckBoxAutoSaveTurn: TCheckBox;
    1919    CheckBox2: TCheckBox;
    2020    CheckBoxDevelMode: TCheckBox;
     
    6262begin
    6363  PageControl1.TabIndex := 0;
     64  Core.CoolTranslator1.TranslateComponentRecursive(Self);
    6465end;
    6566
     
    8384  SpinEditX.Value := Core.ScaleDPI1.DPI.X;
    8485  SpinEditY.Value := Core.ScaleDPI1.DPI.Y;
     86  CheckBoxAutoSaveTurn.Checked := Core.AutoSaveEnabled;
    8587end;
    8688
     
    9395  Core.ScaleDPI1.AutoDetect := CheckBox2.Checked;
    9496  Core.ScaleDPI1.DPI := Point(SpinEditX.Value, SpinEditY.Value);
     97  Core.AutoSaveEnabled := CheckBoxAutoSaveTurn.Checked;
    9598end;
    9699
Note: See TracChangeset for help on using the changeset viewer.