#include "add_route_dialog.h"
#include "ardour_button.h"
#include "ardour_dialog.h"
+#include "ardour_spacer.h"
#include "ardour_window.h"
#include "editing.h"
#include "enums.h"
+#include "mini_timeline.h"
+#include "shuttle_control.h"
#include "visibility_group.h"
#include "window_manager.h"
#include "location_ui.h"
#include "lua_script_manager.h"
#include "rc_option_editor.h"
+#include "route_dialogs.h"
#include "route_params_ui.h"
#include "session_option_editor.h"
#include "speaker_dialog.h"
class VideoTimeLine;
class ArdourKeyboard;
+class ArdourVSpacer;
class AudioClock;
class ButtonJoiner;
class ConnectionEditor;
class SaveAsDialog;
class SessionDialog;
class SessionOptionEditorWindow;
-class ShuttleControl;
class Splash;
class TimeInfoBox;
class Meterbridge;
static ARDOUR_UI *instance () { return theArdourUI; }
+ /* 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;
+
PublicEditor& the_editor() { return *editor;}
Mixer_UI* the_mixer() { return mixer; }
void toggle_monitor_section_visibility ();
void toggle_keep_tearoffs();
+ void reset_focus (Gtk::Widget*);
+
static PublicEditor* _instance;
/** Emitted frequently with the audible frame, false, and the edit point as
XMLNode* main_window_settings() const;
XMLNode* editor_settings() const;
+ XMLNode* preferences_settings() const;
XMLNode* mixer_settings () const;
XMLNode* keyboard_settings () const;
XMLNode* tearoff_settings (const char*) const;
void focus_on_clock ();
AudioClock* big_clock;
- TimeInfoBox* time_info_box;
-
VideoTimeLine *video_timeline;
void store_clock_modes ();
void synchronize_sync_source_and_video_pullup ();
void add_route ();
+ void add_route_dialog_finished (int);
void add_routes_part_two ();
void add_routes_thread ();
Gtkmm2ext::ActionMap global_actions;
+ ARDOUR::PresentationInfo::order_t translate_order (RouteDialogs::InsertAt);
+
protected:
friend class PublicEditor;
bool ignore_dual_punch;
void toggle_punch_in ();
void toggle_punch_out ();
+ void toggle_session_monitoring_in ();
+ void toggle_session_monitoring_disk ();
void show_loop_punch_ruler_and_disallow_hide ();
void reenable_hide_loop_punch_ruler_if_appropriate ();
void toggle_auto_return ();
void setup_transport ();
void setup_clock ();
+ bool transport_expose (GdkEventExpose*);
+
static ARDOUR_UI *theArdourUI;
SessionDialog *_session_dialog;
/* Transport Control */
+ Gtk::Table transport_table;
Gtk::Frame transport_frame;
Gtk::HBox transport_hbox;
- Gtk::Fixed transport_base;
- Gtk::Fixed transport_button_base;
- Gtk::Frame transport_button_frame;
- Gtk::HBox transport_button_hbox;
- Gtk::VBox transport_button_vbox;
- Gtk::HBox transport_option_button_hbox;
- Gtk::VBox transport_option_button_vbox;
- Gtk::HBox transport_clock_hbox;
- Gtk::VBox transport_clock_vbox;
- Gtk::HBox primary_clock_hbox;
- Gtk::HBox secondary_clock_hbox;
+
+ ArdourVSpacer *secondary_clock_spacer;
+ void repack_transport_hbox ();
+ void update_clock_visibility ();
struct TransportControllable : public PBD::Controllable {
enum ToggleType {
ToggleType type;
};
- boost::shared_ptr<TransportControllable> roll_controllable;
- boost::shared_ptr<TransportControllable> stop_controllable;
- boost::shared_ptr<TransportControllable> goto_start_controllable;
- boost::shared_ptr<TransportControllable> goto_end_controllable;
- boost::shared_ptr<TransportControllable> auto_loop_controllable;
- boost::shared_ptr<TransportControllable> play_selection_controllable;
- boost::shared_ptr<TransportControllable> rec_controllable;
-
void toggle_follow_edits ();
- void set_transport_controllable_state (const XMLNode&);
- XMLNode& get_transport_controllable_state ();
-
ArdourButton roll_button;
ArdourButton stop_button;
ArdourButton goto_start_button;
ArdourButton auto_loop_button;
ArdourButton play_selection_button;
ArdourButton rec_button;
+ ArdourButton punch_in_button;
+ ArdourButton punch_out_button;
+ ArdourButton layered_button;
+
+ ArdourVSpacer recpunch_spacer;
+ ArdourVSpacer monitoring_spacer;
+
+ ArdourButton monitor_in_button;
+ ArdourButton monitor_disk_button;
+ ArdourButton auto_input_button;
+
+ Gtk::Label punch_label;
+ Gtk::Label layered_label;
+
+ Gtk::Label punch_space;
+ Gtk::Label mon_space;
void toggle_external_sync ();
void toggle_time_master ();
void toggle_video_sync ();
- ShuttleControl* shuttle_box;
+ ShuttleControl shuttle_box;
+ MiniTimeline mini_timeline;
+ TimeInfoBox *time_info_box;
ArdourButton auto_return_button;
ArdourButton follow_edits_button;
- ArdourButton auto_input_button;
ArdourButton click_button;
ArdourButton sync_button;
void _auditioning_changed (bool);
bool solo_alert_press (GdkEventButton* ev);
- bool audition_alert_press (GdkEventButton* ev);
- bool feedback_alert_press (GdkEventButton *);
+ void audition_alert_clicked ();
bool error_alert_press (GdkEventButton *);
+ void layered_button_clicked ();
+
void big_clock_value_changed ();
void primary_clock_value_changed ();
void secondary_clock_value_changed ();
void edit_metadata ();
void import_metadata ();
+ void set_loop_sensitivity ();
void set_transport_sensitivity (bool);
//stuff for ProTools-style numpad
void transport_roll ();
void transport_play_selection();
void transport_play_preroll();
+ void transport_rec_preroll();
void transport_forward (int option);
void transport_rewind (int option);
void transport_loop ();
bool save_as_progress_update (float fraction, int64_t cnt, int64_t total, Gtk::Label* label, Gtk::ProgressBar* bar);
void save_session_as ();
+ void archive_session ();
void rename_session ();
- ARDOUR::PresentationInfo::order_t translate_order (AddRouteDialog::InsertAt);
int create_mixer ();
int create_editor ();
std::vector<std::string> positional_sync_strings;
- void toggle_send_midi_feedback ();
void toggle_use_mmc ();
void toggle_send_mmc ();
void toggle_send_mtc ();
int ambiguous_file (std::string file, std::vector<std::string> hits);
bool click_button_clicked (GdkEventButton *);
+ bool click_button_scroll (GdkEventScroll *);
+ bool sync_button_clicked (GdkEventButton *);
VisibilityGroup _status_bar_visibility;
void step_up_through_tabs ();
void step_down_through_tabs ();
+
+ void escape ();
+ void close_current_dialog ();
+ void pre_release_dialog ();
};
#endif /* __ardour_gui_h__ */