Add SourceList to TriggerPage
This commit is contained in:
parent
c0ac99003b
commit
d4b436b4c5
@ -125,6 +125,7 @@ TriggerPage::TriggerPage ()
|
|||||||
|
|
||||||
_sidebar_vbox.pack_start (_sidebar_notebook);
|
_sidebar_vbox.pack_start (_sidebar_notebook);
|
||||||
add_sidebar_page (_("Clips"), _trigger_clip_picker);
|
add_sidebar_page (_("Clips"), _trigger_clip_picker);
|
||||||
|
add_sidebar_page (_("Sources"), _trigger_source_list.widget ());
|
||||||
add_sidebar_page (_("Regions"), _trigger_region_list.widget ());
|
add_sidebar_page (_("Regions"), _trigger_region_list.widget ());
|
||||||
|
|
||||||
/* Upper pane ([slot | strips] | file browser) */
|
/* Upper pane ([slot | strips] | file browser) */
|
||||||
@ -265,6 +266,7 @@ TriggerPage::set_session (Session* s)
|
|||||||
_cue_box.set_session (s);
|
_cue_box.set_session (s);
|
||||||
_trigger_clip_picker.set_session (s);
|
_trigger_clip_picker.set_session (s);
|
||||||
_master.set_session (s);
|
_master.set_session (s);
|
||||||
|
_trigger_source_list.set_session (s);
|
||||||
_trigger_region_list.set_session (s);
|
_trigger_region_list.set_session (s);
|
||||||
|
|
||||||
if (!_session) {
|
if (!_session) {
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
#include "slot_properties_box.h"
|
#include "slot_properties_box.h"
|
||||||
#include "trigger_clip_picker.h"
|
#include "trigger_clip_picker.h"
|
||||||
#include "trigger_region_list.h"
|
#include "trigger_region_list.h"
|
||||||
|
#include "trigger_source_list.h"
|
||||||
#include "trigger_master.h"
|
#include "trigger_master.h"
|
||||||
|
|
||||||
class TriggerStrip;
|
class TriggerStrip;
|
||||||
@ -104,6 +105,7 @@ private:
|
|||||||
Gtk::VBox _sidebar_vbox;
|
Gtk::VBox _sidebar_vbox;
|
||||||
Gtk::Notebook _sidebar_notebook;
|
Gtk::Notebook _sidebar_notebook;
|
||||||
TriggerClipPicker _trigger_clip_picker;
|
TriggerClipPicker _trigger_clip_picker;
|
||||||
|
TriggerSourceList _trigger_source_list;
|
||||||
TriggerRegionList _trigger_region_list;
|
TriggerRegionList _trigger_region_list;
|
||||||
|
|
||||||
CueBoxWidget _cue_box;
|
CueBoxWidget _cue_box;
|
||||||
|
37
gtk2_ardour/trigger_source_list.cc
Normal file
37
gtk2_ardour/trigger_source_list.cc
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* 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 "ardour/region.h"
|
||||||
|
#include "ardour/session.h"
|
||||||
|
|
||||||
|
#include "trigger_source_list.h"
|
||||||
|
|
||||||
|
#include "pbd/i18n.h"
|
||||||
|
|
||||||
|
using namespace Gtk;
|
||||||
|
|
||||||
|
TriggerSourceList::TriggerSourceList ()
|
||||||
|
{
|
||||||
|
add_name_column ();
|
||||||
|
setup_col (append_col (_columns.channels, "Chans "), 1, ALIGN_LEFT, _("# Ch"), _("# Channels in the region"));
|
||||||
|
add_tag_column ();
|
||||||
|
|
||||||
|
setup_col (append_col (_columns.captd_xruns, "1234567890"), 21, ALIGN_RIGHT, _("# Xruns"), _("Number of dropouts that occured during recording"));
|
||||||
|
setup_col (append_col (_columns.take_id, "2021-01-19 02:34:03"), 18, ALIGN_LEFT, _("Take ID"), _("Take ID"));
|
||||||
|
_display.get_column (0)->set_resizable (true);
|
||||||
|
}
|
29
gtk2_ardour/trigger_source_list.h
Normal file
29
gtk2_ardour/trigger_source_list.h
Normal 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_source_list_h_
|
||||||
|
#define _gtk_ardour_trigger_source_list_h_
|
||||||
|
|
||||||
|
#include "source_list_base.h"
|
||||||
|
|
||||||
|
class TriggerSourceList : public SourceListBase
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
TriggerSourceList ();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* _gtk_ardour_trigger_source_list_h_ */
|
@ -315,6 +315,7 @@ gtk2_ardour_sources = [
|
|||||||
'trigger_clip_picker.cc',
|
'trigger_clip_picker.cc',
|
||||||
'trigger_page.cc',
|
'trigger_page.cc',
|
||||||
'trigger_region_list.cc',
|
'trigger_region_list.cc',
|
||||||
|
'trigger_source_list.cc',
|
||||||
'trigger_strip.cc',
|
'trigger_strip.cc',
|
||||||
'trigger_master.cc',
|
'trigger_master.cc',
|
||||||
'trigger_ui.cc',
|
'trigger_ui.cc',
|
||||||
|
Loading…
Reference in New Issue
Block a user