45 Render::Render (Window& parent)
46 : Dialog(_(
"Render"), parent, true)
47 , outputFileLabel_(_(
"Output File:"))
48 , browseButtonImage_(StockID(Stock::INDEX), ICON_SIZE_BUTTON)
49 , outputFileBrowseButton_(_(
"_Browse..."))
50 , containerFormatLabel_(_(
"Container Format:"))
51 , renderButtonImage_(StockID(Stock::OK), ICON_SIZE_BUTTON)
52 , audioFrame_(_(
"Audio"))
53 , videoFrame_(_(
"Video"))
55 Box* v_box = get_vbox();
56 REQUIRE (v_box != NULL);
59 outputFileHBox_.pack_start (outputFileLabel_, PACK_SHRINK);
60 outputFileHBox_.pack_start (outputFilePathEntry_);
62 outputFileBrowseButton_.set_image (browseButtonImage_);
63 outputFileBrowseButton_.signal_clicked().connect(
64 sigc::mem_fun(*
this, &Render::on_button_browse));
66 outputFileHBox_.pack_start (outputFileBrowseButton_, PACK_SHRINK);
67 outputFileHBox_.set_spacing(4);
68 v_box->pack_start (outputFileHBox_, PACK_SHRINK);
71 containerFormatHBox_.pack_start (containerFormatLabel_, PACK_SHRINK);
72 containerFormatHBox_.pack_start (containerFormat_);
73 containerFormatHBox_.set_spacing(4);
74 v_box->pack_start (containerFormatHBox_, PACK_SHRINK);
76 v_box->pack_start (audioFrame_);
77 v_box->pack_start (videoFrame_);
82 set_resizable (
false);
85 add_button (Stock::CANCEL, RESPONSE_CANCEL);
87 Button* render_button = add_button (Stock::OK, RESPONSE_OK);
88 render_button->set_label (_(
"_Render"));
89 render_button->set_image (renderButtonImage_);
91 render_button->grab_default();
97 Render::on_button_browse()
99 FileChooserDialog dialog (*
this,
100 _(
"Select a File Name for Rendering"),
101 FILE_CHOOSER_ACTION_SAVE);
104 dialog.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
105 dialog.add_button (Gtk::Stock::SAVE, Gtk::RESPONSE_OK);
107 int result = dialog.run();
108 INFO (
stage,
"%d", result);
109 if (result == RESPONSE_OK)
110 INFO(
stage,
"%s",
"RESPONSE_OK");
static const int BorderPadding
The space in pixels to pad the border of Lumiera dialog boxes.
This header is for including and configuring NoBug.
Dialog to set up a renter process and define output name and format.
Lumiera GTK UI implementation root.
static const int BoxSpacing
The spacing for VBoxes and HBoxes in Lumiera dialogs.
Global constants and definitions for dialogs.
A set of basic GTK includes for the UI.