From 8854610aac91caaf6bb8db782cc4c9bd2ca53c52 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 10 Sep 2006 03:42:59 +0000 Subject: GUI redesigning. git-svn-id: http://svn.drobilla.net/lad/ingen@125 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingenuity/BreadCrumb.h | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'src/progs/ingenuity/BreadCrumb.h') diff --git a/src/progs/ingenuity/BreadCrumb.h b/src/progs/ingenuity/BreadCrumb.h index 9b4c25cd..66e6d40a 100644 --- a/src/progs/ingenuity/BreadCrumb.h +++ b/src/progs/ingenuity/BreadCrumb.h @@ -17,10 +17,12 @@ #ifndef BREADCRUMB_H #define BREADCRUMB_H +// FIXME: remove +#include +using std::cerr; using std::endl; + #include -#include "PatchWindow.h" -#include "PatchController.h" -#include "PatchModel.h" +#include "util/Path.h" namespace Ingenuity { @@ -32,19 +34,14 @@ namespace Ingenuity { class BreadCrumb : public Gtk::ToggleButton { public: - BreadCrumb(PatchWindow* window, const Path& path) - : m_window(window) - , m_path(path) + BreadCrumb(const Path& path) + : m_path(path) { set_border_width(0); set_path(path); - signal_clicked().connect(sigc::bind(sigc::mem_fun( - m_window, &PatchWindow::breadcrumb_clicked), this)); show_all(); } - //PatchController* patch() { return m_patch; } - void set_path(const Path& path) { remove(); @@ -55,12 +52,10 @@ public: add(*lab); } - Path& path() { return m_path; } + const Path& path() { return m_path; } private: - PatchWindow* m_window; - Path m_path; - //PatchController* m_patch; + Path m_path; }; } // namespace Ingenuity -- cgit v1.2.1