summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PatchTreeWindow.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-05-04 03:59:38 +0000
committerDavid Robillard <d@drobilla.net>2007-05-04 03:59:38 +0000
commita96166710faf2447ed10194d1829db5564b0dff9 (patch)
tree4eb792fcceee17f188566fc6e6bee11e5a8c4336 /src/progs/ingenuity/PatchTreeWindow.h
parentcf14d321e8f084f742b03e09c086d5ef30297492 (diff)
downloadingen-a96166710faf2447ed10194d1829db5564b0dff9.tar.gz
ingen-a96166710faf2447ed10194d1829db5564b0dff9.tar.bz2
ingen-a96166710faf2447ed10194d1829db5564b0dff9.zip
Made engine, serialisation, client library, and GUI all dynamically loaded modules.
Combined all executables into a single "ingen" program which can do everything. git-svn-id: http://svn.drobilla.net/lad/ingen@493 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchTreeWindow.h')
-rw-r--r--src/progs/ingenuity/PatchTreeWindow.h110
1 files changed, 0 insertions, 110 deletions
diff --git a/src/progs/ingenuity/PatchTreeWindow.h b/src/progs/ingenuity/PatchTreeWindow.h
deleted file mode 100644
index c7fc3c10..00000000
--- a/src/progs/ingenuity/PatchTreeWindow.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
- *
- * Ingen is free software; you can redistribute it and/or modify it under the
- * terms of the GNU General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option) any later
- * version.
- *
- * Ingen is distributed in the hope that it will be useful, but WITHOUT ANY
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
- * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-#ifndef PATCHTREEWINDOW_H
-#define PATCHTREEWINDOW_H
-
-#include <gtkmm.h>
-#include <libglademm.h>
-#include <raul/Path.h>
-
-namespace Ingen { namespace Client {
- class Store;
-} }
-using Ingen::Client::Store;
-
-namespace Ingenuity {
-
-class PatchWindow;
-class PatchTreeView;
-
-
-/** Window with a TreeView of all loaded patches.
- *
- * \ingroup Ingenuity
- */
-class PatchTreeWindow : public Gtk::Window
-{
-public:
- PatchTreeWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
-
- void init(Store& store);
-
- void new_object(SharedPtr<ObjectModel> object);
-
- void patch_enabled(const Path& path);
- void patch_disabled(const Path& path);
- void patch_renamed(const Path& old_path, const Path& new_path);
-
- void add_patch(SharedPtr<PatchModel> pm);
- void remove_patch(const Path& path);
- void show_patch_menu(GdkEventButton* ev);
-
-protected:
- //void event_patch_selected();
- void event_patch_activated(const Gtk::TreeModel::Path& path, Gtk::TreeView::Column* col);
- void event_patch_enabled_toggled(const Glib::ustring& path_str);
-
- Gtk::TreeModel::iterator find_patch(Gtk::TreeModel::Children root, const Path& path);
-
- PatchTreeView* _patches_treeview;
-
- struct PatchTreeModelColumns : public Gtk::TreeModel::ColumnRecord
- {
- PatchTreeModelColumns()
- { add(name_col); add(enabled_col); add(patch_model_col); }
-
- Gtk::TreeModelColumn<Glib::ustring> name_col;
- Gtk::TreeModelColumn<bool> enabled_col;
- Gtk::TreeModelColumn<SharedPtr<PatchModel> > patch_model_col;
- };
-
- bool _enable_signal;
- PatchTreeModelColumns _patch_tree_columns;
- Glib::RefPtr<Gtk::TreeStore> _patch_treestore;
- Glib::RefPtr<Gtk::TreeSelection> _patch_tree_selection;
-};
-
-
-/** Derived TreeView class to support context menus for patches */
-class PatchTreeView : public Gtk::TreeView
-{
-public:
- PatchTreeView(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& xml)
- : Gtk::TreeView(cobject)
- {}
-
- void set_window(PatchTreeWindow* win) { _window = win; }
-
- bool on_button_press_event(GdkEventButton* ev) {
- bool ret = Gtk::TreeView::on_button_press_event(ev);
-
- if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3))
- _window->show_patch_menu(ev);
-
- return ret;
- }
-
-private:
- PatchTreeWindow* _window;
-
-}; // struct PatchTreeView
-
-
-} // namespace Ingenuity
-
-#endif // PATCHTREEWINDOW_H