Ignore:
Timestamp:
May 17, 2019, 12:02:45 AM (6 years ago)
Author:
chronos
Message:
  • Added: Interface language selection in Settings dialog.
Location:
branches/generator/Forms
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/Forms

    • Property svn:ignore
      •  

        old new  
        1 *.lrj
        21*.lrt
  • branches/generator/Forms/UFormMain.lfm

    r190 r191  
    3232      Height = 33
    3333      Top = 5
    34       Width = 239
     34      Width = 237
    3535      Align = alNone
    3636      AutoSize = True
     
    4646      Transparent = True
    4747      object ToolButton2: TToolButton
    48         Left = 169
     48        Left = 167
    4949        Top = 0
    5050        Action = ABuildCompiler
     
    7979      end
    8080      object ToolButton7: TToolButton
    81         Left = 204
     81        Left = 202
    8282        Top = 0
    8383        Action = ALookupTables
     
    184184      end
    185185    end
     186    object MenuItem14: TMenuItem
     187      Caption = 'Tools'
     188      object MenuItem15: TMenuItem
     189        Action = ASettings
     190      end
     191    end
    186192  end
    187193  object ActionList1: TActionList
     
    232238    end
    233239    object AGrammerSettings: TAction
    234       Caption = 'Settings'
     240      Caption = 'Grammer settings'
    235241      ImageIndex = 3
    236242      OnExecute = AGrammerSettingsExecute
     
    250256      ImageIndex = 8
    251257      OnExecute = ALookupTablesExecute
     258    end
     259    object ASettings: TAction
     260      Caption = 'Settings'
     261      OnExecute = ASettingsExecute
    252262    end
    253263  end
  • branches/generator/Forms/UFormMain.lrj

    r190 r191  
    88{"hash":243811202,"name":"tformmain.menuitem8.caption","sourcebytes":[71,114,97,109,109,101,114],"value":"Grammer"},
    99{"hash":380871,"name":"tformmain.menuitem1.caption","sourcebytes":[86,105,101,119],"value":"View"},
     10{"hash":5989939,"name":"tformmain.menuitem14.caption","sourcebytes":[84,111,111,108,115],"value":"Tools"},
    1011{"hash":5882563,"name":"tformmain.arules.caption","sourcebytes":[82,117,108,101,115],"value":"Rules"},
    1112{"hash":5882563,"name":"tformmain.arules.hint","sourcebytes":[82,117,108,101,115],"value":"Rules"},
     
    2021{"hash":21703,"name":"tformmain.aprojectnew.caption","sourcebytes":[78,101,119],"value":"New"},
    2122{"hash":4863637,"name":"tformmain.aprojectclose.caption","sourcebytes":[67,108,111,115,101],"value":"Close"},
    22 {"hash":213582195,"name":"tformmain.agrammersettings.caption","sourcebytes":[83,101,116,116,105,110,103,115],"value":"Settings"},
     23{"hash":142765043,"name":"tformmain.agrammersettings.caption","sourcebytes":[71,114,97,109,109,101,114,32,115,101,116,116,105,110,103,115],"value":"Grammer settings"},
    2324{"hash":172269778,"name":"tformmain.abuildcompiler.caption","sourcebytes":[66,117,105,108,100,32,99,111,109,112,105,108,101,114],"value":"Build compiler"},
    2425{"hash":191244498,"name":"tformmain.atoolbarvisible.caption","sourcebytes":[84,111,111,108,98,97,114],"value":"Toolbar"},
    25 {"hash":79806131,"name":"tformmain.alookuptables.caption","sourcebytes":[76,111,111,107,117,112,32,116,97,98,108,101,115],"value":"Lookup tables"}
     26{"hash":79806131,"name":"tformmain.alookuptables.caption","sourcebytes":[76,111,111,107,117,112,32,116,97,98,108,101,115],"value":"Lookup tables"},
     27{"hash":213582195,"name":"tformmain.asettings.caption","sourcebytes":[83,101,116,116,105,110,103,115],"value":"Settings"}
    2628]}
  • branches/generator/Forms/UFormMain.pas

    r167 r191  
    1616  TFormMain = class(TForm)
    1717    ABuildCompiler: TAction;
     18    ASettings: TAction;
    1819    ALookupTables: TAction;
    1920    AToolbarVisible: TAction;
     
    3839    MenuItem12: TMenuItem;
    3940    MenuItem13: TMenuItem;
     41    MenuItem14: TMenuItem;
     42    MenuItem15: TMenuItem;
    4043    MenuItem2: TMenuItem;
    4144    MenuItem3: TMenuItem;
     
    6568    procedure ABuildCompilerExecute(Sender: TObject);
    6669    procedure ALookupTablesExecute(Sender: TObject);
     70    procedure ASettingsExecute(Sender: TObject);
    6771    procedure AToolbarVisibleExecute(Sender: TObject);
    6872    procedure AExitExecute(Sender: TObject);
     
    100104
    101105uses
    102   UFormRules, UCore, UFormGrammer, UBuilder, UFormLookupTables;
     106  UFormRules, UCore, UFormGrammer, UBuilder, UFormLookupTables, UFormSettings;
    103107
    104108resourcestring
     
    322326end;
    323327
     328procedure TFormMain.ASettingsExecute(Sender: TObject);
     329begin
     330  FormSettings := TFormSettings.Create(nil);
     331  FormSettings.Load;
     332  if FormSettings.ShowModal = mrOk then begin
     333    FormSettings.Save;
     334  end;
     335  FreeAndNil(FormSettings);
     336end;
     337
    324338procedure TFormMain.AToolbarVisibleExecute(Sender: TObject);
    325339begin
Note: See TracChangeset for help on using the changeset viewer.