mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Bootstrap Strip Import Dialog
This commit is contained in:
parent
1bb0832159
commit
3b64d035e3
7 changed files with 90 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
|||
<menuitem action='AddTrackBus'/>
|
||||
<separator/>
|
||||
<menuitem action='addExistingAudioFiles'/>
|
||||
<menuitem action='ImportStrips'/>
|
||||
#ifdef PTFORMAT
|
||||
<menuitem action='addExistingPTFiles'/>
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -670,6 +670,7 @@ private:
|
|||
void save_session_as ();
|
||||
void archive_session ();
|
||||
void rename_session (bool for_unnamed);
|
||||
void import_strips ();
|
||||
|
||||
int create_mixer ();
|
||||
int create_editor ();
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@
|
|||
#include "gui_object.h"
|
||||
#include "gui_thread.h"
|
||||
#include "keyeditor.h"
|
||||
#include "strip_import_dialog.h"
|
||||
#include "library_download_dialog.h"
|
||||
#include "location_ui.h"
|
||||
#include "lua_script_manager.h"
|
||||
|
|
@ -998,6 +999,14 @@ ARDOUR_UI::create_rtawindow ()
|
|||
return rtawindow;
|
||||
}
|
||||
|
||||
void ARDOUR_UI::import_strips ()
|
||||
{
|
||||
if (_session) {
|
||||
StripImportDialog isd (_session);
|
||||
isd.run();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::handle_locations_change (Location *)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -257,6 +257,9 @@ ARDOUR_UI::install_actions ()
|
|||
act = ActionManager::register_action (main_actions, X_("ManageTemplates"), _("Templates"), sigc::mem_fun(*this, &ARDOUR_UI::manage_templates));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("ImportStrips"), _("Import Strips..."), sigc::mem_fun (*this, &ARDOUR_UI::import_strips));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
act = ActionManager::register_action (main_actions, X_("Metadata"), _("Metadata"));
|
||||
ActionManager::session_sensitive_actions.push_back (act);
|
||||
|
||||
|
|
|
|||
37
gtk2_ardour/strip_import_dialog.cc
Normal file
37
gtk2_ardour/strip_import_dialog.cc
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright (C) 2025 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 "strip_import_dialog.h"
|
||||
|
||||
#include "ardour/session.h"
|
||||
|
||||
#include "pbd/i18n.h"
|
||||
|
||||
using namespace Gtk;
|
||||
using namespace std;
|
||||
using namespace PBD;
|
||||
using namespace ARDOUR;
|
||||
|
||||
StripImportDialog::StripImportDialog (Session* s)
|
||||
: ArdourDialog (_("Import Track/Bus State"))
|
||||
{
|
||||
}
|
||||
|
||||
StripImportDialog::~StripImportDialog ()
|
||||
{
|
||||
}
|
||||
38
gtk2_ardour/strip_import_dialog.h
Normal file
38
gtk2_ardour/strip_import_dialog.h
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
/*
|
||||
* Copyright (C) 2025 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.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ytkmm/box.h>
|
||||
#include <ytkmm/filechooserwidget.h>
|
||||
#include <ytkmm/notebook.h>
|
||||
#include <ytkmm/table.h>
|
||||
|
||||
#include "ardour_dialog.h"
|
||||
|
||||
namespace ARDOUR
|
||||
{
|
||||
class Session;
|
||||
}
|
||||
|
||||
class StripImportDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
||||
{
|
||||
public:
|
||||
StripImportDialog (ARDOUR::Session*);
|
||||
~StripImportDialog ();
|
||||
};
|
||||
|
|
@ -304,6 +304,7 @@ gtk2_ardour_sources = [
|
|||
'stereo_panner.cc',
|
||||
'stereo_panner_editor.cc',
|
||||
'streamview.cc',
|
||||
'strip_import_dialog.cc',
|
||||
'strip_silence_dialog.cc',
|
||||
'stripable_colorpicker.cc',
|
||||
'stripable_time_axis.cc',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue