| 40 | END_EVENT_TABLE() |
| 41 | |
| 42 | ScatterPlotMatFrame::ScatterPlotMatFrame(wxFrame *parent, Project* project, |
| 43 | const wxString& title, |
| 44 | const wxPoint& pos, |
| 45 | const wxSize& size) |
| 46 | : TemplateFrame(parent, project, title, pos, size, wxDEFAULT_FRAME_STYLE), |
| 47 | lowess_param_frame(0), vars_chooser_frame(0), panel(0), |
| 48 | panel_v_szr(0), bag_szr(0), top_h_sizer(0), view_standardized_data(false), |
| 49 | show_regimes(false), show_outside_titles(true), show_linear_smoother(true), |
| 50 | show_lowess_smoother(false), show_slope_values(true), |
| 51 | brush_rectangle(true), brush_circle(false), brush_line(false), |
| 52 | selectable_outline_color(GdaConst::scatterplot_regression_color), |
| 53 | selectable_fill_color(GdaConst::scatterplot_regression_excluded_color), |
| 54 | highlight_color(GdaConst::scatterplot_regression_selected_color), |
| 55 | axis_display_precision(1), axis_display_fixed_point(false) |
| 56 | { |
| 57 | wxLogMessage("Open ScatterPlotMatFrame."); |
| 58 | |
| 59 | supports_timeline_changes = true; |
| 60 | { |
| 61 | std::vector<wxString> tm_strs; |
| 62 | project->GetTableInt()->GetTimeStrings(tm_strs); |
| 63 | var_man.ClearAndInit(tm_strs); |
| 64 | } |
| 65 | |
| 66 | int width, height; |
| 67 | GetClientSize(&width, &height); |
| 68 | |
| 69 | panel = new wxPanel(this); |
| 70 | |
| 71 | SetBackgroundColour(*wxWHITE); |
| 72 | panel->Bind(wxEVT_MOTION, &ScatterPlotMatFrame::OnMouseEvent, this); |
| 73 | |
| 74 | message_win = new wxHtmlWindow(panel, wxID_ANY, wxDefaultPosition, wxSize(200,-1)); |
| 75 | |
| 76 | message_win->Bind(wxEVT_MOTION, &ScatterPlotMatFrame::OnMouseEvent, this); |
| 77 | |
| 78 | bag_szr = new wxGridBagSizer(0, 0); // 0 vgap, 0 hgap |
| 79 | |
| 80 | bag_szr->Add(message_win, wxGBPosition(0,0), wxGBSpan(1,1), wxEXPAND); |
| 81 | bag_szr->SetFlexibleDirection(wxBOTH); |
| 82 | bag_szr->AddGrowableCol(0, 1); |
| 83 | bag_szr->AddGrowableRow(0, 1); |
| 84 | |
| 85 | panel_v_szr = new wxBoxSizer(wxVERTICAL); |
| 86 | panel_v_szr->Add(bag_szr, 1, wxEXPAND); |
| 87 | |
| 88 | wxBoxSizer* panel_h_szr = new wxBoxSizer(wxHORIZONTAL); |
| 89 | panel_h_szr->Add(panel_v_szr, 1, wxEXPAND); |
| 90 | |
| 91 | panel->SetSizer(panel_h_szr); |
| 92 | panel->SetBackgroundColour(*wxWHITE); |
| 93 | |
| 94 | UpdateMessageWin(); |
| 95 | |
| 96 | // Top Sizer for Frame |
| 97 | top_h_sizer = new wxBoxSizer(wxHORIZONTAL); |
| 98 | top_h_sizer->Add(panel, 1, wxEXPAND|wxALL, 8); |
| 99 |
nothing calls this directly
no test coverage detected