#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"
+// #define USE_CONFIG_BROWSER_PAGE
+
class WXDLLEXPORT wxHtmlWindow;
class WXDLLEXPORT wxSplitterWindow;
class WXDLLEXPORT wxNotebookEvent;
class ctConfigTreeCtrl;
class ctPropertyEditor;
class ctOutputWindow;
+class ctFindReplaceDialog;
+#ifdef USE_CONFIG_BROWSER_PAGE
+class ctConfigurationBrowserWindow;
+#endif
/*!
* \brief The main window of the application.
/// Returns the main notebook containing editor and text tabs
wxNotebook* GetMainNotebook() const { return m_mainNotebook; }
+ /// Sets the find dialog for future closing
+ void SetFindDialog(ctFindReplaceDialog* findDialog) { m_findDialog = findDialog; }
+
+ /// Gets the find dialog
+ ctFindReplaceDialog* GetFindDialog() const { return m_findDialog ; }
+
DECLARE_EVENT_TABLE()
protected:
wxNotebook* m_mainNotebook;
ctOutputWindow* m_setupPage;
ctOutputWindow* m_configurePage;
+
+ // The control panel for browsing, adding and removing
+ // configurations.
+#ifdef USE_CONFIG_BROWSER_PAGE
+ ctConfigurationBrowserWindow* m_configBrowserPage;
+#endif
+
+ ctFindReplaceDialog* m_findDialog;
};
/*!