Ignore:
Timestamp:
Nov 29, 2017, 3:45:03 PM (7 years ago)
Author:
chronos
Message:
  • Added: New rule item option to match any character except given one.
  • Added: Show file name in main window title.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/Forms/UFormMain.pas

    r119 r123  
    5252  private
    5353    procedure ReloadMemo;
     54    procedure UpdateInterface;
    5455  public
    5556    { public declarations }
     
    8586  if SaveDialog1.Execute then begin
    8687    Core.Grammer.SaveToXmlFile(SaveDialog1.FileName);
     88    UpdateInterface;
    8789  end;
    8890end;
     
    9193begin
    9294  Core.Grammer.SaveToXmlFile(Core.Grammer.FileName);
     95  UpdateInterface;
    9396end;
    9497
     
    102105  Core.PersistentForm1.Load(Self, True);
    103106  ReloadMemo;
     107  UpdateInterface;
    104108end;
    105109
     
    107111begin
    108112  MemoBNF.Lines.Text := Core.Grammer.GetString;
     113end;
     114
     115procedure TFormMain.UpdateInterface;
     116begin
     117  Caption := Core.Grammer.FileName + ' - ' + Application.Title;
    109118end;
    110119
     
    118127  Core.Grammer.Rules.Clear;
    119128  ReloadMemo;
     129  UpdateInterface;
    120130end;
    121131
     
    131141    Core.Grammer.LoadFromXmlFile(OpenDialog1.FileName);
    132142    ReloadMemo;
     143    UpdateInterface;
    133144  end;
    134145end;
Note: See TracChangeset for help on using the changeset viewer.