summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchBox.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-20 05:51:23 +0000
committerDavid Robillard <d@drobilla.net>2012-03-20 05:51:23 +0000
commit6720dc9cab2d0cb82ca7d45fb143ad4dfcafbf81 (patch)
treeda3df2cd6f430d9f43266353e941c84171c4fb8d /src/gui/PatchBox.cpp
parent0a84eeb07fcf02db803079bf5d4c97792ae76766 (diff)
downloadingen-6720dc9cab2d0cb82ca7d45fb143ad4dfcafbf81.tar.gz
ingen-6720dc9cab2d0cb82ca7d45fb143ad4dfcafbf81.tar.bz2
ingen-6720dc9cab2d0cb82ca7d45fb143ad4dfcafbf81.zip
Show entire UI (with menu and status bar) for LV2 UI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4091 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchBox.cpp')
-rw-r--r--src/gui/PatchBox.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/PatchBox.cpp b/src/gui/PatchBox.cpp
index 1a38e027..cd3478c7 100644
--- a/src/gui/PatchBox.cpp
+++ b/src/gui/PatchBox.cpp
@@ -41,6 +41,7 @@
#include "PatchView.hpp"
#include "PatchWindow.hpp"
#include "ThreadedLoader.hpp"
+#include "WidgetFactory.hpp"
#include "WindowFactory.hpp"
#include "ingen_config.h"
@@ -160,6 +161,17 @@ PatchBox::~PatchBox()
delete _breadcrumbs;
}
+SharedPtr<PatchBox>
+PatchBox::create(App& app, SharedPtr<const PatchModel> patch)
+{
+ PatchBox* result = NULL;
+ Glib::RefPtr<Gtk::Builder> xml = WidgetFactory::create("patch_win");
+ xml->get_widget_derived("patch_win_vbox", result);
+ result->init_box(app);
+ result->set_patch(patch, SharedPtr<PatchView>());
+ return SharedPtr<PatchBox>(result);
+}
+
void
PatchBox::init_box(App& app)
{
@@ -258,6 +270,7 @@ PatchBox::set_patch(SharedPtr<const PatchModel> patch,
show();
_alignment->show_all();
+ hide_documentation();
_view->signal_object_entered.connect(
sigc::mem_fun(this, &PatchBox::object_entered));
@@ -318,6 +331,7 @@ PatchBox::hide_documentation()
{
_doc_scrolledwindow->remove();
_doc_scrolledwindow->hide();
+ _doc_paned->set_position(INT_MAX);
}
void