summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchWindow.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
committerDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
commit198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch)
treeeb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/gui/PatchWindow.hpp
parent981c7950a6f5fc9f22decaee261556d20b641d5c (diff)
downloadingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.gz
ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.bz2
ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.zip
Make models const in client code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchWindow.hpp')
-rw-r--r--src/gui/PatchWindow.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/PatchWindow.hpp b/src/gui/PatchWindow.hpp
index aef759d4..420359a0 100644
--- a/src/gui/PatchWindow.hpp
+++ b/src/gui/PatchWindow.hpp
@@ -59,13 +59,13 @@ public:
Gtk::TextView* doc_textview() { return _doc_textview; }
void set_patch_from_path(const Raul::Path& path, SharedPtr<PatchView> view);
- void set_patch(SharedPtr<PatchModel> pc, SharedPtr<PatchView> view);
+ void set_patch(SharedPtr<const PatchModel> pc, SharedPtr<PatchView> view);
- SharedPtr<PatchModel> patch() const { return _patch; }
+ SharedPtr<const PatchModel> patch() const { return _patch; }
Gtk::MenuItem* menu_view_control_window() { return _menu_view_control_window; }
- void show_port_status(PortModel* model, const Raul::Atom& value);
+ void show_port_status(const PortModel* model, const Raul::Atom& value);
protected:
void on_show();
@@ -73,11 +73,11 @@ protected:
bool on_event(GdkEvent* event);
private:
- void patch_port_added(SharedPtr<PortModel> port);
- void patch_port_removed(SharedPtr<PortModel> port);
- void show_status(ObjectModel* model);
- void object_entered(ObjectModel* model);
- void object_left(ObjectModel* model);
+ void patch_port_added(SharedPtr<const PortModel> port);
+ void patch_port_removed(SharedPtr<const PortModel> port);
+ void show_status(const ObjectModel* model);
+ void object_entered(const ObjectModel* model);
+ void object_left(const ObjectModel* model);
void editable_changed(bool editable);
void event_import();
@@ -106,8 +106,8 @@ private:
void event_show_engine();
void event_clipboard_changed(GdkEventOwnerChange* ev);
- SharedPtr<PatchModel> _patch;
- SharedPtr<PatchView> _view;
+ SharedPtr<const PatchModel> _patch;
+ SharedPtr<PatchView> _view;
sigc::connection new_port_connection;
sigc::connection removed_port_connection;