summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/BreadCrumb.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/BreadCrumb.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/BreadCrumb.h')
-rw-r--r--src/progs/ingenuity/BreadCrumb.h23
1 files changed, 9 insertions, 14 deletions
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 <iostream>
+using std::cerr; using std::endl;
+
#include <gtkmm.h>
-#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