13
0

Trigger Cues: add to trigger page

This commit is contained in:
Ben Loftis 2021-12-07 15:47:23 -06:00
parent 0e26bd19c4
commit d20298549e
2 changed files with 17 additions and 1 deletions

View File

@ -35,6 +35,8 @@
#include "timers.h"
#include "trigger_page.h"
#include "trigger_strip.h"
#include "cuebox_ui.h"
#include "trigger_stopper.h"
#include "ui_config.h"
#include "utils.h"
@ -49,12 +51,20 @@ using namespace std;
TriggerPage::TriggerPage ()
: Tabbable (_content, _("Trigger Drom"), X_("trigger"))
, _stopper_widget(32, 16.)
{
load_bindings ();
register_actions ();
CueBoxWidget *cue_box = new CueBoxWidget(32, 8*16.);
cue_box->show();
_slot_area_box.pack_start (*cue_box, Gtk::PACK_SHRINK);
_stopper = new CueStopper(_stopper_widget.root());
_stopper->show();
_slot_area_box.pack_start (_stopper_widget, Gtk::PACK_SHRINK);
#if 1 /* Placeholders */
_slot_area_box.pack_start (*Gtk::manage (new Gtk::Label ("Fixed\nWidth\nSlot\nArea")));
_browser_box.pack_start (*Gtk::manage (new Gtk::Label ("File Browser")));
_parameter_box.pack_start (*Gtk::manage (new Gtk::Label ("Parameter HBox")));
_slot_area_box.show_all ();

View File

@ -29,7 +29,10 @@
#include "widgets/pane.h"
#include "widgets/tabbable.h"
#include "fitted_canvas_widget.h"
class TriggerStrip;
class CueStopper;
class TriggerPage : public ArdourWidgets::Tabbable, public ARDOUR::SessionHandlePtr, public PBD::ScopedConnectionList
{
@ -76,6 +79,9 @@ private:
Gtk::VBox _browser_box;
Gtk::HBox _parameter_box;
FittedCanvasWidget _stopper_widget;
CueStopper *_stopper;
std::list<TriggerStrip*> _strips;
sigc::connection _fast_screen_update_connection;
};