diff options
author | Robin Gareus <robin@gareus.org> | 2013-06-23 16:14:39 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-10 15:27:02 +0200 |
commit | a4373a99c6b5869fa66244d1b72a08a34b62a87f (patch) | |
tree | baed65c1c551611ec0a8919ecf6d18d9021e1936 /gtk2_ardour/meter_strip.h | |
parent | 35937e508322cfe336a15cc240839dbb2d553ef6 (diff) |
meter-bridge details:
* sort routes
* draw metric area
* layout & style
Diffstat (limited to 'gtk2_ardour/meter_strip.h')
-rw-r--r-- | gtk2_ardour/meter_strip.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gtk2_ardour/meter_strip.h b/gtk2_ardour/meter_strip.h index f74093ba08..653e045a73 100644 --- a/gtk2_ardour/meter_strip.h +++ b/gtk2_ardour/meter_strip.h @@ -49,6 +49,7 @@ class MeterStrip : public Gtk::VBox ~MeterStrip (); void fast_update (); + boost::shared_ptr<ARDOUR::Route> route() { return _route; } static PBD::Signal1<void,MeterStrip*> CatchDeletion; @@ -57,15 +58,29 @@ class MeterStrip : public Gtk::VBox PBD::ScopedConnectionList route_connections; void self_delete (); + gint meter_metrics_expose (GdkEventExpose *); + + typedef std::map<std::string,cairo_pattern_t*> MetricPatterns; + static MetricPatterns metric_patterns; + static cairo_pattern_t* render_metrics (Gtk::Widget &, std::vector<ARDOUR::DataType>); + + void on_theme_changed (); + bool style_changed; + + void on_size_allocate (Gtk::Allocation&); + void on_size_request (Gtk::Requisition*); + private: - Meterbridge& _meterbridge; - Gtk::Label *label; + Gtk::Label label; + Gtk::DrawingArea meter_metric_area; + std::vector<ARDOUR::DataType> _types; LevelMeter *level_meter; void meter_changed (); PBD::ScopedConnection _config_connection; void strip_property_changed (const PBD::PropertyChange&); + void meter_configuration_changed (ARDOUR::ChanCount); }; |