Lumiera  0.pre.03
»edit your freedom«
patchbay-widget.cpp
Go to the documentation of this file.
1 /*
2  PatchbayWidget - display of the patchbay to control track placement parameters
3 
4  Copyright (C)
5  2016, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
14 
24 #include "stage/gtk-base.hpp"
25 #include "stage/style-scheme.hpp"
28 //#include "stage/ui-bus.hpp"
29 //#include "lib/format-string.hpp"
30 //#include "lib/format-cout.hpp"
31 
32 //#include "lib/util.hpp"
33 
34 //#include <algorithm>
35 //#include <vector>
36 
37 
38 
39 //using util::_Fmt;
40 //using util::contains;
41 using Gtk::Adjustment;
42 //using Gtk::Widget;
43 //using sigc::mem_fun;
44 //using sigc::ptr_fun;
45 //using std::cout;
46 //using std::endl;
47 
48 
49 namespace stage {
50 namespace timeline {
51 
52 
53 
54 
55 
56  PatchbayWidget::~PatchbayWidget() { }
57 
58 
73  PatchbayWidget::PatchbayWidget (PAdjustment const& vScroll)
74  : Gtk::ScrolledWindow{Gtk::Adjustment::create (0,0,0,0,0,0), vScroll}
75  {
76  get_style_context()->add_class (CLASS_timeline_pbay);
77  set_shadow_type (Gtk::SHADOW_NONE);
78  set_policy (Gtk::POLICY_NEVER, Gtk::POLICY_EXTERNAL); // horizontal extension is fixed, using the track body vertical scrollbar
79  property_expand() = true; // dynamically grab additional space
80  }
81 
82 
83  void
85  {
86  this->add (rootTrackHead);
87  }
88 
89  void
90  PatchbayWidget::disable()
91  {
92  this->remove();
93  }
94 
95 
96 
97 }}// namespace stage::timeline
Header pane control area corresponding to a Track with nested child Tracks.
Widget to hold the track head controls within the timeline header pane UI.
PatchbayWidget(PAdjustment const &vScroll)
Set up the patchbay area of the timeline UI.
Widget to represent a track head with placement parameters, within the timeline header pane...
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:37
Definition of access keys for uniform UI styling.
A set of basic GTK includes for the UI.
void installFork(TrackHeadWidget &rootTrackHead)