3 // Copyright 1997-2007 by Christopher J. Madsen
4 // (C) 2019 James Hammons
6 // GUEmap is licensed under either version 2 of the GPL, or (at your option)
7 // any later version. See LICENSE file for details.
9 // MainFrm.h: interface of the MainFrame class
25 //wants to be an MDI window... (And now is!!!)
26 class MainWin: public QMainWindow
28 // All Qt apps require this macro
35 void closeEvent(QCloseEvent * event);
40 void FileOpenRecent(void);
41 void FileSaveBase(MapView *, QString);
43 void FileSaveAs(void);
46 void MenuFixUndo(void);
47 void EditDelete(void);
48 void EditSelectAll(void);
52 void LoadFile(QString);
53 void CreateActions(void);
54 void CreateMenus(void);
55 void CreateToolbars(void);
56 void ReadSettings(void);
57 void WriteSettings(void);
58 void UpdateMRUActionList(void);
59 void AdjustMRU(const QString & filePath);
62 // CDialogBar wndNavBar;
65 AboutWindow * aboutWin;
71 QAction * fileOpenAct;
72 QAction * fileSaveAct;
73 QAction * fileSaveAsAct;
74 QAction * fileCloseAct;
78 QAction * selectAllAct;
80 QList<QAction *> mruAct;
83 // void setStatusBar(LPCTSTR text) {m_wndStatusBar.SetWindowText(text);};
86 // ClassWizard generated virtual function overrides
87 //{{AFX_VIRTUAL(CMainFrame)
88 // virtual BOOL PreCreateWindow(CREATESTRUCT & cs);
95 // void DockControlBarLeftOf(CControlBar * Bar,CControlBar * LeftOf);
97 protected: // control bar embedded members
98 // CStatusBar m_wndStatusBar;
99 // CToolBar m_wndToolBar;
101 // Generated message map functions
103 // int OnCreate(LPCREATESTRUCT lpCreateStruct);
104 // void OnActivateApp(BOOL bActive, HTASK hTask);
107 // DECLARE_MESSAGE_MAP();
111 #endif // __MAINWIN_H__