#include "pbd/xml++.h"
#include "pbd/controllable.h"
+#include "pbd/system_exec.h"
#include <gtkmm/box.h>
#include <gtkmm/frame.h>
#include <gtkmm/label.h>
#include "video_timeline.h"
+#include "about.h"
#include "ardour_button.h"
#include "ardour_dialog.h"
#include "ardour_window.h"
#include "editing.h"
-#include "nsm.h"
+#include "engine_dialog.h"
+#include "meterbridge.h"
#include "ui_config.h"
#include "enums.h"
#include "visibility_group.h"
#include "window_manager.h"
-class About;
-class AddRouteDialog;
-class AddVideoDialog;
+#include "add_route_dialog.h"
+#include "add_video_dialog.h"
+#include "big_clock_window.h"
+#include "bundle_manager.h"
+#include "global_port_matrix.h"
+#include "keyeditor.h"
+#include "location_ui.h"
+#include "rc_option_editor.h"
+#include "route_params_ui.h"
+#include "session_option_editor.h"
+#include "speaker_dialog.h"
+#include "theme_manager.h"
+
class VideoTimeLine;
-class SystemExec;
-class ArdourStartup;
class ArdourKeyboard;
class AudioClock;
-class BigClockWindow;
-class BundleManager;
class ButtonJoiner;
class ConnectionEditor;
-class KeyEditor;
-class LocationUIWindow;
class MainClock;
class Mixer_UI;
class PublicEditor;
class RCOptionEditor;
class RouteParams_UI;
+class SessionDialog;
class SessionOptionEditor;
class ShuttleControl;
class Splash;
-class SpeakerDialog;
-class ThemeManager;
class TimeInfoBox;
class MidiTracer;
-class GlobalPortMatrixWindow;
+class NSM_Client;
+class LevelMeterHBox;
class GUIObjectState;
namespace Gtkmm2ext {
bool get_smart_mode () const;
int get_session_parameters (bool quit_on_cancel, bool should_be_new = false, std::string load_template = "");
- int build_session_from_nsd (const std::string& session_name, const std::string& session_path);
+ int build_session_from_dialog (SessionDialog&, const std::string& session_name, const std::string& session_path);
bool ask_about_loading_existing_session (const std::string& session_path);
/// @return true if session was successfully unloaded.
static PublicEditor* _instance;
static sigc::signal<void,bool> Blink;
+
+ /** point_zero_one_seconds -- 10Hz ^= 100ms */
static sigc::signal<void> RapidScreenUpdate;
+
+ /** point_zero_something_seconds -- currently 25Hz ^= 40ms */
static sigc::signal<void> SuperRapidScreenUpdate;
+
/** Emitted frequently with the audible frame, false, and the edit point as
* parameters respectively.
+ *
+ * (either RapidScreenUpdate || SuperRapidScreenUpdate - user-config)
*/
static sigc::signal<void, framepos_t, bool, framepos_t> Clock;
session_add_midi_route (false);
}*/
- int create_engine ();
+ void attach_to_engine ();
void post_engine ();
gint exit_on_main_window_close (GdkEventAny *);
void get_process_buffers ();
void drop_process_buffers ();
+ void reset_peak_display ();
+ void reset_route_peak_display (ARDOUR::Route*);
+ void reset_group_peak_display (ARDOUR::RouteGroup*);
+
const std::string& announce_string() const { return _announce_string; }
+ int disconnect_from_engine ();
+ int reconnect_to_engine ();
+
protected:
friend class PublicEditor;
void reenable_hide_loop_punch_ruler_if_appropriate ();
void toggle_auto_return ();
void toggle_click ();
-
+ void toggle_audio_midi_setup ();
void toggle_session_auto_loop ();
-
void toggle_rc_options_window ();
void toggle_session_options_window ();
private:
- ArdourStartup* _startup;
- ARDOUR::AudioEngine *engine;
- Gtk::Tooltips _tooltips;
+ Gtk::Tooltips _tooltips;
NSM_Client *nsm;
- bool _was_dirty;
+ bool _was_dirty;
+ bool _mixer_on_top;
+ bool first_time_engine_run;
void goto_editor_window ();
void goto_mixer_window ();
void toggle_mixer_window ();
+ void toggle_meterbridge ();
void toggle_editor_mixer ();
int setup_windows ();
static ARDOUR_UI *theArdourUI;
- void startup ();
- void shutdown ();
+ int starting ();
int ask_about_saving_session (const std::vector<std::string>& actions);
void start_clocking ();
void stop_clocking ();
- void manage_window (Gtk::Window&);
-
bool main_window_state_event_handler (GdkEventWindowState*, bool window_was_editor);
void update_transport_clocks (framepos_t pos);
ArdourButton feedback_alert_button;
Gtk::VBox alert_box;
+ Gtk::VBox meter_box;
+ LevelMeterHBox * editor_meter;
+ float editor_meter_max_peak;
+ ArdourButton editor_meter_peak_display;
+ bool editor_meter_peak_button_release (GdkEventButton*);
void solo_blink (bool);
void sync_blink (bool);
gint every_second ();
gint every_point_one_seconds ();
- gint every_point_zero_one_seconds ();
+ gint every_point_zero_something_seconds ();
sigc::connection second_connection;
sigc::connection point_one_second_connection;
- sigc::connection point_oh_five_second_connection;
- sigc::connection point_zero_one_second_connection;
+ sigc::connection point_zero_something_second_connection;
void open_session ();
void open_recent_session ();
void snapshot_session (bool switch_to_it);
void rename_session ();
+ void setup_order_hint ();
Mixer_UI *mixer;
int create_mixer ();
PublicEditor *editor;
int create_editor ();
+ Meterbridge *meterbridge;
+ int create_meterbridge ();
/* Dialogs that can be created via new<T> */
- WindowManager::Proxy<SpeakerDialog> speaker_config_window;
- WindowManager::Proxy<ThemeManager> theme_manager;
- WindowManager::Proxy<KeyEditor> key_editor;
- WindowManager::Proxy<RCOptionEditor> rc_option_editor;
- WindowManager::Proxy<AddRouteDialog> add_route_dialog;
- WindowManager::Proxy<About> about;
- WindowManager::Proxy<LocationUIWindow> location_ui;
- WindowManager::Proxy<RouteParams_UI> route_params;
+ WM::Proxy<SpeakerDialog> speaker_config_window;
+ WM::Proxy<ThemeManager> theme_manager;
+ WM::Proxy<KeyEditor> key_editor;
+ WM::Proxy<RCOptionEditor> rc_option_editor;
+ 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;
/* Windows/Dialogs that require a creator method */
- WindowManager::ProxyWithConstructor<SessionOptionEditor> session_option_editor;
- WindowManager::ProxyWithConstructor<AddVideoDialog> add_video_dialog;
- WindowManager::ProxyWithConstructor<BundleManager> bundle_manager;
- WindowManager::ProxyWithConstructor<BigClockWindow> big_clock_window;
- WindowManager::ProxyWithConstructor<GlobalPortMatrixWindow> audio_port_matrix;
- WindowManager::ProxyWithConstructor<GlobalPortMatrixWindow> midi_port_matrix;
+ WM::ProxyWithConstructor<SessionOptionEditor> session_option_editor;
+ WM::ProxyWithConstructor<AddVideoDialog> add_video_dialog;
+ WM::ProxyWithConstructor<BundleManager> bundle_manager;
+ WM::ProxyWithConstructor<BigClockWindow> big_clock_window;
+ WM::ProxyWithConstructor<GlobalPortMatrixWindow> audio_port_matrix;
+ WM::ProxyWithConstructor<GlobalPortMatrixWindow> midi_port_matrix;
/* creator methods */
static UIConfiguration *ui_config;
- SystemExec *video_server_process;
+ PBD::SystemExec *video_server_process;
void handle_locations_change (ARDOUR::Location*);
void disk_speed_dialog_gone (int ignored_response, Gtk::MessageDialog*);
void disk_overrun_handler ();
void disk_underrun_handler ();
+ void gui_idle_handler ();
+
+ void cancel_plugin_scan ();
+ void cancel_plugin_timeout ();
+ void plugin_scan_dialog (std::string type, std::string plugin, bool);
+ void plugin_scan_timeout (int);
void session_format_mismatch (std::string, std::string);
int pending_state_dialog ();
int sr_mismatch_dialog (ARDOUR::framecnt_t, ARDOUR::framecnt_t);
- void disconnect_from_jack ();
- void reconnect_to_jack ();
- void set_jack_buffer_size (ARDOUR::pframes_t);
-
Gtk::MenuItem* jack_disconnect_item;
Gtk::MenuItem* jack_reconnect_item;
Gtk::Menu* jack_bufsize_menu;
bool first_idle ();
- void no_memory_warning ();
void check_memory_locking ();
bool check_audioengine();
void loading_message (const std::string& msg);
PBD::ScopedConnectionList forever_connections;
+ PBD::ScopedConnection halt_connection;
void step_edit_status_change (bool);
void fontconfig_dialog ();
int missing_file (ARDOUR::Session*s, std::string str, ARDOUR::DataType type);
- int ambiguous_file (std::string file, std::string path, std::vector<std::string> hits);
+ int ambiguous_file (std::string file, std::vector<std::string> hits);
bool click_button_clicked (GdkEventButton *);
std::string _announce_string;
void check_announcements ();
+
+ int do_audio_midi_setup (uint32_t);
};
#endif /* __ardour_gui_h__ */