diff options
author | David Robillard <d@drobilla.net> | 2006-10-04 21:45:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-10-04 21:45:20 +0000 |
commit | 30cb85c307b4c1273791721a782337742ade222c (patch) | |
tree | 020932d6f50ebbcd813c58f6f23e85a293587665 /src/progs/ingenuity/ControlGroups.h | |
parent | 32261ba465be203f973a0e126672b8d7188ba327 (diff) | |
download | ingen-30cb85c307b4c1273791721a782337742ade222c.tar.gz ingen-30cb85c307b4c1273791721a782337742ade222c.tar.bz2 ingen-30cb85c307b4c1273791721a782337742ade222c.zip |
Moved generic utility stuff to new library "raul".
git-svn-id: http://svn.drobilla.net/lad/ingen@156 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/ControlGroups.h')
-rw-r--r-- | src/progs/ingenuity/ControlGroups.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/progs/ingenuity/ControlGroups.h b/src/progs/ingenuity/ControlGroups.h index 3193fa71..48c638d3 100644 --- a/src/progs/ingenuity/ControlGroups.h +++ b/src/progs/ingenuity/ControlGroups.h @@ -22,7 +22,7 @@ #include <libglademm/xml.h> #include <libglademm.h> #include "PortModel.h" -#include "util/CountedPtr.h" +#include "raul/SharedPtr.h" namespace Ingen { namespace Client { class PortModel; } } using namespace Ingen::Client; @@ -39,11 +39,11 @@ class ControlPanel; class ControlGroup : public Gtk::VBox { public: - ControlGroup(ControlPanel* panel, CountedPtr<PortModel> pm, bool separator); + ControlGroup(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator); ~ControlGroup() { delete m_separator; } - inline const CountedPtr<PortModel> port_model() const { return m_port_model; } + inline const SharedPtr<PortModel> port_model() const { return m_port_model; } void remove_separator() { assert(m_has_separator); remove(*m_separator); delete m_separator; @@ -61,7 +61,7 @@ protected: virtual void metadata_update(const string& key, const Atom& value); ControlPanel* m_control_panel; - CountedPtr<PortModel> m_port_model; + SharedPtr<PortModel> m_port_model; bool m_has_separator; Gtk::HSeparator* m_separator; }; @@ -74,7 +74,7 @@ protected: class SliderControlGroup : public ControlGroup { public: - SliderControlGroup(ControlPanel* panel, CountedPtr<PortModel> pm, bool separator); + SliderControlGroup(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator); void enable(); void disable(); @@ -133,7 +133,7 @@ SliderControlGroup::set_value(const float val) class IntegerControlGroup : public ControlGroup { public: - IntegerControlGroup(ControlPanel* panel, CountedPtr<PortModel> pm, bool separator); + IntegerControlGroup(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator); void enable(); void disable(); @@ -158,7 +158,7 @@ private: class ToggleControlGroup : public ControlGroup { public: - ToggleControlGroup(ControlPanel* panel, CountedPtr<PortModel> pm, bool separator); + ToggleControlGroup(ControlPanel* panel, SharedPtr<PortModel> pm, bool separator); void enable(); void disable(); |