do not reset session for MonitorSection just because monitor out was removed
[ardour.git] / gtk2_ardour / speaker_dialog.h
index 62bcc277f273a4832e11d05c385e732be3f932d5..95217003802168da9626e5326f64872fd2787378 100644 (file)
 
 #include "ardour/speakers.h"
 
-#include "ardour_dialog.h"
+#include "ardour_window.h"
 
-class SpeakerDialog  : public ArdourDialog
+class SpeakerDialog  : public ArdourWindow
 {
 public:
        SpeakerDialog ();
-       
+
        boost::shared_ptr<ARDOUR::Speakers> get_speakers() const;
        void set_speakers (boost::shared_ptr<ARDOUR::Speakers>);
-       
+
 private:
        boost::weak_ptr<ARDOUR::Speakers> _speakers;
        Gtk::HBox        hbox;
@@ -48,7 +48,6 @@ private:
        Gtk::SpinButton  azimuth_spinner;
        Gtk::Button      add_speaker_button;
        Gtk::Button      remove_speaker_button;
-       int32_t          selected_speaker;
        int              width;         ///< width of the circle
        int              height;        ///< height of the circle
        int              x_origin;      ///< x origin of our stuff within the drawing area
@@ -63,14 +62,14 @@ private:
        PBD::ScopedConnection selected_speaker_connection;
        bool             ignore_speaker_position_change;
        bool             ignore_azimuth_change;
-       
+
        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);
-       
+
        void clamp_to_circle (double& x, double& y);
        void gtk_to_cart (PBD::CartesianVector& c) const;
        void cart_to_gtk (PBD::CartesianVector& c) const;