summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PortPropertiesWindow.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-06 23:12:15 +0000
committerDavid Robillard <d@drobilla.net>2007-10-06 23:12:15 +0000
commitf2d5d172ff5f0ff02e6dfe0d0bd472b068192244 (patch)
treef6a03e0fdec83af952fb51112d3ecbaea210f2bf /src/libs/gui/PortPropertiesWindow.hpp
parent25fd375c074c45929f71d6b9ca4841882c832b05 (diff)
downloadingen-f2d5d172ff5f0ff02e6dfe0d0bd472b068192244.tar.gz
ingen-f2d5d172ff5f0ff02e6dfe0d0bd472b068192244.tar.bz2
ingen-f2d5d172ff5f0ff02e6dfe0d0bd472b068192244.zip
Access to object properties window via context menu (most importantly the port one, for control ranges).
git-svn-id: http://svn.drobilla.net/lad/ingen@833 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/PortPropertiesWindow.hpp')
-rw-r--r--src/libs/gui/PortPropertiesWindow.hpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/libs/gui/PortPropertiesWindow.hpp b/src/libs/gui/PortPropertiesWindow.hpp
index 8c8f1c96..5d10960d 100644
--- a/src/libs/gui/PortPropertiesWindow.hpp
+++ b/src/libs/gui/PortPropertiesWindow.hpp
@@ -27,8 +27,6 @@ using namespace Ingen::Client;
namespace Ingen {
namespace GUI {
-class ControlGroup;
-
/** Port properties window.
*
@@ -36,12 +34,12 @@ class ControlGroup;
*
* \ingroup GUI
*/
-class PortPropertiesWindow : public Gtk::Dialog
+class PortPropertiesWindow : public Gtk::Window
{
public:
PortPropertiesWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
- void init(ControlGroup* control, SharedPtr<PortModel> port_model);
+ void present(SharedPtr<PortModel> port_model);
private:
void metadata_update(const string& key, const Atom& value);
@@ -56,12 +54,12 @@ private:
float _initial_min;
float _initial_max;
- ControlGroup* _control;
- SharedPtr<PortModel> _port_model;
- Gtk::SpinButton* _min_spinner;
- Gtk::SpinButton* _max_spinner;
- Gtk::Button* _cancel_button;
- Gtk::Button* _ok_button;
+ SharedPtr<PortModel> _port_model;
+ Gtk::SpinButton* _min_spinner;
+ Gtk::SpinButton* _max_spinner;
+ Gtk::Button* _cancel_button;
+ Gtk::Button* _ok_button;
+ std::list<sigc::connection> _connections;
};
} // namespace GUI