2005-09-25 14:42:24 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2005-2019 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com>
|
|
|
|
* Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
|
|
|
|
* Copyright (C) 2006-2007 Doug McLain <doug@nostar.net>
|
|
|
|
* Copyright (C) 2006-2011 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2007-2015 Tim Mayberry <mojofunk@gmail.com>
|
|
|
|
* Copyright (C) 2008 Hans Baier <hansfbaier@googlemail.com>
|
|
|
|
* Copyright (C) 2012-2015 Colin Fletcher <colin.m.fletcher@googlemail.com>
|
|
|
|
* Copyright (C) 2013-2015 Nick Mainsbridge <mainsbridge@gmail.com>
|
|
|
|
* Copyright (C) 2013-2016 John Emmas <john@creativepost.co.uk>
|
|
|
|
* Copyright (C) 2013-2019 Robin Gareus <robin@gareus.org>
|
|
|
|
* Copyright (C) 2014-2018 Ben Loftis <ben@harrisonconsoles.com>
|
|
|
|
* Copyright (C) 2017 Johannes Mueller <github@johannes-mueller.org>
|
|
|
|
* Copyright (C) 2018 Len Ovens <len@ovenwerks.net>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#ifndef __ardour_gui_h__
|
|
|
|
#define __ardour_gui_h__
|
|
|
|
|
2009-04-30 11:03:55 -04:00
|
|
|
#include <time.h>
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
/* need _BSD_SOURCE to get timersub macros */
|
|
|
|
|
|
|
|
#ifdef _BSD_SOURCE
|
|
|
|
#include <sys/time.h>
|
|
|
|
#else
|
|
|
|
#define _BSD_SOURCE
|
|
|
|
#include <sys/time.h>
|
|
|
|
#undef _BSD_SOURCE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
#include <cmath>
|
|
|
|
|
2005-09-25 22:09:02 -04:00
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "pbd/xml++.h"
|
2005-10-10 16:38:53 -04:00
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/frame.h>
|
|
|
|
#include <gtkmm/label.h>
|
|
|
|
#include <gtkmm/table.h>
|
|
|
|
#include <gtkmm/fixed.h>
|
|
|
|
#include <gtkmm/drawingarea.h>
|
|
|
|
#include <gtkmm/eventbox.h>
|
|
|
|
#include <gtkmm/menu.h>
|
|
|
|
#include <gtkmm/menuitem.h>
|
2017-07-16 22:55:52 -04:00
|
|
|
#include <gtkmm/messagedialog.h>
|
|
|
|
#include <gtkmm/notebook.h>
|
2005-10-10 16:38:53 -04:00
|
|
|
#include <gtkmm/button.h>
|
|
|
|
#include <gtkmm/togglebutton.h>
|
|
|
|
#include <gtkmm/treeview.h>
|
|
|
|
#include <gtkmm/menubar.h>
|
2007-10-11 18:07:47 -04:00
|
|
|
#include <gtkmm/textbuffer.h>
|
2005-10-10 16:38:53 -04:00
|
|
|
#include <gtkmm/adjustment.h>
|
2015-07-07 22:12:21 -04:00
|
|
|
|
|
|
|
#include "gtkmm2ext/gtk_ui.h"
|
|
|
|
#include "gtkmm2ext/bindings.h"
|
2016-05-10 10:03:45 -04:00
|
|
|
#include "gtkmm2ext/visibility_tracker.h"
|
2012-02-01 23:12:23 -05:00
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "ardour/ardour.h"
|
|
|
|
#include "ardour/types.h"
|
2009-10-30 11:30:22 -04:00
|
|
|
#include "ardour/utils.h"
|
2012-02-01 23:12:23 -05:00
|
|
|
#include "ardour/plugin.h"
|
2009-12-17 13:24:23 -05:00
|
|
|
#include "ardour/session_handle.h"
|
2014-03-13 11:50:44 -04:00
|
|
|
#include "ardour/system_exec.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2013-03-12 17:00:09 -04:00
|
|
|
#include "video_timeline.h"
|
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
#include "widgets/ardour_button.h"
|
|
|
|
#include "widgets/ardour_spacer.h"
|
|
|
|
|
2014-12-22 22:54:25 -05:00
|
|
|
#include "add_route_dialog.h"
|
2013-05-04 22:02:05 -04:00
|
|
|
#include "ardour_dialog.h"
|
|
|
|
#include "ardour_window.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
#include "editing.h"
|
2011-10-23 17:31:28 -04:00
|
|
|
#include "enums.h"
|
2016-12-19 21:11:21 -05:00
|
|
|
#include "mini_timeline.h"
|
2016-12-19 18:00:14 -05:00
|
|
|
#include "shuttle_control.h"
|
2019-10-09 22:50:34 -04:00
|
|
|
#include "startup_fsm.h"
|
2017-12-22 14:20:59 -05:00
|
|
|
#include "transport_control.h"
|
|
|
|
#include "transport_control_ui.h"
|
2011-10-29 16:07:00 -04:00
|
|
|
#include "visibility_group.h"
|
2013-05-04 22:02:05 -04:00
|
|
|
#include "window_manager.h"
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2014-12-22 22:54:25 -05:00
|
|
|
#ifdef COMPILER_MSVC
|
|
|
|
#include "about.h"
|
2013-09-26 05:58:07 -04:00
|
|
|
#include "add_video_dialog.h"
|
|
|
|
#include "big_clock_window.h"
|
2017-12-22 14:21:27 -05:00
|
|
|
#include "big_transport_window.h"
|
2013-09-26 05:58:07 -04:00
|
|
|
#include "bundle_manager.h"
|
2014-12-22 22:54:25 -05:00
|
|
|
#include "engine_dialog.h"
|
|
|
|
#include "export_video_dialog.h"
|
2013-09-26 05:58:07 -04:00
|
|
|
#include "global_port_matrix.h"
|
2017-03-15 06:34:05 -04:00
|
|
|
#include "idleometer.h"
|
2013-09-26 05:58:07 -04:00
|
|
|
#include "keyeditor.h"
|
|
|
|
#include "location_ui.h"
|
2016-02-28 05:58:47 -05:00
|
|
|
#include "lua_script_manager.h"
|
2018-09-24 18:12:42 -04:00
|
|
|
#include "plugin_dspload_window.h"
|
2013-09-26 05:58:07 -04:00
|
|
|
#include "rc_option_editor.h"
|
2016-08-22 08:40:12 -04:00
|
|
|
#include "route_dialogs.h"
|
2013-09-26 05:58:07 -04:00
|
|
|
#include "route_params_ui.h"
|
|
|
|
#include "session_option_editor.h"
|
|
|
|
#include "speaker_dialog.h"
|
2018-09-18 18:52:20 -04:00
|
|
|
#include "transport_masters_dialog.h"
|
2019-10-17 21:50:52 -04:00
|
|
|
#include "virtual_keyboard_window.h"
|
2014-12-22 22:54:25 -05:00
|
|
|
#else
|
|
|
|
class About;
|
|
|
|
class AddRouteDialog;
|
|
|
|
class AddVideoDialog;
|
|
|
|
class BigClockWindow;
|
2017-12-22 14:21:27 -05:00
|
|
|
class BigTransportWindow;
|
2014-12-22 22:54:25 -05:00
|
|
|
class BundleManager;
|
|
|
|
class EngineControl;
|
|
|
|
class ExportVideoDialog;
|
|
|
|
class KeyEditor;
|
|
|
|
class LocationUIWindow;
|
2016-02-28 05:58:47 -05:00
|
|
|
class LuaScriptManager;
|
2014-12-22 22:54:25 -05:00
|
|
|
class RCOptionEditor;
|
|
|
|
class RouteParams_UI;
|
|
|
|
class SessionOptionEditor;
|
|
|
|
class SpeakerDialog;
|
|
|
|
class GlobalPortMatrixWindow;
|
2017-03-15 06:34:05 -04:00
|
|
|
class IdleOMeter;
|
2018-09-24 18:12:42 -04:00
|
|
|
class PluginDSPLoadWindow;
|
2018-09-23 12:58:53 -04:00
|
|
|
class TransportMastersWindow;
|
2019-10-17 21:50:52 -04:00
|
|
|
class VirtualKeyboardWindow;
|
2014-12-22 22:54:25 -05:00
|
|
|
#endif
|
2013-09-26 05:58:07 -04:00
|
|
|
|
2013-03-12 17:00:09 -04:00
|
|
|
class VideoTimeLine;
|
2009-12-04 17:51:32 -05:00
|
|
|
class ArdourKeyboard;
|
2005-09-25 14:42:24 -04:00
|
|
|
class AudioClock;
|
2009-10-30 11:30:22 -04:00
|
|
|
class ConnectionEditor;
|
2015-11-14 10:29:50 -05:00
|
|
|
class DuplicateRouteDialog;
|
2012-05-31 19:14:03 -04:00
|
|
|
class MainClock;
|
2005-09-25 14:42:24 -04:00
|
|
|
class Mixer_UI;
|
2009-10-30 11:30:22 -04:00
|
|
|
class PublicEditor;
|
2015-04-22 14:11:00 -04:00
|
|
|
class SaveAsDialog;
|
2017-08-18 13:53:46 -04:00
|
|
|
class SaveTemplateDialog;
|
2013-09-23 14:41:52 -04:00
|
|
|
class SessionDialog;
|
2015-11-27 17:33:31 -05:00
|
|
|
class SessionOptionEditorWindow;
|
2008-01-18 22:49:52 -05:00
|
|
|
class Splash;
|
2016-12-19 21:11:21 -05:00
|
|
|
class TimeInfoBox;
|
2015-01-04 11:05:12 -05:00
|
|
|
class Meterbridge;
|
2016-02-23 09:42:13 -05:00
|
|
|
class LuaWindow;
|
2010-07-06 20:40:58 -04:00
|
|
|
class MidiTracer;
|
2013-08-15 06:35:33 -04:00
|
|
|
class NSM_Client;
|
2013-07-25 08:18:39 -04:00
|
|
|
class LevelMeterHBox;
|
2011-07-06 20:37:13 -04:00
|
|
|
class GUIObjectState;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
namespace ARDOUR {
|
2006-04-09 23:54:00 -04:00
|
|
|
class ControlProtocolInfo;
|
2009-10-30 11:30:22 -04:00
|
|
|
class IO;
|
|
|
|
class Port;
|
|
|
|
class Route;
|
|
|
|
class RouteGroup;
|
|
|
|
class Location;
|
2011-11-01 19:19:03 -04:00
|
|
|
class ProcessThread;
|
2006-07-27 21:08:57 -04:00
|
|
|
}
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2015-01-14 17:54:26 -05:00
|
|
|
namespace Gtk {
|
|
|
|
class ProgressBar;
|
|
|
|
}
|
|
|
|
|
2017-07-16 22:55:52 -04:00
|
|
|
namespace ArdourWidgets {
|
2017-07-16 23:18:48 -04:00
|
|
|
class Prompter;
|
2015-10-22 19:19:24 -04:00
|
|
|
class Tabbable;
|
|
|
|
}
|
|
|
|
|
2019-09-02 22:31:35 -04:00
|
|
|
#define MAX_LUA_ACTION_SCRIPTS 32
|
|
|
|
#define MAX_LUA_ACTION_BUTTONS 12
|
2018-10-03 21:57:09 -04:00
|
|
|
|
2018-12-10 08:33:31 -05:00
|
|
|
class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr, public TransportControlProvider
|
2005-09-25 14:42:24 -04:00
|
|
|
{
|
2016-05-05 21:09:20 -04:00
|
|
|
public:
|
2015-01-02 09:44:54 -05:00
|
|
|
ARDOUR_UI (int *argcp, char **argvp[], const char* localedir);
|
2005-09-25 14:42:24 -04:00
|
|
|
~ARDOUR_UI();
|
2005-12-02 14:18:26 -05:00
|
|
|
|
2010-06-02 10:36:10 -04:00
|
|
|
bool run_startup (bool should_be_new, std::string load_template);
|
2009-03-04 18:06:18 -05:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
void hide_splash ();
|
2008-01-18 22:49:52 -05:00
|
|
|
|
2010-11-25 15:37:39 -05:00
|
|
|
void launch_chat ();
|
|
|
|
void launch_manual ();
|
|
|
|
void launch_reference ();
|
2014-12-18 11:09:10 -05:00
|
|
|
void launch_tracker ();
|
2015-03-22 19:23:06 -04:00
|
|
|
void launch_subscribe ();
|
2014-12-18 11:09:10 -05:00
|
|
|
void launch_cheat_sheet ();
|
|
|
|
void launch_website ();
|
|
|
|
void launch_website_dev ();
|
|
|
|
void launch_forums ();
|
|
|
|
void launch_howto_report ();
|
2008-01-18 22:49:52 -05:00
|
|
|
void show_about ();
|
|
|
|
void hide_about ();
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2015-01-26 10:39:14 -05:00
|
|
|
void load_from_application_api (const std::string& path);
|
2008-12-12 09:43:24 -05:00
|
|
|
void finish();
|
|
|
|
|
2010-09-14 12:51:02 -04:00
|
|
|
int load_session (const std::string& path, const std::string& snapshot, std::string mix_template = std::string());
|
2017-06-30 21:10:50 -04:00
|
|
|
bool session_load_in_progress;
|
2020-03-24 12:38:24 -04:00
|
|
|
int build_session (std::string const& path, std::string const& snapshot, std::string const& session_template, ARDOUR::BusProfile const&, bool from_startup_fsm, bool unnamed);
|
2005-09-25 14:42:24 -04:00
|
|
|
bool session_is_new() const { return _session_is_new; }
|
|
|
|
|
2009-12-17 13:24:23 -05:00
|
|
|
ARDOUR::Session* the_session() { return _session; }
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2012-11-20 14:43:43 -05:00
|
|
|
bool get_smart_mode () const;
|
2015-10-05 10:17:49 -04:00
|
|
|
|
2018-02-09 10:59:39 -05:00
|
|
|
RCOptionEditor* get_rc_option_editor() { return rc_option_editor; }
|
|
|
|
void show_tabbable (ArdourWidgets::Tabbable*);
|
|
|
|
|
2019-11-01 17:48:16 -04:00
|
|
|
void start_session_load (bool create_new);
|
2019-10-09 22:52:26 -04:00
|
|
|
void session_dialog_response_handler (int response, SessionDialog* session_dialog);
|
2020-01-09 17:51:53 -05:00
|
|
|
void build_session_from_dialog (SessionDialog&, std::string const& session_name, std::string const& session_path, std::string const& session_template);
|
2010-09-14 12:51:02 -04:00
|
|
|
bool ask_about_loading_existing_session (const std::string& session_path);
|
2019-10-10 17:24:20 -04:00
|
|
|
int load_session_from_startup_fsm ();
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2007-05-17 22:41:10 -04:00
|
|
|
/// @return true if session was successfully unloaded.
|
2007-10-11 18:07:47 -04:00
|
|
|
int unload_session (bool hide_stuff = false);
|
2008-08-04 18:37:24 -04:00
|
|
|
void close_session();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2010-04-20 22:24:38 -04:00
|
|
|
int save_state_canfail (std::string state_name = "", bool switch_to_it = false);
|
|
|
|
void save_state (const std::string & state_name = "", bool switch_to_it = false);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
static ARDOUR_UI *instance () { return theArdourUI; }
|
2015-10-05 10:17:49 -04:00
|
|
|
|
2016-05-21 08:34:09 -04:00
|
|
|
/* signal emitted when escape key is pressed. All UI components that
|
|
|
|
need to respond to Escape in some way (e.g. break drag, clear
|
|
|
|
selection, etc) should connect to and handle this.
|
|
|
|
*/
|
|
|
|
PBD::Signal0<void> Escape;
|
|
|
|
|
2015-02-03 14:33:22 -05:00
|
|
|
PublicEditor& the_editor() { return *editor;}
|
2005-09-25 14:42:24 -04:00
|
|
|
Mixer_UI* the_mixer() { return mixer; }
|
2008-01-10 16:20:59 -05:00
|
|
|
|
2019-03-07 11:02:12 -05:00
|
|
|
Gtk::Menu* shared_popup_menu ();
|
|
|
|
|
2010-07-07 21:21:22 -04:00
|
|
|
void new_midi_tracer_window ();
|
2006-01-19 13:05:31 -05:00
|
|
|
void toggle_editing_space();
|
2014-03-21 08:45:00 -04:00
|
|
|
void toggle_mixer_space();
|
2010-07-23 19:29:36 -04:00
|
|
|
void toggle_keep_tearoffs();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-09-06 16:17:08 -04:00
|
|
|
void reset_focus (Gtk::Widget*);
|
|
|
|
|
2011-03-26 16:11:28 -04:00
|
|
|
static PublicEditor* _instance;
|
2014-08-30 14:57:22 -04:00
|
|
|
|
2017-09-18 12:39:17 -04:00
|
|
|
/** Emitted frequently with the audible sample, false, and the edit point as
|
2011-01-19 15:54:51 -05:00
|
|
|
* parameters respectively.
|
2013-07-11 08:50:33 -04:00
|
|
|
*
|
|
|
|
* (either RapidScreenUpdate || SuperRapidScreenUpdate - user-config)
|
2011-01-19 15:54:51 -05:00
|
|
|
*/
|
2017-11-22 16:10:37 -05:00
|
|
|
static sigc::signal<void, samplepos_t> Clock;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2013-05-02 21:13:36 -04:00
|
|
|
static void close_all_dialogs () { CloseAllDialogs(); }
|
2016-05-05 21:09:20 -04:00
|
|
|
static sigc::signal<void> CloseAllDialogs;
|
2013-05-02 21:13:36 -04:00
|
|
|
|
2015-07-09 19:22:06 -04:00
|
|
|
XMLNode* main_window_settings() const;
|
2005-09-25 14:42:24 -04:00
|
|
|
XMLNode* editor_settings() const;
|
2016-07-13 16:38:08 -04:00
|
|
|
XMLNode* preferences_settings() const;
|
2005-09-25 14:42:24 -04:00
|
|
|
XMLNode* mixer_settings () const;
|
|
|
|
XMLNode* keyboard_settings () const;
|
2010-11-25 15:37:39 -05:00
|
|
|
XMLNode* tearoff_settings (const char*) const;
|
2015-10-26 14:35:06 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
void save_ardour_state ();
|
|
|
|
gboolean configure_handler (GdkEventConfigure* conf);
|
|
|
|
|
|
|
|
void halt_on_xrun_message ();
|
2017-09-18 12:39:17 -04:00
|
|
|
void xrun_handler (samplepos_t);
|
|
|
|
void create_xrun_marker (samplepos_t);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2011-07-06 20:37:13 -04:00
|
|
|
GUIObjectState* gui_object_state;
|
2015-10-05 10:17:49 -04:00
|
|
|
|
2012-05-31 19:14:03 -04:00
|
|
|
MainClock* primary_clock;
|
|
|
|
MainClock* secondary_clock;
|
2011-11-20 11:38:51 -05:00
|
|
|
void focus_on_clock ();
|
2013-05-04 22:02:05 -04:00
|
|
|
AudioClock* big_clock;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2013-03-12 17:00:09 -04:00
|
|
|
VideoTimeLine *video_timeline;
|
|
|
|
|
2007-01-09 18:24:54 -05:00
|
|
|
void store_clock_modes ();
|
|
|
|
void restore_clock_modes ();
|
2009-12-01 08:23:27 -05:00
|
|
|
void reset_main_clocks ();
|
2007-01-09 18:24:54 -05:00
|
|
|
|
2010-11-25 15:37:39 -05:00
|
|
|
void synchronize_sync_source_and_video_pullup ();
|
2010-08-30 21:49:33 -04:00
|
|
|
|
2016-05-05 21:08:46 -04:00
|
|
|
void add_route ();
|
2017-06-02 18:23:00 -04:00
|
|
|
void add_route_dialog_response (int);
|
2016-04-23 11:55:58 -04:00
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
void add_routes_part_two ();
|
|
|
|
void add_routes_thread ();
|
2013-04-11 13:49:29 -04:00
|
|
|
|
2015-11-14 10:29:50 -05:00
|
|
|
void start_duplicate_routes ();
|
2015-11-13 16:14:42 -05:00
|
|
|
|
2013-03-12 17:00:09 -04:00
|
|
|
void add_video (Gtk::Window* float_window);
|
2013-03-29 04:46:29 -04:00
|
|
|
void remove_video ();
|
2013-03-12 17:00:09 -04:00
|
|
|
void start_video_server_menu (Gtk::Window* float_window);
|
|
|
|
bool start_video_server (Gtk::Window* float_window, bool popup_msg);
|
|
|
|
void stop_video_server (bool ask_confirm=false);
|
|
|
|
void flush_videotimeline_cache (bool localcacheonly=false);
|
2015-02-27 17:17:26 -05:00
|
|
|
void export_video (bool range = false);
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2018-11-01 16:13:06 -04:00
|
|
|
void session_add_audio_route (bool, int32_t, int32_t, ARDOUR::TrackMode, ARDOUR::RouteGroup *,
|
|
|
|
uint32_t, std::string const &, bool, ARDOUR::PresentationInfo::order_t order);
|
2017-08-17 17:41:22 -04:00
|
|
|
|
2016-05-17 08:21:05 -04:00
|
|
|
void session_add_midi_route (bool, ARDOUR::RouteGroup *, uint32_t, std::string const &, bool,
|
|
|
|
ARDOUR::PluginInfoPtr, ARDOUR::Plugin::PresetRecord*,
|
|
|
|
ARDOUR::PresentationInfo::order_t order);
|
2017-08-17 17:41:22 -04:00
|
|
|
|
2019-08-06 16:16:44 -04:00
|
|
|
void session_add_foldback_bus (int32_t, uint32_t, std::string const &);
|
2018-11-01 16:13:06 -04:00
|
|
|
|
2016-03-28 12:07:43 -04:00
|
|
|
void display_insufficient_ports_message ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-03-15 23:41:19 -04:00
|
|
|
void attach_to_engine ();
|
2007-10-11 18:07:47 -04:00
|
|
|
void post_engine ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
gint exit_on_main_window_close (GdkEventAny *);
|
|
|
|
|
2012-06-13 00:21:46 -04:00
|
|
|
void maximise_editing_space ();
|
|
|
|
void restore_editing_space ();
|
|
|
|
|
2014-07-14 13:19:52 -04:00
|
|
|
void show_ui_prefs ();
|
|
|
|
|
2015-09-26 23:15:32 -04:00
|
|
|
bool check_audioengine(Gtk::Window&);
|
2015-09-26 06:43:47 -04:00
|
|
|
|
2007-04-12 19:20:37 -04:00
|
|
|
void setup_profile ();
|
2010-02-08 19:50:24 -05:00
|
|
|
void setup_tooltips ();
|
2007-04-12 19:20:37 -04:00
|
|
|
|
2007-10-11 18:07:47 -04:00
|
|
|
void set_shuttle_fract (double);
|
|
|
|
|
2011-11-01 19:19:03 -04:00
|
|
|
void get_process_buffers ();
|
|
|
|
void drop_process_buffers ();
|
|
|
|
|
2013-07-24 16:04:46 -04:00
|
|
|
void reset_peak_display ();
|
|
|
|
void reset_route_peak_display (ARDOUR::Route*);
|
|
|
|
void reset_group_peak_display (ARDOUR::RouteGroup*);
|
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
const std::string& announce_string() const { return _announce_string; }
|
2013-03-08 11:41:45 -05:00
|
|
|
|
2015-02-08 10:18:39 -05:00
|
|
|
void hide_application ();
|
2013-09-17 21:07:14 -04:00
|
|
|
|
2015-04-21 15:10:49 -04:00
|
|
|
Gtk::Notebook& tabs();
|
2015-07-07 22:12:21 -04:00
|
|
|
Gtk::Window& main_window () { return _main_window; }
|
|
|
|
|
|
|
|
void setup_toplevel_window (Gtk::Window&, const std::string& name, void* owner);
|
2015-10-26 14:35:06 -04:00
|
|
|
|
2015-04-21 15:10:49 -04:00
|
|
|
/* called from a static C function */
|
|
|
|
|
2015-07-07 22:12:21 -04:00
|
|
|
GtkNotebook* tab_window_root_drop (GtkNotebook* src,
|
|
|
|
GtkWidget* w,
|
|
|
|
gint x,
|
|
|
|
gint y,
|
|
|
|
gpointer user_data);
|
|
|
|
|
|
|
|
bool tabbed_window_state_event_handler (GdkEventWindowState*, void* object);
|
2015-07-08 12:45:57 -04:00
|
|
|
bool key_event_handler (GdkEventKey*, Gtk::Window* window);
|
2015-07-07 22:12:21 -04:00
|
|
|
|
2016-08-22 09:41:53 -04:00
|
|
|
ARDOUR::PresentationInfo::order_t translate_order (RouteDialogs::InsertAt);
|
|
|
|
|
2017-08-18 14:41:35 -04:00
|
|
|
std::map<std::string, std::string> route_setup_info (const std::string& script_path);
|
|
|
|
|
2019-10-24 23:12:37 -04:00
|
|
|
void gui_idle_handler ();
|
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
protected:
|
2005-09-25 14:42:24 -04:00
|
|
|
friend class PublicEditor;
|
|
|
|
|
2018-12-03 19:55:52 -05:00
|
|
|
void toggle_use_monitor_section ();
|
|
|
|
void monitor_dim_all ();
|
|
|
|
void monitor_cut_all ();
|
|
|
|
void monitor_mono ();
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
void toggle_auto_play ();
|
|
|
|
void toggle_auto_input ();
|
2008-03-17 16:54:03 -04:00
|
|
|
void toggle_punch ();
|
|
|
|
void unset_dual_punch ();
|
|
|
|
bool ignore_dual_punch;
|
2005-09-25 14:42:24 -04:00
|
|
|
void toggle_punch_in ();
|
|
|
|
void toggle_punch_out ();
|
2017-01-16 13:54:20 -05:00
|
|
|
void toggle_session_monitoring_in ();
|
|
|
|
void toggle_session_monitoring_disk ();
|
2009-10-20 17:58:46 -04:00
|
|
|
void show_loop_punch_ruler_and_disallow_hide ();
|
|
|
|
void reenable_hide_loop_punch_ruler_if_appropriate ();
|
2015-06-25 12:47:29 -04:00
|
|
|
void toggle_auto_return ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void toggle_click ();
|
|
|
|
void toggle_session_auto_loop ();
|
2009-05-13 20:13:27 -04:00
|
|
|
void toggle_rc_options_window ();
|
2009-05-15 21:22:43 -04:00
|
|
|
void toggle_session_options_window ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
private:
|
2017-12-22 14:20:59 -05:00
|
|
|
|
2015-07-07 22:12:21 -04:00
|
|
|
Gtk::Window _main_window;
|
2016-05-10 10:03:45 -04:00
|
|
|
Gtkmm2ext::VisibilityTracker* main_window_visibility;
|
2015-07-07 22:12:21 -04:00
|
|
|
Gtk::VBox main_vpacker;
|
|
|
|
Gtk::HBox status_bar_hpacker;
|
|
|
|
Gtk::Notebook _tabs;
|
|
|
|
PublicEditor* editor;
|
|
|
|
Mixer_UI* mixer;
|
|
|
|
Gtk::Tooltips _tooltips;
|
|
|
|
NSM_Client* nsm;
|
|
|
|
bool _was_dirty;
|
2016-05-05 21:09:20 -04:00
|
|
|
bool _mixer_on_top;
|
2015-07-07 22:12:21 -04:00
|
|
|
|
2019-03-07 11:02:12 -05:00
|
|
|
Gtk::Menu* _shared_popup_menu;
|
|
|
|
|
2017-07-16 22:55:52 -04:00
|
|
|
void hide_tabbable (ArdourWidgets::Tabbable*);
|
|
|
|
void detach_tabbable (ArdourWidgets::Tabbable*);
|
|
|
|
void attach_tabbable (ArdourWidgets::Tabbable*);
|
|
|
|
void button_change_tabbable_visibility (ArdourWidgets::Tabbable*);
|
|
|
|
void key_change_tabbable_visibility (ArdourWidgets::Tabbable*);
|
2015-11-20 14:19:22 -05:00
|
|
|
void toggle_editor_and_mixer ();
|
2016-05-16 07:30:28 -04:00
|
|
|
|
2017-07-16 22:55:52 -04:00
|
|
|
void tabbable_state_change (ArdourWidgets::Tabbable&);
|
2015-10-26 14:35:06 -04:00
|
|
|
|
2013-06-19 04:25:18 -04:00
|
|
|
void toggle_meterbridge ();
|
2016-02-23 09:42:13 -05:00
|
|
|
void toggle_luawindow ();
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
int setup_windows ();
|
|
|
|
void setup_transport ();
|
|
|
|
void setup_clock ();
|
|
|
|
|
|
|
|
static ARDOUR_UI *theArdourUI;
|
2015-11-29 11:04:40 -05:00
|
|
|
SessionDialog *_session_dialog;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2019-10-09 22:50:34 -04:00
|
|
|
StartupFSM* startup_fsm;
|
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
int starting ();
|
2019-10-03 19:23:57 -04:00
|
|
|
int nsm_init ();
|
2019-10-09 22:50:34 -04:00
|
|
|
void startup_done ();
|
|
|
|
void sfsm_response (StartupFSM::Result);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2020-01-09 17:51:53 -05:00
|
|
|
int ask_about_saving_session (const std::vector<std::string>& actions);
|
|
|
|
|
|
|
|
void audio_midi_setup_reconfigure_done (int response, std::string path, std::string snapshot, std::string mix_template);
|
|
|
|
int load_session_stage_two (const std::string& path, const std::string& snapshot, std::string mix_template = std::string());
|
2020-03-24 12:38:24 -04:00
|
|
|
void audio_midi_setup_for_new_session_done (int response, std::string path, std::string snapshot, std::string session_template, ARDOUR::BusProfile const&, bool unnamed);
|
|
|
|
int build_session_stage_two (std::string const& path, std::string const& snapshot, std::string const& session_template, ARDOUR::BusProfile const&, bool unnamed);
|
2020-01-09 17:51:53 -05:00
|
|
|
sigc::connection _engine_dialog_connection;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2015-01-24 19:17:13 -05:00
|
|
|
void save_session_at_its_request (std::string);
|
2007-04-22 14:01:10 -04:00
|
|
|
/* periodic safety backup, to be precise */
|
|
|
|
gint autosave_session();
|
|
|
|
void update_autosave();
|
|
|
|
sigc::connection _autosave_connection;
|
|
|
|
|
2015-07-09 13:56:12 -04:00
|
|
|
void session_dirty_changed ();
|
|
|
|
void update_title ();
|
2015-10-26 14:35:06 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
void map_transport_state ();
|
|
|
|
int32_t do_engine_start ();
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2010-04-20 22:24:38 -04:00
|
|
|
void engine_halted (const char* reason, bool free_reason);
|
2005-09-25 14:42:24 -04:00
|
|
|
void engine_stopped ();
|
2019-01-16 16:29:25 -05:00
|
|
|
void engine_running (uint32_t cnt);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2006-03-28 14:22:29 -05:00
|
|
|
void use_config ();
|
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
void about_signal_response(int response);
|
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
Gtk::VBox top_packer;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2005-09-25 16:33:00 -04:00
|
|
|
sigc::connection clock_signal_connection;
|
2005-09-25 14:42:24 -04:00
|
|
|
void update_clocks ();
|
|
|
|
void start_clocking ();
|
|
|
|
void stop_clocking ();
|
|
|
|
|
2017-09-18 12:39:17 -04:00
|
|
|
void update_transport_clocks (samplepos_t pos);
|
2007-01-09 18:24:54 -05:00
|
|
|
void record_state_changed ();
|
|
|
|
|
2010-07-07 21:21:22 -04:00
|
|
|
std::list<MidiTracer*> _midi_tracer_windows;
|
2010-07-06 20:40:58 -04:00
|
|
|
|
2014-10-16 13:31:20 -04:00
|
|
|
/* Transport Control */
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-12-11 11:24:30 -05:00
|
|
|
Gtk::Table transport_table;
|
2017-09-18 14:45:56 -04:00
|
|
|
Gtk::Frame transport_frame;
|
2005-09-25 14:42:24 -04:00
|
|
|
Gtk::HBox transport_hbox;
|
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourVSpacer* secondary_clock_spacer;
|
2016-12-19 21:11:21 -05:00
|
|
|
void repack_transport_hbox ();
|
2016-12-21 17:01:34 -05:00
|
|
|
void update_clock_visibility ();
|
2014-07-03 13:25:35 -04:00
|
|
|
void toggle_follow_edits ();
|
2007-03-18 02:07:08 -04:00
|
|
|
|
2017-02-21 09:44:12 -05:00
|
|
|
void set_transport_controllable_state (const XMLNode&);
|
|
|
|
XMLNode& get_transport_controllable_state ();
|
|
|
|
|
2017-12-22 14:20:59 -05:00
|
|
|
TransportControlUI transport_ctrl;
|
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourButton punch_in_button;
|
|
|
|
ArdourWidgets::ArdourButton punch_out_button;
|
|
|
|
ArdourWidgets::ArdourButton layered_button;
|
2016-12-11 11:24:30 -05:00
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourVSpacer recpunch_spacer;
|
|
|
|
ArdourWidgets::ArdourVSpacer monitoring_spacer;
|
2019-09-28 19:23:48 -04:00
|
|
|
ArdourWidgets::ArdourVSpacer latency_spacer;
|
2017-01-16 15:58:53 -05:00
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourButton monitor_in_button;
|
|
|
|
ArdourWidgets::ArdourButton monitor_disk_button;
|
|
|
|
ArdourWidgets::ArdourButton auto_input_button;
|
2017-01-16 13:54:20 -05:00
|
|
|
|
2016-12-11 11:24:30 -05:00
|
|
|
Gtk::Label punch_label;
|
|
|
|
Gtk::Label layered_label;
|
2012-02-02 23:18:30 -05:00
|
|
|
|
2017-01-16 15:58:53 -05:00
|
|
|
Gtk::Label punch_space;
|
|
|
|
Gtk::Label mon_space;
|
|
|
|
|
2009-11-09 23:30:08 -05:00
|
|
|
void toggle_external_sync ();
|
2005-12-31 13:20:42 -05:00
|
|
|
void toggle_time_master ();
|
2006-08-31 15:17:00 -04:00
|
|
|
void toggle_video_sync ();
|
2005-12-31 13:20:42 -05:00
|
|
|
|
2019-09-28 19:23:48 -04:00
|
|
|
|
|
|
|
ArdourWidgets::ArdourButton latency_disable_button;
|
|
|
|
|
|
|
|
Gtk::Label route_latency_value;
|
|
|
|
Gtk::Label io_latency_label;
|
|
|
|
Gtk::Label io_latency_value;
|
|
|
|
|
2018-01-14 12:41:21 -05:00
|
|
|
ShuttleControl shuttle_box;
|
|
|
|
MiniTimeline mini_timeline;
|
|
|
|
TimeInfoBox* time_info_box;
|
2018-02-16 10:35:44 -05:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2018-02-14 15:47:00 -05:00
|
|
|
ArdourWidgets::ArdourVSpacer meterbox_spacer;
|
2018-02-14 16:05:49 -05:00
|
|
|
ArdourWidgets::ArdourVSpacer meterbox_spacer2;
|
2018-02-14 13:55:48 -05:00
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourButton auto_return_button;
|
|
|
|
ArdourWidgets::ArdourButton follow_edits_button;
|
|
|
|
ArdourWidgets::ArdourButton sync_button;
|
2007-03-18 02:07:08 -04:00
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourButton auditioning_alert_button;
|
|
|
|
ArdourWidgets::ArdourButton solo_alert_button;
|
|
|
|
ArdourWidgets::ArdourButton feedback_alert_button;
|
|
|
|
ArdourWidgets::ArdourButton error_alert_button;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2019-09-02 22:31:35 -04:00
|
|
|
ArdourWidgets::ArdourButton action_script_call_btn[MAX_LUA_ACTION_BUTTONS];
|
2016-04-24 18:16:08 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
Gtk::VBox alert_box;
|
2020-04-10 17:36:17 -04:00
|
|
|
|
2018-02-14 15:47:00 -05:00
|
|
|
Gtk::Table editor_meter_table;
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourButton editor_meter_peak_display;
|
|
|
|
LevelMeterHBox * editor_meter;
|
2020-04-10 17:36:17 -04:00
|
|
|
|
|
|
|
bool _clear_editor_meter;
|
|
|
|
bool _editor_meter_peaked;
|
|
|
|
bool editor_meter_peak_button_release (GdkEventButton*);
|
2006-06-30 04:03:43 -04:00
|
|
|
|
2014-12-25 10:02:00 -05:00
|
|
|
void blink_handler (bool);
|
|
|
|
sigc::connection blink_connection;
|
|
|
|
|
2015-10-02 07:32:49 -04:00
|
|
|
void cancel_solo ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void solo_blink (bool);
|
2009-11-09 15:05:18 -05:00
|
|
|
void sync_blink (bool);
|
2005-09-25 14:42:24 -04:00
|
|
|
void audition_blink (bool);
|
2011-11-11 08:52:27 -05:00
|
|
|
void feedback_blink (bool);
|
2015-03-14 12:28:20 -04:00
|
|
|
void error_blink (bool);
|
2015-10-05 10:17:49 -04:00
|
|
|
|
2014-08-27 11:55:01 -04:00
|
|
|
void set_flat_buttons();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void soloing_changed (bool);
|
|
|
|
void auditioning_changed (bool);
|
|
|
|
void _auditioning_changed (bool);
|
2015-10-05 10:17:49 -04:00
|
|
|
|
2010-03-19 16:53:22 -04:00
|
|
|
bool solo_alert_press (GdkEventButton* ev);
|
2016-12-11 11:24:30 -05:00
|
|
|
void audition_alert_clicked ();
|
2015-03-14 12:28:20 -04:00
|
|
|
bool error_alert_press (GdkEventButton *);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-12-12 15:48:29 -05:00
|
|
|
void layered_button_clicked ();
|
|
|
|
|
2008-01-10 16:20:59 -05:00
|
|
|
void big_clock_value_changed ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void primary_clock_value_changed ();
|
|
|
|
void secondary_clock_value_changed ();
|
|
|
|
|
|
|
|
/* called by Blink signal */
|
|
|
|
|
|
|
|
void transport_rec_enable_blink (bool onoff);
|
|
|
|
|
|
|
|
/* menu bar and associated stuff */
|
|
|
|
|
2005-10-06 14:24:23 -04:00
|
|
|
Gtk::MenuBar* menu_bar;
|
2005-12-21 16:37:18 -05:00
|
|
|
Gtk::EventBox menu_bar_base;
|
2005-10-06 14:24:23 -04:00
|
|
|
Gtk::HBox menu_hbox;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-10-11 18:07:47 -04:00
|
|
|
void use_menubar_as_top_menubar ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void build_menu_bar ();
|
|
|
|
|
|
|
|
Gtk::Label wall_clock_label;
|
|
|
|
gint update_wall_clock ();
|
|
|
|
|
2018-02-20 06:15:29 -05:00
|
|
|
Gtk::Label disk_space_label;
|
2005-09-25 14:42:24 -04:00
|
|
|
void update_disk_space ();
|
2018-02-20 06:15:29 -05:00
|
|
|
void format_disk_space_label (float);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2012-10-12 12:25:57 -04:00
|
|
|
Gtk::Label timecode_format_label;
|
|
|
|
void update_timecode_format ();
|
|
|
|
|
2018-02-20 06:15:29 -05:00
|
|
|
Gtk::Label dsp_load_label;
|
2005-09-25 14:42:24 -04:00
|
|
|
void update_cpu_load ();
|
|
|
|
|
2015-09-15 11:46:48 -04:00
|
|
|
Gtk::Label peak_thread_work_label;
|
|
|
|
void update_peak_thread_work ();
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
Gtk::Label sample_rate_label;
|
2017-09-18 12:39:17 -04:00
|
|
|
void update_sample_rate (ARDOUR::samplecnt_t);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2011-07-02 20:45:15 -04:00
|
|
|
Gtk::Label format_label;
|
|
|
|
void update_format ();
|
2015-10-05 10:17:49 -04:00
|
|
|
|
2020-03-29 18:14:25 -04:00
|
|
|
Gtk::Label session_path_label;
|
|
|
|
void update_path_label ();
|
|
|
|
|
2014-12-25 10:02:00 -05:00
|
|
|
void every_second ();
|
|
|
|
void every_point_one_seconds ();
|
|
|
|
void every_point_zero_something_seconds ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2005-09-25 16:33:00 -04:00
|
|
|
sigc::connection second_connection;
|
|
|
|
sigc::connection point_one_second_connection;
|
2013-07-11 08:50:33 -04:00
|
|
|
sigc::connection point_zero_something_second_connection;
|
2014-08-30 14:57:22 -04:00
|
|
|
sigc::connection fps_connection;
|
|
|
|
|
|
|
|
void set_fps_timeout_connection ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void open_session ();
|
|
|
|
void open_recent_session ();
|
2017-08-18 13:53:46 -04:00
|
|
|
void save_template_dialog_response (int response, SaveTemplateDialog* d);
|
2005-09-25 14:42:24 -04:00
|
|
|
void save_template ();
|
2017-07-03 06:27:25 -04:00
|
|
|
void manage_templates ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2017-08-11 08:29:08 -04:00
|
|
|
void meta_session_setup (const std::string& script_path);
|
2017-08-18 14:41:35 -04:00
|
|
|
void meta_route_setup (const std::string& script_path);
|
2017-08-11 08:29:08 -04:00
|
|
|
|
2008-09-17 04:44:51 -04:00
|
|
|
void edit_metadata ();
|
|
|
|
void import_metadata ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void set_transport_sensitivity (bool);
|
2020-02-27 16:25:37 -05:00
|
|
|
void set_punch_sensitivity ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2014-07-03 18:50:14 -04:00
|
|
|
//stuff for ProTools-style numpad
|
|
|
|
void transport_numpad_event (int num);
|
|
|
|
void transport_numpad_decimal ();
|
|
|
|
bool _numpad_locate_happening;
|
|
|
|
int _pending_locate_num;
|
|
|
|
gint transport_numpad_timeout ();
|
|
|
|
sigc::connection _numpad_timeout_connection;
|
|
|
|
|
|
|
|
void transport_goto_nth_marker (int nth);
|
2006-03-11 11:01:06 -05:00
|
|
|
void transport_goto_zero ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void transport_goto_start ();
|
|
|
|
void transport_goto_end ();
|
2008-09-10 11:03:30 -04:00
|
|
|
void transport_goto_wallclock ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void transport_stop ();
|
2008-01-10 16:20:59 -05:00
|
|
|
void transport_record (bool roll);
|
2005-09-25 14:42:24 -04:00
|
|
|
void transport_roll ();
|
2008-08-04 18:37:24 -04:00
|
|
|
void transport_play_selection();
|
2015-10-04 14:51:05 -04:00
|
|
|
void transport_play_preroll();
|
2017-01-18 09:16:05 -05:00
|
|
|
void transport_rec_preroll();
|
2017-02-13 16:59:51 -05:00
|
|
|
void transport_rec_count_in();
|
2005-09-25 14:42:24 -04:00
|
|
|
void transport_forward (int option);
|
|
|
|
void transport_rewind (int option);
|
|
|
|
void transport_loop ();
|
2009-11-08 11:28:21 -05:00
|
|
|
void toggle_roll (bool with_abort, bool roll_out_of_bounded_mode);
|
2014-07-09 12:07:05 -04:00
|
|
|
bool trx_record_enable_all_tracks ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
bool _session_is_new;
|
2009-12-17 13:24:23 -05:00
|
|
|
void set_session (ARDOUR::Session *);
|
2005-09-25 14:42:24 -04:00
|
|
|
void connect_dependents_to_session (ARDOUR::Session *);
|
|
|
|
void we_have_dependents ();
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2006-03-31 10:51:03 -05:00
|
|
|
void setup_session_options ();
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
guint32 last_key_press_time;
|
|
|
|
|
2017-07-16 23:18:48 -04:00
|
|
|
bool process_snapshot_session_prompter (ArdourWidgets::Prompter& prompter, bool switch_to_it);
|
2010-04-20 22:24:38 -04:00
|
|
|
void snapshot_session (bool switch_to_it);
|
2015-04-22 14:11:00 -04:00
|
|
|
|
2016-01-16 13:33:49 -05:00
|
|
|
void quick_snapshot_session (bool switch_to_it); //does not promtp for name, just makes a timestamped file
|
|
|
|
|
2015-04-22 14:11:00 -04:00
|
|
|
SaveAsDialog* save_as_dialog;
|
|
|
|
|
2015-01-14 17:54:26 -05:00
|
|
|
bool save_as_progress_update (float fraction, int64_t cnt, int64_t total, Gtk::Label* label, Gtk::ProgressBar* bar);
|
2015-01-11 12:15:46 -05:00
|
|
|
void save_session_as ();
|
2016-09-20 13:46:49 -04:00
|
|
|
void archive_session ();
|
2020-03-24 16:10:26 -04:00
|
|
|
void rename_session (bool for_unnamed);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
int create_mixer ();
|
|
|
|
int create_editor ();
|
2016-02-23 09:42:13 -05:00
|
|
|
int create_meterbridge ();
|
|
|
|
int create_luawindow ();
|
2016-01-23 16:26:41 -05:00
|
|
|
int create_masters ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2013-06-19 04:25:18 -04:00
|
|
|
Meterbridge *meterbridge;
|
2016-02-23 09:42:13 -05:00
|
|
|
LuaWindow *luawindow;
|
2015-04-21 15:10:49 -04:00
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
/* Dialogs that can be created via new<T> */
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
RCOptionEditor* rc_option_editor;
|
2015-07-07 22:12:21 -04:00
|
|
|
Gtk::HBox rc_option_editor_placeholder;
|
2015-10-26 14:35:06 -04:00
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
WM::Proxy<SpeakerDialog> speaker_config_window;
|
|
|
|
WM::Proxy<AddRouteDialog> add_route_dialog;
|
|
|
|
WM::Proxy<About> about;
|
|
|
|
WM::Proxy<LocationUIWindow> location_ui;
|
|
|
|
WM::Proxy<RouteParams_UI> route_params;
|
|
|
|
WM::Proxy<EngineControl> audio_midi_setup;
|
|
|
|
WM::Proxy<ExportVideoDialog> export_video_dialog;
|
|
|
|
WM::Proxy<LuaScriptManager> lua_script_window;
|
2017-03-15 06:34:05 -04:00
|
|
|
WM::Proxy<IdleOMeter> idleometer;
|
2018-09-24 18:12:42 -04:00
|
|
|
WM::Proxy<PluginDSPLoadWindow> plugin_dsp_load_window;
|
2018-09-23 12:58:53 -04:00
|
|
|
WM::Proxy<TransportMastersWindow> transport_masters_window;
|
2016-05-05 21:09:20 -04:00
|
|
|
|
|
|
|
/* Windows/Dialogs that require a creator method */
|
|
|
|
|
|
|
|
WM::ProxyWithConstructor<SessionOptionEditor> session_option_editor;
|
|
|
|
WM::ProxyWithConstructor<AddVideoDialog> add_video_dialog;
|
|
|
|
WM::ProxyWithConstructor<BundleManager> bundle_manager;
|
|
|
|
WM::ProxyWithConstructor<BigClockWindow> big_clock_window;
|
2017-12-22 14:21:27 -05:00
|
|
|
WM::ProxyWithConstructor<BigTransportWindow> big_transport_window;
|
2019-10-17 21:50:52 -04:00
|
|
|
WM::ProxyWithConstructor<VirtualKeyboardWindow> virtual_keyboard_window;
|
2016-05-05 21:09:20 -04:00
|
|
|
WM::ProxyWithConstructor<GlobalPortMatrixWindow> audio_port_matrix;
|
|
|
|
WM::ProxyWithConstructor<GlobalPortMatrixWindow> midi_port_matrix;
|
|
|
|
WM::ProxyWithConstructor<KeyEditor> key_editor;
|
|
|
|
|
|
|
|
/* creator methods */
|
|
|
|
|
|
|
|
SessionOptionEditor* create_session_option_editor ();
|
|
|
|
BundleManager* create_bundle_manager ();
|
|
|
|
AddVideoDialog* create_add_video_dialog ();
|
|
|
|
BigClockWindow* create_big_clock_window();
|
2017-12-22 14:21:27 -05:00
|
|
|
BigTransportWindow* create_big_transport_window();
|
2019-10-17 21:50:52 -04:00
|
|
|
VirtualKeyboardWindow* create_virtual_keyboard_window();
|
2016-05-05 21:09:20 -04:00
|
|
|
GlobalPortMatrixWindow* create_global_port_matrix (ARDOUR::DataType);
|
2015-08-04 14:00:57 -04:00
|
|
|
KeyEditor* create_key_editor ();
|
2015-10-26 14:35:06 -04:00
|
|
|
|
2014-03-13 11:50:44 -04:00
|
|
|
ARDOUR::SystemExec *video_server_process;
|
2013-03-12 17:00:09 -04:00
|
|
|
|
2013-05-04 22:02:05 -04:00
|
|
|
void handle_locations_change (ARDOUR::Location*);
|
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
/* Keyboard Handling */
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2009-12-04 17:51:32 -05:00
|
|
|
ArdourKeyboard* keyboard;
|
2011-06-01 13:00:29 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
/* Keymap handling */
|
|
|
|
|
2005-10-10 16:38:53 -04:00
|
|
|
void install_actions ();
|
2019-01-13 13:01:18 -05:00
|
|
|
void install_dependent_actions ();
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2016-05-16 07:30:28 -04:00
|
|
|
void toggle_record_enable (uint16_t);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2006-11-19 11:45:16 -05:00
|
|
|
uint32_t rec_enabled_streams;
|
|
|
|
void count_recenabled_streams (ARDOUR::Route&);
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
/* cleanup */
|
|
|
|
|
|
|
|
Gtk::MenuItem *cleanup_item;
|
|
|
|
|
2020-01-30 17:35:37 -05:00
|
|
|
void display_cleanup_results (ARDOUR::CleanupReport const& rep, const gchar* list_title, const bool msg_delete);
|
2005-09-25 14:42:24 -04:00
|
|
|
void cleanup ();
|
2015-09-15 08:42:43 -04:00
|
|
|
void cleanup_peakfiles ();
|
2005-09-25 14:42:24 -04:00
|
|
|
void flush_trash ();
|
|
|
|
|
|
|
|
bool have_configure_timeout;
|
2008-09-10 11:03:30 -04:00
|
|
|
ARDOUR::microseconds_t last_configure_time;
|
2005-09-25 14:42:24 -04:00
|
|
|
gint configure_timeout ();
|
|
|
|
|
2008-09-10 11:03:30 -04:00
|
|
|
ARDOUR::microseconds_t last_peak_grab;
|
|
|
|
ARDOUR::microseconds_t last_shuttle_request;
|
2005-09-25 14:42:24 -04:00
|
|
|
|
2007-03-18 02:07:08 -04:00
|
|
|
bool have_disk_speed_dialog_displayed;
|
|
|
|
void disk_speed_dialog_gone (int ignored_response, Gtk::MessageDialog*);
|
2005-09-25 14:42:24 -04:00
|
|
|
void disk_overrun_handler ();
|
|
|
|
void disk_underrun_handler ();
|
2014-02-23 20:04:37 -05:00
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
void session_format_mismatch (std::string, std::string);
|
2013-03-04 16:57:29 -05:00
|
|
|
|
2008-04-11 10:06:50 -04:00
|
|
|
void session_dialog (std::string);
|
2005-09-25 14:42:24 -04:00
|
|
|
int pending_state_dialog ();
|
2017-09-18 12:39:17 -04:00
|
|
|
int sr_mismatch_dialog (ARDOUR::samplecnt_t, ARDOUR::samplecnt_t);
|
|
|
|
void sr_mismatch_message (ARDOUR::samplecnt_t, ARDOUR::samplecnt_t);
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2005-09-25 14:42:24 -04:00
|
|
|
Gtk::MenuItem* jack_disconnect_item;
|
|
|
|
Gtk::MenuItem* jack_reconnect_item;
|
|
|
|
Gtk::Menu* jack_bufsize_menu;
|
|
|
|
|
2005-11-17 16:31:37 -05:00
|
|
|
Glib::RefPtr<Gtk::ActionGroup> common_actions;
|
2005-12-21 16:37:18 -05:00
|
|
|
|
|
|
|
void editor_realized ();
|
2005-12-31 13:20:42 -05:00
|
|
|
|
2006-01-07 21:56:49 -05:00
|
|
|
std::vector<std::string> positional_sync_strings;
|
|
|
|
|
2005-12-31 13:20:42 -05:00
|
|
|
void toggle_use_mmc ();
|
|
|
|
void toggle_send_mmc ();
|
|
|
|
void toggle_send_mtc ();
|
2008-11-26 18:32:55 -05:00
|
|
|
void toggle_send_midi_clock ();
|
2005-12-31 13:20:42 -05:00
|
|
|
|
2007-03-18 02:07:08 -04:00
|
|
|
void toggle_use_osc ();
|
|
|
|
|
2009-05-15 21:22:43 -04:00
|
|
|
void parameter_changed (std::string);
|
2011-07-02 20:45:15 -04:00
|
|
|
void session_parameter_changed (std::string);
|
2006-10-21 15:01:50 -04:00
|
|
|
|
2007-01-09 18:24:54 -05:00
|
|
|
bool first_idle ();
|
2007-03-18 02:07:08 -04:00
|
|
|
|
|
|
|
void check_memory_locking ();
|
2007-05-14 10:13:59 -04:00
|
|
|
|
2007-10-11 18:07:47 -04:00
|
|
|
void audioengine_setup ();
|
|
|
|
|
2018-02-20 05:06:37 -05:00
|
|
|
void display_message (const char* prefix, gint prefix_len, Glib::RefPtr<Gtk::TextBuffer::Tag>, Glib::RefPtr<Gtk::TextBuffer::Tag>, const char* msg);
|
2007-10-11 18:07:47 -04:00
|
|
|
Gtk::Label status_bar_label;
|
2016-05-05 21:09:20 -04:00
|
|
|
bool status_bar_button_press (GdkEventButton*);
|
2008-08-04 18:37:24 -04:00
|
|
|
|
2009-12-19 15:26:31 -05:00
|
|
|
PBD::ScopedConnectionList forever_connections;
|
2016-05-05 21:09:20 -04:00
|
|
|
PBD::ScopedConnection halt_connection;
|
2017-02-24 17:37:23 -05:00
|
|
|
PBD::ScopedConnection editor_meter_connection;
|
2010-07-24 12:40:56 -04:00
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
/* these are used only in response to a platform-specific "ShouldQuit" signal */
|
2010-08-16 15:58:34 -04:00
|
|
|
bool idle_finish ();
|
|
|
|
void queue_finish ();
|
2011-09-30 13:55:14 -04:00
|
|
|
void fontconfig_dialog ();
|
2010-08-17 22:20:15 -04:00
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
int missing_file (ARDOUR::Session*s, std::string str, ARDOUR::DataType type);
|
|
|
|
int ambiguous_file (std::string file, std::vector<std::string> hits);
|
2011-02-17 13:53:31 -05:00
|
|
|
|
|
|
|
bool click_button_clicked (GdkEventButton *);
|
2016-12-19 13:21:38 -05:00
|
|
|
bool sync_button_clicked (GdkEventButton *);
|
2011-10-23 17:31:28 -04:00
|
|
|
|
2011-10-29 16:07:00 -04:00
|
|
|
VisibilityGroup _status_bar_visibility;
|
2011-11-01 19:19:03 -04:00
|
|
|
|
|
|
|
/** A ProcessThread so that we have some thread-local buffers for use by
|
|
|
|
* PluginEqGui::impulse_analysis ().
|
|
|
|
*/
|
|
|
|
ARDOUR::ProcessThread* _process_thread;
|
2011-11-09 12:44:39 -05:00
|
|
|
|
2019-09-28 19:23:48 -04:00
|
|
|
void toggle_latency_switch ();
|
|
|
|
void latency_switch_changed ();
|
2020-04-06 18:11:19 -04:00
|
|
|
void session_latency_updated (bool);
|
2019-09-28 19:23:48 -04:00
|
|
|
|
2011-11-09 12:44:39 -05:00
|
|
|
void feedback_detected ();
|
2011-11-10 13:04:34 -05:00
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourButton midi_panic_button;
|
2011-11-10 13:04:34 -05:00
|
|
|
void midi_panic ();
|
2011-11-11 08:52:27 -05:00
|
|
|
|
|
|
|
void successful_graph_sort ();
|
|
|
|
bool _feedback_exists;
|
2011-11-14 06:31:27 -05:00
|
|
|
|
2015-03-16 14:04:17 -04:00
|
|
|
enum ArdourLogLevel {
|
|
|
|
LogLevelNone = 0,
|
|
|
|
LogLevelInfo,
|
|
|
|
LogLevelWarning,
|
|
|
|
LogLevelError
|
|
|
|
};
|
|
|
|
|
|
|
|
ArdourLogLevel _log_not_acknowledged;
|
2011-11-14 06:31:27 -05:00
|
|
|
|
2019-08-26 12:58:34 -04:00
|
|
|
void on_theme_changed ();
|
2013-03-08 11:41:45 -05:00
|
|
|
|
2020-03-29 18:37:49 -04:00
|
|
|
bool path_button_press (GdkEventButton* ev);
|
2020-03-29 19:40:47 -04:00
|
|
|
bool audio_button_press (GdkEventButton* ev);
|
2020-03-29 19:09:00 -04:00
|
|
|
bool format_button_press (GdkEventButton* ev);
|
|
|
|
bool timecode_button_press (GdkEventButton* ev);
|
2020-03-29 21:53:09 -04:00
|
|
|
bool xrun_button_press (GdkEventButton* ev);
|
2015-04-29 09:45:04 -04:00
|
|
|
bool xrun_button_release (GdkEventButton* ev);
|
|
|
|
|
2016-05-05 21:09:20 -04:00
|
|
|
std::string _announce_string;
|
|
|
|
void check_announcements ();
|
2013-09-05 14:21:25 -04:00
|
|
|
|
2015-04-05 14:02:47 -04:00
|
|
|
void audioengine_became_silent ();
|
2015-11-14 10:29:50 -05:00
|
|
|
|
|
|
|
DuplicateRouteDialog* duplicate_routes_dialog;
|
2016-02-22 11:48:26 -05:00
|
|
|
|
|
|
|
void grab_focus_after_dialog ();
|
2015-04-21 15:10:49 -04:00
|
|
|
|
|
|
|
void tabs_switch (GtkNotebookPage*, guint page_number);
|
2015-11-18 23:45:48 -05:00
|
|
|
void tabs_page_added (Gtk::Widget*, guint);
|
|
|
|
void tabs_page_removed (Gtk::Widget*, guint);
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourButton editor_visibility_button;
|
|
|
|
ArdourWidgets::ArdourButton mixer_visibility_button;
|
|
|
|
ArdourWidgets::ArdourButton prefs_visibility_button;
|
2015-11-18 22:25:18 -05:00
|
|
|
|
2015-07-08 12:45:57 -04:00
|
|
|
bool key_press_focus_accelerator_handler (Gtk::Window& window, GdkEventKey* ev, Gtkmm2ext::Bindings*);
|
2015-07-15 15:06:06 -04:00
|
|
|
bool try_gtk_accel_binding (GtkWindow* win, GdkEventKey* ev, bool translate, GdkModifierType modifier);
|
2015-10-26 14:35:06 -04:00
|
|
|
|
2015-07-27 10:50:35 -04:00
|
|
|
bool main_window_delete_event (GdkEventAny*);
|
|
|
|
bool idle_ask_about_quit ();
|
2015-08-01 23:40:55 -04:00
|
|
|
|
2015-11-24 10:12:07 -05:00
|
|
|
bool tabbable_visibility_button_press (GdkEventButton* ev, std::string const& tabbable_name);
|
2016-02-25 15:08:06 -05:00
|
|
|
|
|
|
|
void step_up_through_tabs ();
|
|
|
|
void step_down_through_tabs ();
|
2016-05-21 08:34:09 -04:00
|
|
|
|
|
|
|
void escape ();
|
2016-06-17 15:48:31 -04:00
|
|
|
void close_current_dialog ();
|
2017-02-17 05:15:14 -05:00
|
|
|
|
|
|
|
bool bind_lua_action_script (GdkEventButton*, int);
|
2017-02-17 12:56:18 -05:00
|
|
|
void update_action_script_btn (int i, const std::string&);
|
2020-03-24 22:58:38 -04:00
|
|
|
|
|
|
|
void ask_about_scratch_deletion ();
|
2005-09-25 14:42:24 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __ardour_gui_h__ */
|