Skip to content

Commit

Permalink
save DID results to file #409
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed May 2, 2016
1 parent 0333bc7 commit 97ef600
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 115 deletions.
14 changes: 12 additions & 2 deletions DialogTools/RegressionReportDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ void RegressionReportDlg::CreateControls()

vbox->Add(m_textbox, 1, wxEXPAND|wxALL|wxALIGN_CENTRE);
panel->SetSizer(vbox);


//wxBitmap edit = wxArtProvider::GetBitmap(wxART_PRINT);
//wxBitmap save = wxArtProvider::GetBitmap(wxART_FILE_SAVE);
//wxToolBar *toolbar = CreateToolBar();
//toolbar->AddTool(wxID_EDIT, "Change Font", edit);
//toolbar->AddTool(wxID_SAVE, "Save Regression Results", save);
//toolbar->Realize();
//Connect(wxID_EDIT, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(RegressionReportDlg::OnFontChanged));
//Connect(wxID_SAVE, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(RegressionReportDlg::OnFontChanged));

Center();
}
Expand All @@ -105,7 +115,7 @@ void RegressionReportDlg::SetReport(const wxString report)

void RegressionReportDlg::OnMouseEvent(wxMouseEvent& event)
{
if (event.RightUp())
if (event.RightDown())
PopupMenu(wxXmlResource::Get()->
LoadMenu("ID_REPORT_VIEW_MENU_CONTEXT"),
event.GetPosition().x, event.GetPosition().y);
Expand All @@ -114,7 +124,7 @@ void RegressionReportDlg::OnMouseEvent(wxMouseEvent& event)
void RegressionReportDlg::OnFontChanged(wxCommandEvent& event)
{
wxFontData data;
wxFontDialog dlg(this, data);
wxFontDialog dlg(NULL, data);
wxTextAttr attr;

if (dlg.ShowModal() == wxID_OK)
Expand Down
Loading

0 comments on commit 97ef600

Please sign in to comment.