main_window_.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:3k
- /*
- * ===========================================================================
- * PRODUCTION $Log: main_window_.hpp,v $
- * PRODUCTION Revision 1000.4 2004/06/01 20:48:27 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.22
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- #ifndef main_window__hpp
- #define main_window__hpp
- #include <FL/Fl.H>
- /* $Id: main_window_.hpp,v 1000.4 2004/06/01 20:48:27 gouriano Exp $ */
- #include <FL/Fl_Double_Window.H>
- #include <FL/Fl_Pack.H>
- #include <FL/Fl_Group.H>
- #include <FL/Fl_Box.H>
- #include <FL/Fl_Menu_Button.H>
- #include <FL/Fl_Button.H>
- class CMainWindow : public CDocMgrView, public ISelection {
- public:
- CMainWindow();
- ~CMainWindow();
- void Hide();
- void Show();
- void Show(int argc, char** argv);
- bool Shown() const;
- void Update(TUpdateFlags flags);
- string GetTitle() const;
- void GetSelections(TConstScopedObjects& objs) const;
- void SetSelections(const TConstScopedObjects& objs);
- private:
- auto_ptr<Fl_Window> m_Window;
- auto_ptr<CAlgoMenuMgr> m_ToolMgr;
- auto_ptr<CViewMenuMgr> m_ViewMgr;
- auto_ptr<CDocLoaderMenuMgr> m_DocLoaderMgr;
- auto_ptr<CAboutDlg> m_AboutDlg;
- auto_ptr<CPluginMgrDlg> m_PluginMgrDlg;
- auto_ptr<CBrowserConfigDlg> m_BrowserConfigDlg;
- auto_ptr<CGBenchFrameWindow> m_AppFrame;
- CRef<CDocumentDlg> m_DocumentDlg;
- string m_VersionStr;
- string m_BuildStr;
- int m_LastConsoleHeight;
- CRef<IDocument> m_CurrentDoc;
- void x_OnHelpIndex();
- void x_OnHelpAbout();
- void x_OnToggleConsole();
- void x_OnManagePlugins();
- void x_OnBrowserConfig();
- void x_OnSwitchDocs();
- void x_OnShowAllRecords();
- void x_RefreshDynMenus();
- void x_HideAllBut(IDocument* doc);
- void x_Show(IDocument* doc);
- Fl_Double_Window* x_CreateWindow();
- Fl_Pack *m_Pack;
- Fl_Box *m_Version;
- Fl_Box *m_BuildDate;
- Fl_Menu_Button *m_OpenMenu;
- static Fl_Menu_Item menu_m_OpenMenu[];
- Fl_Menu_Button *m_ToolsMenu;
- Fl_Menu_Button *m_SettingsMenu;
- static Fl_Menu_Item menu_m_SettingsMenu[];
- inline void cb_Manage_i(Fl_Menu_*, void*);
- static void cb_Manage(Fl_Menu_*, void*);
- inline void cb_Configure_i(Fl_Menu_*, void*);
- static void cb_Configure(Fl_Menu_*, void*);
- Fl_Menu_Button *m_HelpMenu;
- static Fl_Menu_Item menu_m_HelpMenu[];
- inline void cb_Index_i(Fl_Menu_*, void*);
- static void cb_Index(Fl_Menu_*, void*);
- inline void cb_About_i(Fl_Menu_*, void*);
- static void cb_About(Fl_Menu_*, void*);
- inline void cb_Exit_i(Fl_Button*, void*);
- static void cb_Exit(Fl_Button*, void*);
- public:
- Fl_Menu_Button *m_OpenDocs;
- private:
- inline void cb_m_OpenDocs_i(Fl_Menu_Button*, void*);
- static void cb_m_OpenDocs(Fl_Menu_Button*, void*);
- static Fl_Menu_Item menu_m_OpenDocs[];
- inline void cb_Show_i(Fl_Menu_*, void*);
- static void cb_Show(Fl_Menu_*, void*);
- inline void cb_Select_i(Fl_Menu_*, void*);
- static void cb_Select(Fl_Menu_*, void*);
- public:
- Fl_Menu_Button *m_ViewsMenu;
- private:
- Fl_Button *m_ShowConsoleBtn;
- inline void cb_m_ShowConsoleBtn_i(Fl_Button*, void*);
- static void cb_m_ShowConsoleBtn(Fl_Button*, void*);
- CDiagPanel *m_Console;
- CGBenchFrameWindow& x_GetMainFrame();
- void x_OnShowFrame();
- };
- #endif