diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-11 12:42:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-11 12:42:26 +0100 |
| commit | cb2d996875db099ce456c18e9751f5dfe3d9056d (patch) | |
| tree | 84f576434cb356bd3c4a09c5d820ec6d65499963 /src | |
| parent | 2f848b51a4ac00f7f25691fad40841d066f867cc (diff) | |
Remove wx2.8 compatibility stuff.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_mapping_view.cc | 8 | ||||
| -rw-r--r-- | src/wx/audio_plot.cc | 8 | ||||
| -rw-r--r-- | src/wx/film_viewer.cc | 2 | ||||
| -rw-r--r-- | src/wx/timeline.cc | 13 |
4 files changed, 0 insertions, 31 deletions
diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index 859c4d548..5f0f74d23 100644 --- a/src/wx/audio_mapping_view.cc +++ b/src/wx/audio_mapping_view.cc @@ -56,11 +56,7 @@ public: void Draw (wxGrid& grid, wxGridCellAttr &, wxDC& dc, const wxRect& rect, int row, int col, bool) { -#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 dc.SetPen (*wxThePenList->FindOrCreatePen (wxColour (255, 255, 255), 0, wxPENSTYLE_SOLID)); -#else - dc.SetPen (*wxThePenList->FindOrCreatePen (wxColour (255, 255, 255), 0, wxSOLID)); -#endif dc.DrawRectangle (rect); wxRendererNative::Get().DrawCheckBox ( @@ -88,11 +84,7 @@ AudioMappingView::AudioMappingView (wxWindow* parent) _grid = new wxGrid (this, wxID_ANY); _grid->CreateGrid (0, 7); -#if wxMINOR_VERSION == 9 _grid->HideRowLabels (); -#else - _grid->SetRowLabelSize (0); -#endif _grid->DisableDragRowSize (); _grid->DisableDragColSize (); _grid->EnableEditing (false); diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index e2e2cdf76..b8b9ead25 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -147,11 +147,7 @@ AudioPlot::paint (wxPaintEvent &) plot_peak (p, c); } wxColour const col = _colours[c]; -#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2), 1, wxPENSTYLE_SOLID)); -#else - gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (col.Red(), col.Green(), col.Blue(), col.Alpha() / 2), 1, wxSOLID)); -#endif gc->StrokePath (p); } } @@ -163,11 +159,7 @@ AudioPlot::paint (wxPaintEvent &) plot_rms (p, c); } wxColour const col = _colours[c]; -#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 gc->SetPen (*wxThePenList->FindOrCreatePen (col, 1, wxPENSTYLE_SOLID)); -#else - gc->SetPen (*wxThePenList->FindOrCreatePen (col, 1, wxSOLID)); -#endif gc->StrokePath (p); } } diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index d7ec26f7d..15c23e064 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -67,9 +67,7 @@ FilmViewer::FilmViewer (shared_ptr<Film> f, wxWindow* p) _panel->SetDoubleBuffered (true); #endif -#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 _panel->SetBackgroundStyle (wxBG_STYLE_PAINT); -#endif _v_sizer = new wxBoxSizer (wxVERTICAL); SetSizer (_v_sizer); diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc index f9223f19d..4e0737b41 100644 --- a/src/wx/timeline.cc +++ b/src/wx/timeline.cc @@ -140,21 +140,12 @@ private: gc->SetPen (*wxBLACK_PEN); -#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (0, 0, 0), 4, wxPENSTYLE_SOLID)); if (_selected) { gc->SetBrush (*wxTheBrushList->FindOrCreateBrush (selected, wxBRUSHSTYLE_SOLID)); } else { gc->SetBrush (*wxTheBrushList->FindOrCreateBrush (colour(), wxBRUSHSTYLE_SOLID)); } -#else - gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (0, 0, 0), 4, wxSOLID)); - if (_selected) { - gc->SetBrush (*wxTheBrushList->FindOrCreateBrush (selected, wxSOLID)); - } else { - gc->SetBrush (*wxTheBrushList->FindOrCreateBrush (colour(), wxSOLID)); - } -#endif wxGraphicsPath path = gc->CreatePath (); path.MoveToPoint (time_x (start), y_pos (_track) + 4); @@ -258,11 +249,7 @@ private: void do_paint (wxGraphicsContext* gc) { -#if wxMAJOR_VERSION == 2 && wxMINOR_VERSION >= 9 gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (0, 0, 0), 1, wxPENSTYLE_SOLID)); -#else - gc->SetPen (*wxThePenList->FindOrCreatePen (wxColour (0, 0, 0), 1, wxSOLID)); -#endif int mark_interval = rint (128 / (TIME_HZ * _timeline.pixels_per_time_unit ())); if (mark_interval > 5) { |
