#include "wx/imaglist.h"
#include "wx/docview.h"
+#include "wx/notebook.h"
+#include "wx/textctrl.h"
+
+// #define USE_CONFIG_BROWSER_PAGE
class WXDLLEXPORT wxHtmlWindow;
class WXDLLEXPORT wxSplitterWindow;
class ctConfigTreeCtrl;
class ctPropertyEditor;
class ctOutputWindow;
+class ctFindReplaceDialog;
+#ifdef USE_CONFIG_BROWSER_PAGE
+class ctConfigurationBrowserWindow;
+#endif
/*!
* \brief The main window of the application.
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);
/// 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
+ 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;
};
/*!
public:
ctOutputWindow(wxWindow* parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0);
- ~ctOutputWindow();
+ ~ctOutputWindow(){};
/// Initialise the windows.
void CreateWindows();
/// Copies the text to the clipboard.
+#if wxUSE_CLIPBOARD
void OnCopyToClipboard(wxCommandEvent& event);
+#endif // wxUSE_CLIPBOARD
void OnUpdateCopy(wxUpdateUIEvent& event);
/// Regenerates setup.h/configure command