// Licence:
/////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "mainframe.h"
-#endif
-
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
m_findDialog = NULL;
m_treeSplitterWindow = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxSize(400, 300),
- wxSP_3DSASH|wxSP_3DBORDER|wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN);
+ wxSP_3DSASH|wxSP_3DBORDER|wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN|wxSP_NO_XP_THEME);
m_configTreeCtrl = new ctConfigTreeCtrl(m_treeSplitterWindow, wxID_ANY, wxDefaultPosition, wxDefaultSize,
wxTR_HAS_BUTTONS|wxNO_BORDER|wxNO_FULL_REPAINT_ON_RESIZE|wxCLIP_CHILDREN);
IMPLEMENT_CLASS(ctOutputWindow, wxPanel)
BEGIN_EVENT_TABLE(ctOutputWindow, wxPanel)
+#if wxUSE_CLIPBOARD
EVT_BUTTON(wxID_COPY, ctOutputWindow::OnCopyToClipboard)
+#endif // wxUSE_CLIPBOARD
EVT_BUTTON(wxID_SAVE, ctOutputWindow::OnSaveText)
EVT_BUTTON(ctID_REGENERATE, ctOutputWindow::OnRegenerate)
EVT_UPDATE_UI(wxID_SAVE, ctOutputWindow::OnUpdateSaveText)
SetSizer( item0 );
}
+#if wxUSE_CLIPBOARD
/// Copies the text to the clipboard.
void ctOutputWindow::OnCopyToClipboard(wxCommandEvent& WXUNUSED(event))
{
wxTheClipboard->Close();
}
}
+#endif // wxUSE_CLIPBOARD
/// Sets the code in the text control.
void ctOutputWindow::SetText(const wxString& text)