diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-18 15:29:34 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-08-18 16:40:14 -0500 |
commit | d7cd457bdf5116a2ba4e211320065b0e3ad5afb4 (patch) | |
tree | d50a505f0d9ceec77dd1db6e23e4ba0388b6ad18 /gtk2_ardour/luadialog.h | |
parent | ba5c19be4c8a60eaece1157355b3099711fee0d2 (diff) |
Templates: basic support for columns in the script dialog.
Diffstat (limited to 'gtk2_ardour/luadialog.h')
-rw-r--r-- | gtk2_ardour/luadialog.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk2_ardour/luadialog.h b/gtk2_ardour/luadialog.h index ccc85dd3a6..16ee513199 100644 --- a/gtk2_ardour/luadialog.h +++ b/gtk2_ardour/luadialog.h @@ -53,20 +53,24 @@ private: class LuaDialogWidget { public: - LuaDialogWidget (std::string const& key, std::string const& label) - : _key (key), _label (label) + LuaDialogWidget (std::string const& key, std::string const& label, int col = 0) + : _key (key), _label (label), _col (col) {} virtual ~LuaDialogWidget () {} virtual Gtk::Widget* widget () = 0; virtual void assign (luabridge::LuaRef* rv) const = 0; - std::string const& label () const { return _label; } - std::string const& key () const { return _key; } + std::string const& label () const { return _label; } + std::string const& key () const { return _key; } + int const& col () const { return _col; } + + void set_col (int col) { _col = col; } protected: std::string _key; std::string _label; + int _col; }; |