git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28335
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void OnPlotDClick( wxPlotEvent &event );
wxPlotWindow *m_plot;
void OnPlotDClick( wxPlotEvent &event );
wxPlotWindow *m_plot;
private:
DECLARE_DYNAMIC_CLASS(MyFrame)
private:
DECLARE_DYNAMIC_CLASS(MyFrame)
oo->Add( 1000, 2000 );
m_plot->Add( oo );
oo->Add( 1000, 2000 );
m_plot->Add( oo );
m_log = new wxTextCtrl( this, -1, _T("This is the log window.\n"), wxPoint(0,0), wxSize(100,100), wxTE_MULTILINE );
wxLog *old_log = wxLog::SetActiveTarget( new wxLogTextCtrl( m_log ) );
delete old_log;
m_log = new wxTextCtrl( this, -1, _T("This is the log window.\n"), wxPoint(0,0), wxSize(100,100), wxTE_MULTILINE );
wxLog *old_log = wxLog::SetActiveTarget( new wxLogTextCtrl( m_log ) );
delete old_log;
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
topsizer->Add( m_plot, 1, wxEXPAND );
wxBoxSizer *topsizer = new wxBoxSizer( wxVERTICAL );
topsizer->Add( m_plot, 1, wxEXPAND );
topsizer->Add( m_log, 0, wxEXPAND );
topsizer->Add( m_log, 0, wxEXPAND );
SetSizer( topsizer );
}
void MyFrame::OnQuit( wxCommandEvent &WXUNUSED(event) )
{
SetSizer( topsizer );
}
void MyFrame::OnQuit( wxCommandEvent &WXUNUSED(event) )
{
}
void MyFrame::OnAbout( wxCommandEvent &WXUNUSED(event) )
}
void MyFrame::OnAbout( wxCommandEvent &WXUNUSED(event) )
wxSize(cfg->Read(_T("previewframe_w"), 400), cfg->Read(_T("previewframe_h"), 400))));
m_Splitter = new wxSplitterWindow(this, wxID_ANY);
wxSize(cfg->Read(_T("previewframe_w"), 400), cfg->Read(_T("previewframe_h"), 400))));
m_Splitter = new wxSplitterWindow(this, wxID_ANY);
m_LogCtrl = new wxTextCtrl(m_Splitter, wxID_ANY, wxEmptyString, wxDefaultPosition,
wxDefaultSize, wxTE_MULTILINE);
m_LogCtrl = new wxTextCtrl(m_Splitter, wxID_ANY, wxEmptyString, wxDefaultPosition,
wxDefaultSize, wxTE_MULTILINE);
m_ScrollWin = new wxScrolledWindow(m_Splitter, wxID_ANY);
m_ScrollWin->SetBackgroundColour(_T("light steel blue"));
m_ScrollWin = new wxScrolledWindow(m_Splitter, wxID_ANY);
m_ScrollWin->SetBackgroundColour(_T("light steel blue"));
m_Splitter->SplitHorizontally(m_ScrollWin, m_LogCtrl, cfg->Read(_T("previewframe_sash"), 300));
m_Splitter->SplitHorizontally(m_ScrollWin, m_LogCtrl, cfg->Read(_T("previewframe_sash"), 300));
#if wxUSE_STATUSBAR
CreateStatusBar();
#if wxUSE_STATUSBAR
CreateStatusBar();
if (m_Node == NULL) return;
if (m_Dirty) return;
m_Dirty = true;
if (m_Node == NULL) return;
if (m_Dirty) return;
m_Dirty = true;
m_LogCtrl->Clear();
m_LogCtrl->SetValue(_("Resource modified.\nMove mouse cursor over the preview window to refresh it."));
m_LogCtrl->Clear();
m_LogCtrl->SetValue(_("Resource modified.\nMove mouse cursor over the preview window to refresh it."));
m_Node = node;
m_Doc = orig_doc;
m_Node = node;
m_Doc = orig_doc;
m_LogCtrl->Clear();
wxLogTextCtrl mylog(m_LogCtrl);
wxLog *oldlog = wxLog::SetActiveTarget(&mylog);
m_LogCtrl->Clear();
wxLogTextCtrl mylog(m_LogCtrl);
wxLog *oldlog = wxLog::SetActiveTarget(&mylog);
wxString oldcwd = wxGetCwd();
wxSetWorkingDirectory(wxPathOnly(EditorFrame::Get()->GetFileName()));
wxString oldcwd = wxGetCwd();
wxSetWorkingDirectory(wxPathOnly(EditorFrame::Get()->GetFileName()));
PreviewWXFrame();
wxSetWorkingDirectory(oldcwd);
PreviewWXFrame();
wxSetWorkingDirectory(oldcwd);
wxLog::SetActiveTarget(oldlog);
wxLog::SetActiveTarget(oldlog);
wxXmlNode *m_Node;
wxXmlDocument *m_Doc;
wxScrolledWindow *m_ScrollWin;
wxXmlNode *m_Node;
wxXmlDocument *m_Doc;
wxScrolledWindow *m_ScrollWin;
wxSplitterWindow *m_Splitter;
wxXmlResource *m_RC;
wxSplitterWindow *m_Splitter;
wxXmlResource *m_RC;
#if wxUSE_LOG
if ( parser.Found(OPTION_VERBOSE) )
{
#if wxUSE_LOG
if ( parser.Found(OPTION_VERBOSE) )
{
- wxLog::SetVerbose(TRUE);
+ wxLog::SetVerbose(true);
+#else
+ wxUnusedVar(parser);
}
bool wxAppConsole::OnCmdLineHelp(wxCmdLineParser& parser)
}
bool wxAppConsole::OnCmdLineHelp(wxCmdLineParser& parser)