summaryrefslogtreecommitdiffstats
path: root/src/gui/PropertiesWindow.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-03-28 01:35:27 +0000
committerDavid Robillard <d@drobilla.net>2015-03-28 01:35:27 +0000
commitf4d8b438532b3c090094b4060d6e0a2b2fba9d4d (patch)
tree40339fff10921ad264fff3ace8a04c4b52d7c505 /src/gui/PropertiesWindow.hpp
parentac60550c32598ad91f941722913f1629d5c9a35f (diff)
downloadingen-f4d8b438532b3c090094b4060d6e0a2b2fba9d4d.tar.gz
ingen-f4d8b438532b3c090094b4060d6e0a2b2fba9d4d.tar.bz2
ingen-f4d8b438532b3c090094b4060d6e0a2b2fba9d4d.zip
Improve properties window.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5646 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PropertiesWindow.hpp')
-rw-r--r--src/gui/PropertiesWindow.hpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/PropertiesWindow.hpp b/src/gui/PropertiesWindow.hpp
index 025c98ae..7111269a 100644
--- a/src/gui/PropertiesWindow.hpp
+++ b/src/gui/PropertiesWindow.hpp
@@ -76,12 +76,19 @@ private:
Gtk::TreeModelColumn<Glib::ustring> uri_col;
};
+ std::string active_property() const;
+
void add_property(const Raul::URI& uri,
const Atom& value);
Gtk::Widget* create_value_widget(const Raul::URI& uri,
const Atom& value);
+ Gtk::Menu* build_subclass_menu(const LilvNode* klass);
+ void add_class_menu_item(Gtk::Menu* menu, const LilvNode* klass);
+ void build_value_menu(Gtk::Menu* menu, const LilvNodes* ranges);
+ void set_tooltip(Gtk::Widget* widget, const LilvNode* node);
+
void reset();
void on_show();
@@ -89,6 +96,8 @@ private:
void property_removed(const Raul::URI& predicate, const Atom& value);
void value_edited(const Raul::URI& predicate);
void key_changed();
+ void uri_chosen(const std::string& uri);
+ bool value_clicked(GdkEvent* ev);
void add_clicked();
void cancel_clicked();
void apply_clicked();
@@ -100,14 +109,14 @@ private:
SPtr<const Client::ObjectModel> _model;
ComboColumns _combo_columns;
Glib::RefPtr<Gtk::ListStore> _key_store;
- Glib::RefPtr<Gtk::ListStore> _value_store;
sigc::connection _property_connection;
sigc::connection _property_removed_connection;
Gtk::VBox* _vbox;
Gtk::ScrolledWindow* _scrolledwindow;
Gtk::Table* _table;
Gtk::ComboBox* _key_combo;
- Gtk::ComboBox* _value_combo;
+ Gtk::Entry* _value_entry;
+ Gtk::Button* _value_button;
Gtk::Button* _add_button;
Gtk::Button* _cancel_button;
Gtk::Button* _apply_button;