- bool darea_expose_event (GdkEventExpose*);
- void darea_size_allocate (Gtk::Allocation& alloc);
- bool darea_motion_notify_event (GdkEventMotion *ev);
- bool handle_motion (gint evx, gint evy, GdkModifierType state);
- bool darea_button_press_event (GdkEventButton *ev);
- bool darea_button_release_event (GdkEventButton *ev);
+private:
+ boost::weak_ptr<ARDOUR::Speakers> _speakers;
+ Gtk::HBox hbox;
+ Gtk::VBox side_vbox;
+ Gtk::AspectFrame aspect_frame;
+ Gtk::DrawingArea darea;
+ Gtk::Adjustment azimuth_adjustment;
+ Gtk::SpinButton azimuth_spinner;
+ Gtk::Button add_speaker_button;
+ Gtk::Button remove_speaker_button;
+ int width; ///< width of the circle
+ int height; ///< height of the circle
+ int x_origin; ///< x origin of our stuff within the drawing area
+ int y_origin; ///< y origin of our stuff within the drawing area
+ /** distance from the centre of the object being dragged to the mouse pointer
+ * when the drag was started (ie start_pointer - object_position).
+ */
+ double drag_offset_x;
+ double drag_offset_y;
+ int drag_index;
+ int selected_index; ///< index of any selected speaker, or -1
+ PBD::ScopedConnection selected_speaker_connection;
+ bool ignore_speaker_position_change;
+ bool ignore_azimuth_change;