36 Render::Render (Window& parent)
37 : Dialog(_(
"Render"), parent, true)
38 , outputFileLabel_(_(
"Output File:"))
39 , browseButtonImage_(StockID(Stock::INDEX), ICON_SIZE_BUTTON)
40 , outputFileBrowseButton_(_(
"_Browse..."))
41 , containerFormatLabel_(_(
"Container Format:"))
42 , renderButtonImage_(StockID(Stock::OK), ICON_SIZE_BUTTON)
43 , audioFrame_(_(
"Audio"))
44 , videoFrame_(_(
"Video"))
46 Box* v_box = get_vbox();
47 REQUIRE (v_box != NULL);
50 outputFileHBox_.pack_start (outputFileLabel_, PACK_SHRINK);
51 outputFileHBox_.pack_start (outputFilePathEntry_);
53 outputFileBrowseButton_.set_image (browseButtonImage_);
54 outputFileBrowseButton_.signal_clicked().connect(
55 sigc::mem_fun(*
this, &Render::on_button_browse));
57 outputFileHBox_.pack_start (outputFileBrowseButton_, PACK_SHRINK);
58 outputFileHBox_.set_spacing(4);
59 v_box->pack_start (outputFileHBox_, PACK_SHRINK);
62 containerFormatHBox_.pack_start (containerFormatLabel_, PACK_SHRINK);
63 containerFormatHBox_.pack_start (containerFormat_);
64 containerFormatHBox_.set_spacing(4);
65 v_box->pack_start (containerFormatHBox_, PACK_SHRINK);
67 v_box->pack_start (audioFrame_);
68 v_box->pack_start (videoFrame_);
73 set_resizable (
false);
76 add_button (Stock::CANCEL, RESPONSE_CANCEL);
78 Button* render_button = add_button (Stock::OK, RESPONSE_OK);
79 render_button->set_label (_(
"_Render"));
80 render_button->set_image (renderButtonImage_);
82 render_button->grab_default();
88 Render::on_button_browse()
90 FileChooserDialog dialog (*
this,
91 _(
"Select a File Name for Rendering"),
92 FILE_CHOOSER_ACTION_SAVE);
95 dialog.add_button (Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
96 dialog.add_button (Gtk::Stock::SAVE, Gtk::RESPONSE_OK);
98 int result = dialog.run();
99 INFO (
stage,
"%d", result);
100 if (result == RESPONSE_OK)
101 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.