Ignore:
Timestamp:
Sep 1, 2014, 7:10:03 PM (10 years ago)
Author:
chronos
Message:
  • Added: Concept of project and open project as directory.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r3 r4  
    1414
    1515  TFormMain = class(TForm)
    16     AViewFavorites: TAction;
    17     AHelp: TAction;
    18     ASettings: TAction;
    19     AAbout: TAction;
    20     AQuit: TAction;
    21     ActionList1: TActionList;
    22     ImageList1: TImageList;
    2316    MainMenu1: TMainMenu;
    2417    MenuItem1: TMenuItem;
     18    MenuItem10: TMenuItem;
    2519    MenuItem2: TMenuItem;
    2620    MenuItem3: TMenuItem;
     
    2923    MenuItem6: TMenuItem;
    3024    MenuItem7: TMenuItem;
     25    MenuItem8: TMenuItem;
     26    MenuItem9: TMenuItem;
    3127    MenuItemQuit: TMenuItem;
    3228    MenuItemFile: TMenuItem;
    3329    StatusBar1: TStatusBar;
    3430    ToolBarMain: TToolBar;
    35     procedure AQuitExecute(Sender: TObject);
    3631  private
    3732    { private declarations }
    3833  public
    39     { public declarations }
     34    procedure UpdateInterface;
    4035  end;
    4136
     
    4742{$R *.lfm}
    4843
     44uses
     45  UCore;
     46
    4947{ TFormMain }
    5048
    51 procedure TFormMain.AQuitExecute(Sender: TObject);
     49procedure TFormMain.UpdateInterface;
     50const
     51  AppName = 'VCSCommander';
    5252begin
    53   Close;
     53  if Assigned(Core.Project) then
     54    Caption := Core.Project.Directory + ' - ' + AppName
     55    else Caption := AppName
    5456end;
    5557
Note: See TracChangeset for help on using the changeset viewer.