summaryrefslogtreecommitdiff
path: root/gtk2_ardour/meter_strip.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2013-06-28 23:09:39 +0200
committerRobin Gareus <robin@gareus.org>2013-07-10 15:27:02 +0200
commit917e3522d0038055339397f69f5467fb034eb955 (patch)
treecd6c7fe3ac1f53193264de229d79f86a930c5f2c /gtk2_ardour/meter_strip.h
parentc23a537b6189692b9b8b56de20889cfa596fb0de (diff)
meterbridge: add rec-enable btn & prepare metric/tick separation
Diffstat (limited to 'gtk2_ardour/meter_strip.h')
-rw-r--r--gtk2_ardour/meter_strip.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gtk2_ardour/meter_strip.h b/gtk2_ardour/meter_strip.h
index a431f6b49b..a96840ed6c 100644
--- a/gtk2_ardour/meter_strip.h
+++ b/gtk2_ardour/meter_strip.h
@@ -28,6 +28,7 @@
#include "ardour/types.h"
#include "ardour/ardour.h"
+#include "route_ui.h"
#include "level_meter.h"
@@ -42,7 +43,7 @@ namespace Gtk {
class Meterbridge;
-class MeterStrip : public Gtk::VBox
+class MeterStrip : public Gtk::VBox, public RouteUI
{
public:
MeterStrip (Meterbridge&, ARDOUR::Session*, boost::shared_ptr<ARDOUR::Route>);
@@ -63,6 +64,10 @@ class MeterStrip : public Gtk::VBox
typedef std::map<std::string,cairo_pattern_t*> MetricPatterns;
static MetricPatterns metric_patterns;
+
+ typedef std::map<std::string,cairo_pattern_t*> TickPatterns;
+ static TickPatterns tick_patterns;
+
static cairo_pattern_t* render_metrics (Gtk::Widget &, std::vector<ARDOUR::DataType>);
void on_theme_changed ();
@@ -71,9 +76,16 @@ class MeterStrip : public Gtk::VBox
void on_size_allocate (Gtk::Allocation&);
void on_size_request (Gtk::Requisition*);
+ /* route UI */
+ void update_rec_display ();
+ std::string state_id() const;
+ void set_button_names ();
+
private:
+ Gtk::HBox meterbox;
Gtk::Label label;
Gtk::DrawingArea meter_metric_area;
+ Gtk::DrawingArea meter_tick_area;
std::vector<ARDOUR::DataType> _types;
LevelMeter *level_meter;