From 0c3e840700a915fc1476cef73c591048f688f81e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 12 Mar 2013 22:00:09 +0100 Subject: videotimline squashed 694 commits from http://gareus.org/gitweb/?p=ardour3.git --- gtk2_ardour/add_video_dialog.h | 113 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 gtk2_ardour/add_video_dialog.h (limited to 'gtk2_ardour/add_video_dialog.h') diff --git a/gtk2_ardour/add_video_dialog.h b/gtk2_ardour/add_video_dialog.h new file mode 100644 index 0000000000..12409895ee --- /dev/null +++ b/gtk2_ardour/add_video_dialog.h @@ -0,0 +1,113 @@ +/* + Copyright (C) 2010-2013 Paul Davis + Author: Robin Gareus + + 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., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ +#ifdef WITH_VIDEOTIMELINE + +#ifndef __gtk_ardour_add_video_dialog_h__ +#define __gtk_ardour_add_video_dialog_h__ + +#include + +#include + +#include "ardour/types.h" +#include "ardour/template_utils.h" +#include +#include "ardour_dialog.h" + +enum VtlImportOption { + VTL_IMPORT_NONE = 0, + VTL_IMPORT_COPY = 1, + VTL_IMPORT_TRANSCODE = 2, +}; + +class AddVideoDialog : public ArdourDialog +{ + public: + AddVideoDialog (ARDOUR::Session*); + ~AddVideoDialog (); + + std::string file_name (bool &local_file); + VtlImportOption import_option (); + bool launch_xjadeo (); + bool auto_set_session_fps (); + + private: + void on_show (); + bool page_switch(); + void set_action_ok(bool yn); + + /* preview pane related */ + void request_preview(std::string vpath); + void seek_preview(); + + Gtk::Image *preview_image; + Gtk::HScale seek_slider; + Glib::RefPtr imgbuf; + std::string preview_path; + Gtk::Label pi_duration; + Gtk::Label pi_aspect; + Gtk::Label pi_fps; + + /* file chooser related */ + void file_selection_changed (); + void file_activated (); + bool on_video_filter (const Gtk::FileFilter::Info& filter_info); + + Gtk::FileChooserWidget chooser; + + Gtk::CheckButton xjadeo_checkbox; + Gtk::CheckButton set_session_fps_checkbox; + Gtk::ComboBoxText import_combo; + Gtk::Notebook notebook; + Gtk::Button *ok_button; + + /* Harvid Browser related */ + class HarvidColumns : public Gtk::TreeModel::ColumnRecord + { + public: + Gtk::TreeModelColumn id; + Gtk::TreeModelColumn uri; + Gtk::TreeModelColumn filename; + + HarvidColumns() { + add(id); + add(filename); + add(uri); + } + }; + + Gtk::CellRendererPixbuf pixBufRenderer; + + void harvid_list_view_selected (); + void harvid_list_view_activated (const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn*); + void harvid_request(std::string u); + void harvid_load_docroot(); + + bool harvid_initialized; + Gtk::Label harvid_path; + Gtk::Button harvid_reset; + HarvidColumns harvid_list_columns; + Glib::RefPtr harvid_list; + Gtk::TreeView harvid_list_view; +}; + +#endif /* __gtk_ardour_add_video_dialog_h__ */ + +#endif /* WITH_VIDEOTIMELINE */ -- cgit v1.2.3