X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61775320c5f2e71df6b9dfe525c40dce23fbcfe7..1296186133b677fdbaddfc1551b2b2c7321dac39:/utils/configtool/src/mainframe.h diff --git a/utils/configtool/src/mainframe.h b/utils/configtool/src/mainframe.h index 9ad6366a86..cf240a0dca 100644 --- a/utils/configtool/src/mainframe.h +++ b/utils/configtool/src/mainframe.h @@ -12,12 +12,15 @@ #ifndef _AP_MAINFRAME_H_ #define _AP_MAINFRAME_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "mainframe.cpp" #endif #include "wx/imaglist.h" #include "wx/docview.h" +#include "wx/notebook.h" + +// #define USE_CONFIG_BROWSER_PAGE class WXDLLEXPORT wxHtmlWindow; class WXDLLEXPORT wxSplitterWindow; @@ -27,7 +30,9 @@ class ctConfigTreeCtrl; class ctPropertyEditor; class ctOutputWindow; class ctFindReplaceDialog; +#ifdef USE_CONFIG_BROWSER_PAGE class ctConfigurationBrowserWindow; +#endif /*! * \brief The main window of the application. @@ -36,7 +41,7 @@ class ctConfigurationBrowserWindow; class ctMainFrame: public wxDocParentFrame { DECLARE_CLASS(ctMainFrame) - public: +public: /// Constructor. ctMainFrame(wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style); @@ -119,7 +124,7 @@ class ctMainFrame: public wxDocParentFrame /// Returns the configure page window ctOutputWindow* GetConfigurePage() const { return m_configurePage; } - /// Returns the main notebook containing editor and text tabs + /// Returns the main notebook containing editor and text tabs wxNotebook* GetMainNotebook() const { return m_mainNotebook; } /// Sets the find dialog for future closing @@ -156,7 +161,9 @@ protected: // The control panel for browsing, adding and removing // configurations. +#ifdef USE_CONFIG_BROWSER_PAGE ctConfigurationBrowserWindow* m_configBrowserPage; +#endif ctFindReplaceDialog* m_findDialog; }; @@ -171,7 +178,7 @@ DECLARE_CLASS(ctOutputWindow) public: ctOutputWindow(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); - ~ctOutputWindow(); + ~ctOutputWindow(){}; /// Initialise the windows. void CreateWindows();