Ignore:
Timestamp:
Jan 25, 2015, 9:41:26 PM (10 years ago)
Author:
chronos
Message:
  • Added: Preferences dialog window.
  • Modified: Currently selected database is set in TCore class in field Database.
  • Added: Application remembers name of previous opened database and reopen it during startup.
  • Modified: FormDatabases is now used as modal form.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r7 r9  
    3030  public
    3131    procedure DockInit;
     32    procedure UpdateInterface;
    3233  end;
    3334
     
    4041
    4142uses
    42   UFormDatabases, UCore;
     43  UFormDatabases, UCore, UFormTables;
    4344
    4445{ TFormMain }
     
    6162procedure TFormMain.DockInit;
    6263begin
    63   FormDatabases.ManualDock(FormMain, nil, alClient);
    64   FormDatabases.Align := alClient;
    65   FormDatabases.Show;
     64  FormTables.ManualDock(FormMain, nil, alClient);
     65  FormTables.Align := alClient;
     66  FormTables.Show;
     67end;
     68
     69procedure TFormMain.UpdateInterface;
     70var
     71  NewCaption: string;
     72begin
     73  NewCaption := Application.Title;
     74  if Assigned(Core.Database) then NewCaption := NewCaption + ' - ' + Core.Database.Name;
     75  FormMain.Caption := NewCaption;
    6676end;
    6777
Note: See TracChangeset for help on using the changeset viewer.