Catch keyboard events on notes.
[ardour.git] / gtk2_ardour / gain_meter.h
index 88105ce846afdd99ede76101053e4523c93d52b3..3839221e7368fec67fb23e026c1523490c45d974 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_gtk_gain_meter_h__
@@ -31,6 +30,7 @@
 #include <gtkmm/button.h>
 #include <gtkmm/table.h>
 #include <gtkmm/drawingarea.h>
+#include <gdkmm/colormap.h>
 
 #include <ardour/types.h>
 
@@ -70,6 +70,8 @@ class GainMeter : public Gtk::VBox
        void set_width (Width);
        void setup_meters ();
 
+       int get_gm_width ();
+
        void set_meter_strip_name (const char * name);
        void set_fader_name (const char * name);
 
@@ -85,7 +87,7 @@ class GainMeter : public Gtk::VBox
        Gtkmm2ext::VSliderController *gain_slider;
        Gtk::Adjustment              gain_adjustment;
        Gtkmm2ext::FocusEntry        gain_display;
-       Gtk::Entry                   peak_display;
+       Gtk::Button                  peak_display;
        Gtk::HBox                    gain_display_box;
        Gtk::HBox                    fader_box;
        Gtk::DrawingArea             meter_metric_area;
@@ -147,7 +149,7 @@ class GainMeter : public Gtk::VBox
        Gtk::HBox   meter_packer;
 
        void gain_adjusted ();
-       void gain_changed (void *);
+       void gain_changed ();
        
        void meter_point_clicked ();
        void gain_unit_changed ();
@@ -184,6 +186,9 @@ class GainMeter : public Gtk::VBox
        static Glib::RefPtr<Gdk::Pixbuf> slider;
        static Glib::RefPtr<Gdk::Pixbuf> rail;
        static int setup_slider_pix ();
+
+       void on_theme_changed ();
+       bool style_changed;
 };
 
 #endif /* __ardour_gtk_gain_meter_h__ */