#include <list>
#include <cmath>
-#include <libgnomecanvasmm/canvas.h>
#include "pbd/xml++.h"
#include "pbd/controllable.h"
#include "ardour/plugin.h"
#include "ardour/session_handle.h"
+#include "video_timeline.h"
+
#include "ardour_dialog.h"
#include "ardour_button.h"
#include "editing.h"
+#include "nsm.h"
#include "ui_config.h"
#include "window_proxy.h"
#include "enums.h"
class About;
class AddRouteDialog;
+class AddVideoDialog;
+class VideoTimeLine;
+class SystemExec;
class ArdourStartup;
class ArdourKeyboard;
class AudioClock;
class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
{
public:
- ARDOUR_UI (int *argcp, char **argvp[]);
+ ARDOUR_UI (int *argcp, char **argvp[], const char* localedir);
~ARDOUR_UI();
bool run_startup (bool should_be_new, std::string load_template);
TimeInfoBox* time_info_box;
+ VideoTimeLine *video_timeline;
+
void store_clock_modes ();
void restore_clock_modes ();
void reset_main_clocks ();
void synchronize_sync_source_and_video_pullup ();
void add_route (Gtk::Window* float_window);
+ void add_routes_part_two ();
+ void add_routes_thread ();
+
+ void add_video (Gtk::Window* float_window);
+ void remove_video ();
+ 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);
void session_add_audio_track (
int input_channels,
void get_process_buffers ();
void drop_process_buffers ();
+ const std::string& announce_string() const { return _announce_string; }
+
protected:
friend class PublicEditor;
ArdourStartup* _startup;
ARDOUR::AudioEngine *engine;
Gtk::Tooltips _tooltips;
+ NSM_Client *nsm;
+ bool _was_dirty;
void goto_editor_window ();
void goto_mixer_window ();
struct RecentSessionModelColumns : public Gtk::TreeModel::ColumnRecord {
RecentSessionModelColumns() {
add (visible_name);
+ add (tip);
add (fullpath);
}
Gtk::TreeModelColumn<std::string> visible_name;
+ Gtk::TreeModelColumn<std::string> tip;
Gtk::TreeModelColumn<std::string> fullpath;
};
AddRouteDialog *add_route_dialog;
+ /* video dialog */
+
+ AddVideoDialog *add_video_dialog;
+ SystemExec *video_server_process;
+
/* Keyboard Handling */
ArdourKeyboard* keyboard;
Gtk::MenuItem *cleanup_item;
- void display_cleanup_results (ARDOUR::CleanupReport& rep, const gchar* list_title,
- const std::string& plural_msg, const std::string& singular_msg);
+ void display_cleanup_results (ARDOUR::CleanupReport& rep, const gchar* list_title, const bool msg_delete);
void cleanup ();
void flush_trash ();
void disk_overrun_handler ();
void disk_underrun_handler ();
+ void session_format_mismatch (std::string, std::string);
+
void session_dialog (std::string);
int pending_state_dialog ();
int sr_mismatch_dialog (ARDOUR::framecnt_t, ARDOUR::framecnt_t);
void loading_message (const std::string& msg);
- void toggle_translations ();
-
PBD::ScopedConnectionList forever_connections;
void step_edit_status_change (bool);
bool _feedback_exists;
void resize_text_widgets ();
+
+ std::string _announce_string;
+ void check_announcements ();
};
#endif /* __ardour_gui_h__ */