summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_multiplicator.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
commitbb9cc45cd22af67ac275a5e73accbe14fee664d8 (patch)
treee52977d3eae6ff07b856088041a080a2fa3e5b79 /gtk2_ardour/export_multiplicator.h
parent8c4ce1e2ce35571aed5a686671431fdfffae7f8c (diff)
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/export_multiplicator.h')
-rw-r--r--gtk2_ardour/export_multiplicator.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/gtk2_ardour/export_multiplicator.h b/gtk2_ardour/export_multiplicator.h
index 679c6bc1d3..c58cce1011 100644
--- a/gtk2_ardour/export_multiplicator.h
+++ b/gtk2_ardour/export_multiplicator.h
@@ -42,7 +42,7 @@ class ExportMultiplicator : public Gtk::EventBox {
ExportMultiplicator ();
~ExportMultiplicator ();
-
+
void set_manager (boost::shared_ptr<ExportProfileManager> _manager);
private:
@@ -55,7 +55,7 @@ class ExportMultiplicator : public Gtk::EventBox {
Gtk::Table table;
void redraw ();
-
+
enum GraphLevel {
NoLevel = 0,
Timespans = 1,
@@ -63,9 +63,9 @@ class ExportMultiplicator : public Gtk::EventBox {
Formats = 3,
Filenames = 4
};
-
+
std::pair<uint32_t, uint32_t> get_bounds (ExportProfileManager::GraphNode * node, GraphLevel current_level, GraphLevel max_level) const;
-
+
void draw_timespan (ExportProfileManager::TimespanNodePtr node, std::pair<uint32_t, uint32_t> bounds);
void draw_channel_config (ExportProfileManager::ChannelConfigNodePtr node, std::pair<uint32_t, uint32_t> bounds);
void draw_format (ExportProfileManager::FormatNodePtr node, std::pair<uint32_t, uint32_t> bounds);
@@ -75,42 +75,42 @@ class ExportMultiplicator : public Gtk::EventBox {
uint32_t left;
uint32_t right;
uint32_t row;
-
+
TablePosition (uint32_t left, uint32_t right, uint32_t row) :
left (left), right (right), row (row) {}
-
+
bool operator== (TablePosition const & other) const { return (row == other.row && left == other.left && right == other.right); }
bool operator< (TablePosition const & other) const { return (row < other.row || left < other.left || right < other.right); }
};
-
+
typedef std::map<TablePosition, boost::shared_ptr<Gtk::HBox> > WidgetMap;
typedef std::pair<TablePosition, boost::shared_ptr<Gtk::HBox> > WidgetPair;
-
+
boost::shared_ptr<Gtk::HBox> get_hbox (TablePosition position);
WidgetMap widget_map;
-
+
/* Button Widget */
-
+
class ButtonWidget : public Gtk::EventBox {
public:
ButtonWidget (Glib::ustring name, boost::shared_ptr<ExportProfileManager> m, ExportProfileManager::GraphNode * node);
-
+
private:
-
+
Gtk::Label label;
Gtk::VBox vbox;
-
+
bool on_button_press_event (GdkEventButton* event);
-
+
void split ();
void remove ();
-
+
boost::shared_ptr<ExportProfileManager> manager;
ExportProfileManager::GraphNode * node;
float split_position;
-
+
/* Context menu */
-
+
Glib::RefPtr<Gtk::ActionGroup> menu_actions;
Glib::RefPtr<Gtk::UIManager> ui_manager;
Gtk::Menu * menu;