*/
#include <boost/signals2.hpp>
-#include <wx/scrolwin.h>
+#include <wx/wx.h>
#include "lib/audio_mapping.h"
/** @class AudioMappingView
* might be.
*/
-class AudioMappingView : public wxScrolledWindow
+class AudioMappingView : public wxPanel
{
public:
explicit AudioMappingView (wxWindow *);
void map_values_changed ();
void setup_sizes ();
void paint ();
+ void paint_static (wxDC& dc, wxGraphicsContext* gc);
+ void paint_column_labels (wxDC& dc, wxGraphicsContext* gc);
+ void paint_column_lines (wxGraphicsContext* gc);
+ void paint_row_labels (wxDC& dc, wxGraphicsContext* gc);
+ void paint_row_lines (wxGraphicsContext* gc);
+ void paint_indicators (wxDC& dc);
+ void size (wxSizeEvent &);
+ void scroll ();
void left_down (wxMouseEvent &);
void right_down (wxMouseEvent &);
void motion (wxMouseEvent &);
+ void mouse_wheel (wxMouseEvent &);
boost::optional<std::pair<int, int> > mouse_event_to_channels (wxMouseEvent& ev) const;
- void set_virtual_size ();
+ boost::optional<std::string> mouse_event_to_input_group_name (wxMouseEvent& ev) const;
+ void setup ();
+ wxString safe_input_channel_name (int n) const;
+ wxString safe_output_channel_name (int n) const;
void off ();
void full ();
AudioMapping _map;
wxMenu* _menu;
+ wxPanel* _body;
+ wxScrollBar* _vertical_scroll;
+ wxScrollBar* _horizontal_scroll;
int _menu_input;
int _menu_output;