@@ -94,18 +94,18 @@ std::vector<ToolBarEntry> GetSymbolsToolBar()
9494 return tb;
9595}
9696
97- std::vector<ToolBarEntry> GetHalfOfMainToolBar (bool withFeatureCurves )
97+ std::vector<ToolBarEntry> GetHalfOfMainToolBar ()
9898{
99- static auto const tb = [withFeatureCurves ] {
99+ static auto const tb = [] {
100100 auto result = std::vector<ToolBarEntry>{
101101 { wxITEM_NORMAL, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_left))), wxT (" Previous stuntsheet" ), CALCHART__prev_ss, {} },
102102 { wxITEM_NORMAL, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_right))), wxT (" Next stuntsheet" ), CALCHART__next_ss, true },
103103 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_box))), wxT (" Select points with box" ), CALCHART__box, {} },
104104 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_poly))), wxT (" Select points with polygon" ), CALCHART__poly, {} },
105105 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_lasso))), wxT (" Select points with lasso" ), CALCHART__lasso, {} },
106106 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_swap))), wxT (" Swap points" ), CALCHART__swap, true },
107+ { wxITEM_CHECK, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_curve))), wxT (" Draw and Edit Curves" ), CALCHART__curve, true },
107108 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_mv))), wxT (" Translate points" ), CALCHART__move, {} },
108-
109109 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_shape_line))), wxT (" Shape points in a line" ), CALCHART__shape_line, {} },
110110 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_shape_x))), wxT (" Shape points in an x" ), CALCHART__shape_x, {} },
111111 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_shape_cross))), wxT (" Shape points in a cross" ), CALCHART__shape_cross, {} },
@@ -119,10 +119,6 @@ std::vector<ToolBarEntry> GetHalfOfMainToolBar(bool withFeatureCurves)
119119 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_siz))), wxT (" Resize block" ), CALCHART__size, {} },
120120 { wxITEM_RADIO, wxT (" " ), ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_gen))), wxT (" Genius move" ), CALCHART__genius, true },
121121 };
122- if (withFeatureCurves) {
123- result.push_back (
124- ToolBarEntry{ wxITEM_RADIO, " " , ScaleButtonBitmap (wxBitmap (BITMAP_NAME (tb_curve))), wxT (" Draw curve" ), CALCHART__curve, true });
125- }
126122 return result;
127123 }();
128124 return tb;
@@ -171,10 +167,10 @@ auto CreateAuiToolBar(wxAuiToolBar* tb, T toolbarBits)
171167 return tb;
172168}
173169
174- wxAuiToolBar* CreateSelectAndMoves (wxWindow* parent, bool withFeatureCurves, wxWindowID id, long style)
170+ wxAuiToolBar* CreateSelectAndMoves (wxWindow* parent, wxWindowID id, long style)
175171{
176172
177- return CreateAuiToolBar (new wxAuiToolBar (parent, id, wxDefaultPosition, wxDefaultSize, style), GetHalfOfMainToolBar (withFeatureCurves ));
173+ return CreateAuiToolBar (new wxAuiToolBar (parent, id, wxDefaultPosition, wxDefaultSize, style), GetHalfOfMainToolBar ());
178174}
179175
180176wxAuiToolBar* CreateDotModifiers (wxWindow* parent, wxWindowID id, long style)
0 commit comments