where menu-url is the URL or filename of the first page to show.
Currently videos cannot be displayed in this preview mode.
+Press T to go to the "top" (main) menu or Q to quit.
+
Processing
To create a DVD filesystem, run "videolink menu-url output-dir" where
Priority 2
Use ffmpeg to convert unsuitable video files (how do we check this?).
-Add keyboard command for "top menu" in preview mode.
Add support for videos in preview mode.
Support more than 99 titles somehow (grouping them into titlesets won't help)
Track down and fix/suppress the NS_BINDING_ABORTED (0x804b002) error that occasionally appears in preview mode.
#include <stdlib.h>
+#include <gdk/gdkkeysyms.h>
#include <gdkmm/pixbuf.h>
#include <glibmm/convert.h>
#include <glibmm/spawn.h>
private:
virtual void do_late_initialisation();
+ bool on_key_press(GdkEventKey *);
std::string main_page_uri_;
};
: base_window(frame_params),
main_page_uri_(main_page_uri)
{
+ signal_key_press_event().connect(SigC::slot(*this, &preview_window::on_key_press));
}
void preview_window::do_late_initialisation()
{
browser_widget_.load_uri(main_page_uri_);
}
-
+
+ bool preview_window::on_key_press(GdkEventKey * event)
+ {
+ switch (event->keyval)
+ {
+ case GDK_t: // = top menu
+ browser_widget_.load_uri(main_page_uri_);
+ return true;
+ case GDK_q: // = quit
+ Gtk::Main::quit();
+ return true;
+ default:
+ return false;
+ }
+ }
+
class conversion_window : public base_window
{
public: