summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-01-21 01:55:46 +0000
committerCarl Hetherington <carl@carlh.net>2009-01-21 01:55:46 +0000
commit4476461443061703e9ef268ade72511dff3e3ae5 (patch)
tree839890c2ad535fc49904659ff531998140a5edf5 /gtk2_ardour/port_matrix_column_labels.h
parent61db2175eb8b8fffd0c1796ace78ac33c9e1adf0 (diff)
More logical arrangement of port matrix inputs and outputs, hopefully;
signal show notionally "flow" from left to bottom or from top to right. Some layout cleanups. git-svn-id: svn://localhost/ardour2/branches/3.0@4416 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.h')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.h b/gtk2_ardour/port_matrix_column_labels.h
index 3c9ff41838..76510073ec 100644
--- a/gtk2_ardour/port_matrix_column_labels.h
+++ b/gtk2_ardour/port_matrix_column_labels.h
@@ -33,17 +33,24 @@ namespace ARDOUR {
class PortMatrixColumnLabels : public PortMatrixComponent
{
public:
- PortMatrixColumnLabels (PortMatrixBody *);
+
+ enum Location {
+ TOP,
+ BOTTOM
+ };
+
+ PortMatrixColumnLabels (PortMatrixBody *, Location);
private:
void render (cairo_t *);
void compute_dimensions ();
- uint32_t basic_text_x_pos (int) const;
+ double basic_text_x_pos (int) const;
std::vector<boost::shared_ptr<ARDOUR::Bundle> > _bundles;
- uint32_t _longest_bundle_name;
- uint32_t _longest_channel_name;
- uint32_t _highest_text;
+ double _longest_bundle_name;
+ double _longest_channel_name;
+ double _highest_text;
+ Location _location;
};
#endif