Ignore:
Timestamp:
Jul 28, 2009, 1:39:09 PM (15 years ago)
Author:
george
Message:
  • Modified: CodeEdit window is now dockable rather than MDI child.
  • Modified: Main menu changed to ActionMainMenuBar with XP style.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UMainForm.pas

    r1 r2  
    66  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
    77  Dialogs, Menus, ExtCtrls, StdCtrls, ComCtrls, DockPanel, URegistry,
    8   UApplicationInfo, UDockManagement, ActnList, XPStyleActnCtrls, ActnMan;
     8  UApplicationInfo, UDockManagement, ActnList, XPStyleActnCtrls, ActnMan,
     9  UProject, XPMan, ImgList, DockManagerPro, StdStyleActnCtrls, ToolWin,
     10  ActnCtrls, ActnMenus;
    911
    1012type
    1113  TMainForm = class(TForm)
    12     MainMenu1: TMainMenu;
    13     File1: TMenuItem;
    14     Edit1: TMenuItem;
    15     Search1: TMenuItem;
    16     view1: TMenuItem;
    17     Project1: TMenuItem;
    18     Run1: TMenuItem;
    19     Component1: TMenuItem;
    20     ools1: TMenuItem;
    21     Windows1: TMenuItem;
    22     Help1: TMenuItem;
    23     New1: TMenuItem;
    24     Open1: TMenuItem;
    25     Openproject1: TMenuItem;
    26     Reopen1: TMenuItem;
    27     N1: TMenuItem;
    28     Save1: TMenuItem;
    29     Saveas1: TMenuItem;
    30     Saveproject1: TMenuItem;
    31     SaveAll1: TMenuItem;
    32     Close1: TMenuItem;
    33     CloseAll1: TMenuItem;
    34     N2: TMenuItem;
    35     Exit1: TMenuItem;
    36     Undo1: TMenuItem;
    37     Redo1: TMenuItem;
    38     N3: TMenuItem;
    39     Copy1: TMenuItem;
    40     Cut1: TMenuItem;
    41     Paste1: TMenuItem;
    42     Delete1: TMenuItem;
    43     DeleteAll1: TMenuItem;
    44     Find1: TMenuItem;
    45     ProjectManager1: TMenuItem;
    46     oolPalete1: TMenuItem;
    47     ObjectInspector1: TMenuItem;
    48     Structure1: TMenuItem;
    4914    DockPanel1: TDockPanel;
    5015    DockPanel2: TDockPanel;
     
    5217    ActionManager1: TActionManager;
    5318    ActionExit: TAction;
     19    ActionProjectOpen: TAction;
     20    ActionProjectSaveAs: TAction;
     21    ActionFileOpen: TAction;
     22    ActionFileSave: TAction;
     23    ActionFileClose: TAction;
     24    ActionFileCloseAll: TAction;
     25    ActionUnitTest: TAction;
     26    ActionPrint: TAction;
     27    ActionFileSaveAs: TAction;
     28    ImageList1: TImageList;
     29    ActionMainMenuBar1: TActionMainMenuBar;
     30    ActionFile: TAction;
     31    ActionFileNew: TAction;
     32    ActionFileReopen: TAction;
     33    ActionFileSaveAll: TAction;
     34    ActionEdit: TAction;
     35    OpenDialog1: TOpenDialog;
     36    SaveDialog1: TSaveDialog;
     37    FindDialog1: TFindDialog;
     38    ReplaceDialog1: TReplaceDialog;
     39    ActionEditUndo: TAction;
     40    ActionEditRedo: TAction;
     41    ActionEditCut: TAction;
     42    ActionEditCopy: TAction;
     43    ActionEditPaste: TAction;
     44    ActionEditDelete: TAction;
     45    ActionEditSelectAll: TAction;
     46    ActionEditAlignToGrid: TAction;
     47    ActionEditBringToFront: TAction;
     48    ActionEditSendToBack: TAction;
     49    ActionEditAlign: TAction;
     50    ActionEditSize: TAction;
     51    ActionEditScale: TAction;
     52    ActionEditTabOrder: TAction;
     53    ActionEditCreationOrder: TAction;
     54    ActionEditFlipChildren: TAction;
     55    ActionEditLockControls: TAction;
     56    ActionSearch: TAction;
     57    ActionView: TAction;
     58    ActionProject: TAction;
     59    ActionRun: TAction;
     60    ActionComponent: TAction;
     61    ActionTools: TAction;
     62    ActionWindow: TAction;
     63    ActionHelp: TAction;
    5464    procedure FormShow(Sender: TObject);
    5565    procedure ObjectInspector1Click(Sender: TObject);
     
    6171    procedure FormDestroy(Sender: TObject);
    6272    procedure ActionExitExecute(Sender: TObject);
     73    procedure ActionFileUpdate(Sender: TObject);
     74    procedure ActionEditExecute(Sender: TObject);
     75    procedure ActionProjectOpenExecute(Sender: TObject);
     76    procedure ActionFileOpenExecute(Sender: TObject);
     77    procedure ActionProjectSaveAsExecute(Sender: TObject);
    6378  private
    6479    CustomDockManager: TDDockManager;
     
    8398{$R *.dfm}
    8499
     100procedure TMainForm.ActionEditExecute(Sender: TObject);
     101begin
     102  //
     103end;
     104
    85105procedure TMainForm.ActionExitExecute(Sender: TObject);
    86106begin
    87107  Close;
     108end;
     109
     110procedure TMainForm.ActionFileOpenExecute(Sender: TObject);
     111begin
     112  if OpenDialog1.Execute then begin
     113  end;
     114end;
     115
     116procedure TMainForm.ActionFileUpdate(Sender: TObject);
     117begin
     118  //
     119end;
     120
     121procedure TMainForm.ActionProjectOpenExecute(Sender: TObject);
     122begin
     123  if OpenDialog1.Execute then begin
     124  end;
     125end;
     126
     127procedure TMainForm.ActionProjectSaveAsExecute(Sender: TObject);
     128begin
     129  if SaveDialog1.Execute then begin
     130  end;
    88131end;
    89132
     
    125168    RegisterDockForm(ObjectInspector, 100, 400, 'PanelRight', True);
    126169    RegisterDockForm(StructureView, 100, 400, 'PanelRight', True);
     170    RegisterDockForm(CodeEdit, 500, 400, 'PanelCenter', True);
    127171    with BaseDockPanel do begin
    128172      PanelLeft.Tag := 300;
     
    136180  LoadFormPosition(Self);
    137181  CodeEdit.Show;
     182  ActionManager1.Style := XPStyle;
    138183end;
    139184
Note: See TracChangeset for help on using the changeset viewer.