13
0

Add RegionList to TriggerPage

This commit is contained in:
Robin Gareus 2022-01-18 03:39:49 +01:00
parent 37877fbdc2
commit c0ac99003b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
5 changed files with 64 additions and 0 deletions

View File

@ -125,6 +125,7 @@ TriggerPage::TriggerPage ()
_sidebar_vbox.pack_start (_sidebar_notebook);
add_sidebar_page (_("Clips"), _trigger_clip_picker);
add_sidebar_page (_("Regions"), _trigger_region_list.widget ());
/* Upper pane ([slot | strips] | file browser) */
_pane_upper.add (_strip_group_box);
@ -264,6 +265,7 @@ TriggerPage::set_session (Session* s)
_cue_box.set_session (s);
_trigger_clip_picker.set_session (s);
_master.set_session (s);
_trigger_region_list.set_session (s);
if (!_session) {
return;

View File

@ -40,6 +40,7 @@
#include "midi_trigger_properties_box.h"
#include "slot_properties_box.h"
#include "trigger_clip_picker.h"
#include "trigger_region_list.h"
#include "trigger_master.h"
class TriggerStrip;
@ -103,6 +104,7 @@ private:
Gtk::VBox _sidebar_vbox;
Gtk::Notebook _sidebar_notebook;
TriggerClipPicker _trigger_clip_picker;
TriggerRegionList _trigger_region_list;
CueBoxWidget _cue_box;
FittedCanvasWidget _master_widget;

View File

@ -0,0 +1,30 @@
/*
* Copyright (C) 2021 Robin Gareus <robin@gareus.org>
*
* This program 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.
*
* This program 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 more 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "trigger_region_list.h"
#include "pbd/i18n.h"
using namespace Gtk;
TriggerRegionList::TriggerRegionList ()
{
add_name_column ();
setup_col (append_col (_columns.channels, "Chans "), 1, ALIGN_LEFT, _("# Ch"), _("# Channels in the region"));
add_tag_column ();
}

View File

@ -0,0 +1,29 @@
/*
* Copyright (C) 2021 Robin Gareus <robin@gareus.org>
*
* This program 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.
*
* This program 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 more 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _gtk_ardour_trigger_region_list_h_
#define _gtk_ardour_trigger_region_list_h_
#include "region_list_base.h"
class TriggerRegionList : public RegionListBase
{
public:
TriggerRegionList ();
};
#endif /* _gtk_ardour_trigger_region_list_h_ */

View File

@ -314,6 +314,7 @@ gtk2_ardour_sources = [
'transpose_dialog.cc',
'trigger_clip_picker.cc',
'trigger_page.cc',
'trigger_region_list.cc',
'trigger_strip.cc',
'trigger_master.cc',
'trigger_ui.cc',