summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PatchWindow.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-09-10 03:42:59 +0000
committerDavid Robillard <d@drobilla.net>2006-09-10 03:42:59 +0000
commit8854610aac91caaf6bb8db782cc4c9bd2ca53c52 (patch)
treeb92d385755eec2404309aba384850396bedf0184 /src/progs/ingenuity/PatchWindow.h
parenta90181962d3f9eca3e00f665465bbd66bdd79927 (diff)
downloadingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.tar.gz
ingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.tar.bz2
ingen-8854610aac91caaf6bb8db782cc4c9bd2ca53c52.zip
GUI redesigning.
git-svn-id: http://svn.drobilla.net/lad/ingen@125 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchWindow.h')
-rw-r--r--src/progs/ingenuity/PatchWindow.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/progs/ingenuity/PatchWindow.h b/src/progs/ingenuity/PatchWindow.h
index 291ea56b..07a3e92e 100644
--- a/src/progs/ingenuity/PatchWindow.h
+++ b/src/progs/ingenuity/PatchWindow.h
@@ -22,6 +22,7 @@
#include <gtkmm.h>
#include <libglademm/xml.h>
#include <libglademm.h>
+#include "util/Path.h"
using std::string; using std::list;
@@ -49,7 +50,7 @@ class NodeControlWindow;
class PatchDescriptionWindow;
class SubpatchModule;
class OmPort;
-class BreadCrumb;
+class BreadCrumbBox;
/** A window for a patch.
@@ -62,6 +63,7 @@ public:
PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& glade_xml);
~PatchWindow();
+ void patch(const Path& path);
void patch_controller(PatchController* pc);
PatchController* patch_controller() const { return m_patch; }
@@ -73,11 +75,11 @@ public:
void node_removed(const string& name);
void node_renamed(const string& old_path, const string& new_path);
void patch_renamed(const string& new_path);
- void rebuild_breadcrumbs();
- void breadcrumb_clicked(BreadCrumb* crumb);
-
+
Gtk::MenuItem* menu_view_control_window() { return m_menu_view_control_window; }
+ void claim_breadcrumbs();
+
protected:
void on_show();
void on_hide();
@@ -85,7 +87,6 @@ protected:
bool on_key_press_event(GdkEventKey* event);
private:
- //void event_open();
void event_import();
void event_save();
void event_save_as();
@@ -109,7 +110,6 @@ private:
int m_x;
int m_y;
- //Gtk::MenuItem* m_menu_open;
Gtk::MenuItem* m_menu_import;
Gtk::MenuItem* m_menu_save;
Gtk::MenuItem* m_menu_save_as;
@@ -122,18 +122,18 @@ private:
Gtk::MenuItem* m_menu_view_engine_window;
Gtk::MenuItem* m_menu_view_control_window;
Gtk::MenuItem* m_menu_view_patch_properties;
- /*Gtk::MenuItem* m_menu_add_plugin;
- Gtk::MenuItem* m_menu_new_subpatch;
- Gtk::MenuItem* m_menu_load_subpatch;*/
Gtk::MenuItem* m_menu_view_messages_window;
Gtk::MenuItem* m_menu_view_patch_tree_window;
Gtk::MenuItem* m_menu_help_about;
Gtk::VBox* m_vbox;
Gtk::Viewport* m_viewport;
- Gtk::HBox* m_breadcrumb_box;
- list<BreadCrumb*> m_breadcrumbs;
+ BreadCrumbBox* m_breadcrumb_box;
+
//Gtk::Statusbar* m_status_bar;
+
+ /** Invisible bin used to store breadcrumbs when not shown by a view */
+ Gtk::Alignment m_breadcrumb_bin;
};