summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/RenameWindow.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-13 06:11:25 +0000
committerDavid Robillard <d@drobilla.net>2006-09-13 06:11:25 +0000
commite5675ebfeb93175e16762d0a078bd51d15d05f63 (patch)
tree189249ed9014e4c482cfaed0d6af28ced68570ca /src/progs/ingenuity/RenameWindow.h
parent23b7568ab7a87a79c186b8ddf3d3db4f1f934b06 (diff)
downloadingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.tar.gz
ingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.tar.bz2
ingen-e5675ebfeb93175e16762d0a078bd51d15d05f63.zip
Heavy-duty redesign of client library and GUI (now fully signal driven with clean Model/View separation).
Smarter, centralized window creation/management (should make window unification easy (panes?)). Typed metadata system, no more fugly string conversion of floats. Supports OSC fundamental types string, int, float, blob for now (though blob isn't working over the wire yet). git-svn-id: http://svn.drobilla.net/lad/ingen@131 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/RenameWindow.h')
-rw-r--r--src/progs/ingenuity/RenameWindow.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/progs/ingenuity/RenameWindow.h b/src/progs/ingenuity/RenameWindow.h
index af826f15..fe342100 100644
--- a/src/progs/ingenuity/RenameWindow.h
+++ b/src/progs/ingenuity/RenameWindow.h
@@ -19,16 +19,14 @@
#include <gtkmm.h>
#include <libglademm.h>
-
+#include "util/CountedPtr.h"
+#include "ObjectModel.h"
+using Ingen::Client::ObjectModel;
namespace Ingenuity {
-class GtkObjectController;
-
-/** 'New Patch' Window.
- *
- * Loaded by libglade as a derived object.
+/** Rename window. Handles renaming of any (Ingen) object.
*
* \ingroup Ingenuity
*/
@@ -37,14 +35,16 @@ class RenameWindow : public Gtk::Window
public:
RenameWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
- void set_object(GtkObjectController* object);
+ void present(CountedPtr<ObjectModel> object) { set_object(object); Gtk::Window::present(); }
private:
+ void set_object(CountedPtr<ObjectModel> object);
+
void name_changed();
void cancel_clicked();
void ok_clicked();
- GtkObjectController* m_object;
+ CountedPtr<ObjectModel> m_object;
Gtk::Entry* m_name_entry;
Gtk::Label* m_message_label;