Ardour  8.12
add_video_dialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2017 Robin Gareus <robin@gareus.org>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program; if not, write to the Free Software Foundation, Inc.,
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 #ifndef __gtk_ardour_add_video_dialog_h__
19 #define __gtk_ardour_add_video_dialog_h__
20 
21 #include <string>
22 
23 #ifdef interface
24 #undef interface
25 #endif
26 
27 #include <gtkmm/box.h>
28 #include <gtkmm/button.h>
30 #include <gtkmm/checkbutton.h>
32 #include <gtkmm/image.h>
33 #include <gtkmm/label.h>
34 #include <gtkmm/liststore.h>
35 #include <gtkmm/notebook.h>
36 #include <gtkmm/scale.h>
37 #include <gtkmm/treemodel.h>
38 #include <gtkmm/treeview.h>
39 
40 #include "ardour/types.h"
41 #include "ardour/template_utils.h"
43 #include "ardour_dialog.h"
44 
48 };
49 
51 {
52 public:
55 
56  std::string file_name (bool &local_file);
58  bool launch_xjadeo ();
60 
61 private:
62  void on_show ();
63  bool page_switch();
64  void set_action_ok(bool yn);
66 
67  /* preview pane related */
68  void request_preview(std::string vpath);
69  void seek_preview();
70 
73  Glib::RefPtr<Gdk::Pixbuf> imgbuf;
74  std::string preview_path;
79 
80  /* file chooser related */
82  void file_activated ();
83  bool on_video_filter (const Gtk::FileFilter::Info& filter_info);
84 
86 
91 
95 
96  /* Harvid Browser related */
98  {
99  public:
103 
105  add(id);
106  add(filename);
107  add(uri);
108  }
109  };
110 
112 
115  void harvid_request(std::string u);
117 
122  Glib::RefPtr<Gtk::ListStore> harvid_list;
124 
127 };
128 
129 #endif /* __gtk_ardour_add_video_dialog_h__ */
VtlImportOption
@ VTL_IMPORT_TRANSCODE
@ VTL_IMPORT_NONE
Gtk::TreeModelColumn< std::string > id
Gtk::TreeModelColumn< std::string > filename
Gtk::TreeModelColumn< std::string > uri
void file_activated()
VtlImportOption import_option()
std::string file_name(bool &local_file)
Gtk::HBox browser_container
Gtk::FileChooserWidget chooser
void on_show()
This is a default handler for the signal signal_show().
void harvid_list_view_selected()
bool launch_xjadeo()
Gtk::HScale seek_slider
AddVideoDialog(ARDOUR::Session *)
Gtk::CheckButton set_session_fps_checkbox
Gtk::Notebook notebook
Gtk::VBox server_index_box
HarvidColumns harvid_list_columns
void harvid_list_view_activated(const Gtk::TreeModel::Path &path, Gtk::TreeViewColumn *)
Glib::RefPtr< Gdk::Pixbuf > imgbuf
Gtk::CellRendererPixbuf pixBufRenderer
Gtk::Label pi_tcout
bool on_video_filter(const Gtk::FileFilter::Info &filter_info)
Gtk::VBox file_chooser_box
Gtk::Label pi_fps
Gtk::TreeView harvid_list_view
void set_action_ok(bool yn)
void file_selection_changed()
void harvid_load_docroot()
Gtk::Button harvid_reset
bool auto_set_session_fps()
bool page_switch()
void clear_preview_image()
Gtk::Label harvid_path
std::string preview_path
Glib::RefPtr< Gtk::ListStore > harvid_list
void seek_preview()
Gtk::Label pi_tcin
Gtk::Label pi_aspect
Gtk::Button * ok_button
Gtk::CheckButton xjadeo_checkbox
Gtk::Image * preview_image
void request_preview(std::string vpath)
void harvid_request(std::string u)
void add(TreeModelColumnBase &column)
void path(Glib::ustring &path, Glib::ustring &path_reversed)
Compute a widget's path of the form "GtkWindow.MyLabel".