本文整理汇总了C++中etl::handle::signal_rend_desc_changed方法的典型用法代码示例。如果您正苦于以下问题:C++ handle::signal_rend_desc_changed方法的具体用法?C++ handle::signal_rend_desc_changed怎么用?C++ handle::signal_rend_desc_changed使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类etl::handle
的用法示例。
在下文中一共展示了handle::signal_rend_desc_changed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: book
RenderSettings::RenderSettings(Gtk::Window& parent, etl::handle<synfigapp::CanvasInterface> canvas_interface):
Gtk::Dialog(_("Render Settings"),parent,false,true),
canvas_interface_(canvas_interface),
adjustment_quality(3,0,9),
entry_quality(adjustment_quality,1,0),
adjustment_antialias(1,1,31),
entry_antialias(adjustment_antialias,1,0),
toggle_single_frame(_("Render _current frame only"), true),
tparam("mpeg4",200)
{
tparam.sequence_separator=App::sequence_separator;
widget_rend_desc.show();
widget_rend_desc.signal_changed().connect(sigc::mem_fun(*this,&studio::RenderSettings::on_rend_desc_changed));
widget_rend_desc.set_rend_desc(canvas_interface_->get_canvas()->rend_desc());
canvas_interface->signal_rend_desc_changed().connect(sigc::mem_fun(*this,&RenderSettings::on_rend_desc_changed));
menu_target=manage(new class Gtk::Menu());
menu_target->items().push_back(Gtk::Menu_Helpers::MenuElem(_("Auto"),
sigc::bind(sigc::mem_fun(*this,&RenderSettings::set_target),String())
));
synfig::Target::Book::iterator iter;
synfig::Target::Book book(synfig::Target::book());
for(iter=book.begin();iter!=book.end();iter++)
{
menu_target->items().push_back(Gtk::Menu_Helpers::MenuElem(iter->first,
sigc::bind(sigc::mem_fun(*this,&RenderSettings::set_target),iter->first)
));
}
optionmenu_target.set_menu(*menu_target);
optionmenu_target.set_history(0);
Gtk::Alignment *dialogPadding = manage(new Gtk::Alignment(0, 0, 1, 1));
dialogPadding->set_padding(12, 12, 12, 12);
get_vbox()->pack_start(*dialogPadding, false, false, 0);
Gtk::VBox *dialogBox = manage(new Gtk::VBox(false, 12));
dialogPadding->add(*dialogBox);
Gtk::Button *choose_button(manage(new class Gtk::Button(Gtk::StockID(_("Choose...")))));
choose_button->show();
choose_button->signal_clicked().connect(sigc::mem_fun(*this, &studio::RenderSettings::on_choose_pressed));
tparam_button=manage(new class Gtk::Button(Gtk::StockID(_("Parameters..."))));
tparam_button->show();
tparam_button->set_sensitive(false);
tparam_button->signal_clicked().connect(sigc::mem_fun(*this, &studio::RenderSettings::on_targetparam_pressed));
Gtk::Frame *target_frame=manage(new Gtk::Frame(_("Target")));
target_frame->set_shadow_type(Gtk::SHADOW_NONE);
((Gtk::Label *) target_frame->get_label_widget())->set_markup(_("<b>Target</b>"));
dialogBox->pack_start(*target_frame);
Gtk::Alignment *targetPadding = manage(new Gtk::Alignment(0, 0, 1, 1));
targetPadding->set_padding(6, 0, 24, 0);
target_frame->add(*targetPadding);
Gtk::Table *target_table = manage(new Gtk::Table(2, 3, false));
target_table->set_row_spacings(6);
target_table->set_col_spacings(12);
targetPadding->add(*target_table);
Gtk::Label *filenameLabel = manage(new Gtk::Label(_("_Filename"), true));
filenameLabel->set_alignment(0, 0.5);
filenameLabel->set_mnemonic_widget(entry_filename);
target_table->attach(*filenameLabel, 0, 1, 0, 1, Gtk::SHRINK|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
target_table->attach(entry_filename, 1, 2, 0, 1, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
target_table->attach(*choose_button, 2, 3, 0, 1, Gtk::SHRINK|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
Gtk::Label *targetLabel = manage(new Gtk::Label(_("_Target"), true));
targetLabel->set_alignment(0, 0.5);
targetLabel->set_mnemonic_widget(optionmenu_target);
target_table->attach(*targetLabel, 0, 1, 1, 2, Gtk::SHRINK|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
target_table->attach(optionmenu_target, 1, 2, 1, 2, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
target_table->attach(*tparam_button, 2, 3, 1, 2, Gtk::SHRINK|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
toggle_single_frame.signal_toggled().connect(sigc::mem_fun(*this, &studio::RenderSettings::on_single_frame_toggle));
Gtk::Frame *settings_frame=manage(new Gtk::Frame(_("Settings")));
settings_frame->set_shadow_type(Gtk::SHADOW_NONE);
((Gtk::Label *) settings_frame->get_label_widget())->set_markup(_("<b>Settings</b>"));
dialogBox->pack_start(*settings_frame);
Gtk::Alignment *settingsPadding = manage(new Gtk::Alignment(0, 0, 1, 1));
settingsPadding->set_padding(6, 0, 24, 0);
settings_frame->add(*settingsPadding);
Gtk::Table *settings_table=manage(new Gtk::Table(2,2,false));
settings_table->set_row_spacings(6);
settings_table->set_col_spacings(12);
settingsPadding->add(*settings_table);
Gtk::Label *qualityLabel = manage(new Gtk::Label(_("_Quality"), true));
qualityLabel->set_alignment(0, 0.5);
qualityLabel->set_mnemonic_widget(entry_quality);
settings_table->attach(*qualityLabel, 0, 1, 0, 1, Gtk::SHRINK|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
settings_table->attach(entry_quality, 1, 2, 0, 1, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
//.........这里部分代码省略.........