本文整理汇总了C++中gtk::HBox类的典型用法代码示例。如果您正苦于以下问题:C++ HBox类的具体用法?C++ HBox怎么用?C++ HBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HBox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: ComboWdg
/**
\brief Creates a combobox widget for an enumeration parameter
*/
Gtk::Widget *
ParamRadioButton::get_widget (SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal)
{
if (_gui_hidden) return NULL;
Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox(false, 4));
Gtk::VBox * vbox = Gtk::manage(new Gtk::VBox(false, 0));
Gtk::Label * label = Gtk::manage(new Gtk::Label(_(_text), Gtk::ALIGN_LEFT, Gtk::ALIGN_TOP));
label->show();
hbox->pack_start(*label, false, false);
Gtk::ComboBoxText* cbt = 0;
bool comboSet = false;
if (_mode == MINIMAL) {
cbt = Gtk::manage(new ComboWdg(this, doc, node));
cbt->show();
vbox->pack_start(*cbt, false, false);
}
// add choice strings as radiobuttons
// and select last selected option (_value)
Gtk::RadioButtonGroup group;
for (GSList * list = choices; list != NULL; list = g_slist_next(list)) {
optionentry * entr = reinterpret_cast<optionentry *>(list->data);
Glib::ustring * text = entr->guitext;
switch ( _mode ) {
case MINIMAL:
{
cbt->append_text(*text);
if (!entr->value->compare(_value)) {
cbt->set_active_text(*text);
comboSet = true;
}
}
break;
case COMPACT:
case FULL:
{
ParamRadioButtonWdg * radio = Gtk::manage(new ParamRadioButtonWdg(group, *text, this, doc, node, changeSignal));
radio->show();
vbox->pack_start(*radio, true, true);
if (!entr->value->compare(_value)) {
radio->set_active();
}
}
break;
}
}
if ( (_mode == MINIMAL) && !comboSet) {
cbt->set_active(0);
}
vbox->show();
hbox->pack_end(*vbox, false, false);
hbox->show();
return dynamic_cast<Gtk::Widget *>(hbox);
}
开发者ID:wdmchaft,项目名称:DoonSketch,代码行数:64,代码来源:radiobutton.cpp
示例2: setFileContentsByName
void ResViewerViewImpl::setFileContentsByName(std::map<std::string,
Glib::RefPtr<Gtk::TextBuffer> > FileContents)
{
Glib::ustring ExistingTabSelection = "";
if (mp_Notebook->get_current())
ExistingTabSelection = mp_Notebook->get_current()->get_tab_label_text();
int TabToSelect = 0;
while (mp_Notebook->get_n_pages() > 1)
mp_Notebook->remove_page(1);
for (std::map<std::string, Glib::RefPtr<Gtk::TextBuffer> >::iterator it =
FileContents.begin(); it != FileContents.end(); ++it)
{
Gtk::TextView* TextView = Gtk::manage(new Gtk::TextView(it->second));
TextView->set_editable(false);
TextView->set_visible(true);
Gtk::ScrolledWindow* Win = Gtk::manage(new Gtk::ScrolledWindow());
Win->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
Win->set_visible(true);
Win->set_shadow_type(Gtk::SHADOW_ETCHED_IN);
Win->add(*TextView);
Gtk::Label* TabLabel = Gtk::manage(new Gtk::Label(it->first));
Gtk::Label* MenuLabel = Gtk::manage(new Gtk::Label(it->first,
Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER));
Gtk::Button* SingleGNUplotButton = Gtk::manage(new Gtk::Button(
_("Plot file with GNUplot\n(All-in-one window)")));
Gtk::Button* MultiGNUplotButton = Gtk::manage(new Gtk::Button(
_("Plot file with GNUplot\n(Multiple windows)")));
Gtk::VBox* RightButtonsBox = Gtk::manage(new Gtk::VBox());
RightButtonsBox->pack_start(*SingleGNUplotButton, Gtk::PACK_SHRINK);
RightButtonsBox->pack_start(*MultiGNUplotButton, Gtk::PACK_SHRINK, 5);
RightButtonsBox->show_all_children(true);
RightButtonsBox->set_visible(true);
#if WIN32
SingleGNUplotButton->set_sensitive(false);
MultiGNUplotButton->set_sensitive(false);
#else
if (ViewWithGNUplot::IsGNUplotAvailable())
{
SingleGNUplotButton->signal_clicked().connect(sigc::bind<Glib::RefPtr<
Gtk::TextBuffer>, std::string, std::string, std::string, bool>(
sigc::mem_fun(*this, &ResViewerViewImpl::onGNUplotClicked),
(Glib::RefPtr<Gtk::TextBuffer>) (it->second), m_DateFormat, m_ColSep,
m_CommentChar, true));
SingleGNUplotButton->set_sensitive(true);
MultiGNUplotButton->signal_clicked().connect(sigc::bind<Glib::RefPtr<
Gtk::TextBuffer>, std::string, std::string, std::string, bool>(
sigc::mem_fun(*this, &ResViewerViewImpl::onGNUplotClicked),
(Glib::RefPtr<Gtk::TextBuffer>) (it->second), m_DateFormat, m_ColSep,
m_CommentChar, false));
MultiGNUplotButton->set_sensitive(true);
}
else
{
SingleGNUplotButton->set_sensitive(false);
MultiGNUplotButton->set_sensitive(false);
}
#endif
Gtk::HBox* MainHBox = Gtk::manage(new Gtk::HBox());
MainHBox->pack_start(*Win, Gtk::PACK_EXPAND_WIDGET, 5);
MainHBox->pack_start(*RightButtonsBox, Gtk::PACK_SHRINK, 5);
MainHBox->set_border_width(8);
MainHBox->set_visible(true);
int PageNum = mp_Notebook->append_page(*MainHBox, *TabLabel, *MenuLabel);
if (it->first == ExistingTabSelection)
TabToSelect = PageNum;
mp_Notebook->set_tab_reorderable(*Win, true);
}
mp_Notebook->set_current_page(TabToSelect);
}
开发者ID:VaysseB,项目名称:openfluid,代码行数:83,代码来源:ResViewerView.cpp
示例3: AttributeSelector
void
DataSet::initGtk()
{
_gtkOptList.reset(new Gtk::VBox);
{//The heading of the data set window
Gtk::Frame* frame = Gtk::manage(new Gtk::Frame("Data Set Information")); frame->show();
_gtkOptList->pack_start(*frame, false, true, 5);
Gtk::VBox* vbox = Gtk::manage(new Gtk::VBox); vbox->show();
frame->add(*vbox);
_infolabel.reset(new Gtk::Label("Points: " + boost::lexical_cast<std::string>(_N)));
_infolabel->show();
vbox->pack_start(*_infolabel, false, true, 5);
}
//Glyph adding mechanism
{
Gtk::HBox* box = Gtk::manage(new Gtk::HBox); box->show();
_gtkOptList->pack_start(*box, false, false, 5);
_comboPointSet.reset(new Gtk::ComboBoxText); _comboPointSet->show();
box->pack_start(*_comboPointSet, false, false, 5);
//Check the combo box is correct
_comboPointSet->get_model().clear();
for (const auto& pointset: _pointSets)
_comboPointSet->insert(-1, pointset.first);
_comboPointSet->set_active(0);
Gtk::Button* btn = Gtk::manage(new Gtk::Button("Add Glyphs"));
btn->signal_clicked().connect(sigc::mem_fun(*this, &DataSet::addGlyphs));
btn->show();
box->pack_start(*btn, false, false, 5);
_comboLinkSet.reset(new Gtk::ComboBoxText); _comboLinkSet->show();
box->pack_start(*_comboLinkSet, false, false, 5);
//Check the combo box is correct
_comboLinkSet->get_model().clear();
for (const auto& linkset: _linkSets)
_comboLinkSet->insert(-1, linkset.first);
_comboLinkSet->set_active(0);
btn = Gtk::manage(new Gtk::Button("Add Links"));
btn->signal_clicked().connect(sigc::mem_fun(*this, &DataSet::addLinkGlyphs));
btn->show();
box->pack_start(*btn, false, false, 5);
}
{
_attrcolumns.reset(new ModelColumns);
_attrtreestore = Gtk::TreeStore::create(*_attrcolumns);
_attrtreestore->set_sort_column(_attrcolumns->components, Gtk::SORT_DESCENDING);
_attrview.reset(new Gtk::TreeView);
_attrview->set_model(_attrtreestore);
_attrview->append_column("Name", _attrcolumns->name);
_attrview->append_column("Components", _attrcolumns->components);
_attrview->append_column("Min Values", _attrcolumns->min);
_attrview->append_column("Max Values", _attrcolumns->max);
_attrview->show();
Gtk::ScrolledWindow* win = Gtk::manage(new Gtk::ScrolledWindow);
win->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
win->add(*_attrview);
Gtk::Frame* frame = Gtk::manage(new Gtk::Frame("Available Attributes")); frame->show();
frame->add(*win);
_gtkOptList->pack_start(*frame, true, true, 5);
win->show();
}
{
_positionSel.reset(new AttributeSelector(false));
_gtkOptList->pack_start(*_positionSel, false, false);
}
_gtkOptList->show();
rebuildGui();
}
开发者ID:toastedcrumpets,项目名称:DynamO,代码行数:79,代码来源:DataSet.cpp
示例4: WidgetExpander
WidgetExpanderBase::WidgetExpanderBase() :
WidgetExpander()
{
mp_ColorButton = Gtk::manage(new Gtk::ColorButton(getARandColor()));
mp_WidthSpinButton = Gtk::manage(new Gtk::SpinButton());
mp_WidthSpinButton->set_range(1, 100);
mp_WidthSpinButton->set_increments(1, 10);
mp_WidthSpinButton->set_numeric(true);
mp_WidthSpinButton->set_value(1);
mp_OpacityHScale = Gtk::manage(new Gtk::HScale(0, 101, 1));
mp_OpacityHScale->set_value_pos(Gtk::POS_LEFT);
mp_OpacityHScale->set_value(100);
mp_OpacityHScale->set_update_policy(Gtk::UPDATE_DELAYED);
mp_ShowIDCheckBox = Gtk::manage(new Gtk::CheckButton(_("Show units IDs")));
// mp_CheckButtonGraph = Gtk::manage(new Gtk::CheckButton(_("show graph")));
Gtk::HBox* ColorButtonBox = Gtk::manage(new Gtk::HBox());
ColorButtonBox->pack_start(*mp_ColorButton, Gtk::PACK_SHRINK);
Gtk::HBox* WidthSpinButtonBox = Gtk::manage(new Gtk::HBox());
WidthSpinButtonBox->pack_start(*mp_WidthSpinButton, Gtk::PACK_SHRINK);
Gtk::Table* mp_MainTable = Gtk::manage(new Gtk::Table());
mp_MainTable->set_col_spacings(5);
mp_MainTable->attach(*Gtk::manage(new Gtk::Label(_("Color:"), 0, 0.5)), 0, 1,
0, 1, Gtk::FILL, Gtk::SHRINK);
mp_MainTable->attach(*Gtk::manage(new Gtk::Label(_("Width:"), 0, 0.5)), 0, 1,
1, 2, Gtk::FILL, Gtk::SHRINK);
mp_MainTable->attach(*Gtk::manage(new Gtk::Label(_("Opacity:"), 0, 0.5)), 0,
1, 2, 3, Gtk::FILL, Gtk::SHRINK);
mp_MainTable->attach(*ColorButtonBox, 1, 2, 0, 1, Gtk::FILL, Gtk::SHRINK);
mp_MainTable->attach(*WidthSpinButtonBox, 1, 2, 1, 2, Gtk::FILL, Gtk::SHRINK);
mp_MainTable->attach(*mp_OpacityHScale, 1, 2, 2, 3, Gtk::FILL | Gtk::EXPAND,
Gtk::SHRINK);
mp_MainTable->attach(*mp_ShowIDCheckBox, 0, 2, 3, 4, Gtk::FILL, Gtk::SHRINK);
// mp_MainTable->attach(*mp_CheckButtonGraph, 0, 2, 4, 5, Gtk::FILL, Gtk::SHRINK);
Gtk::Alignment* MainTableAlign = Gtk::manage(new Gtk::Alignment());
MainTableAlign->set_padding(10, 20, 20, 0);
MainTableAlign->add(*mp_MainTable);
mp_MainExpander->set_label(_("Style"));
mp_MainExpander->add(*MainTableAlign);
mp_MainExpander->show_all_children();
//******************Signal connexion*********************
mp_ColorButton->signal_color_set().connect(sigc::mem_fun(*this,
&WidgetExpanderBase::onWidgetExpanderBaseChanged));
mp_WidthSpinButton->signal_value_changed().connect(sigc::mem_fun(*this,
&WidgetExpanderBase::onWidgetExpanderBaseChanged));
mp_OpacityHScale->signal_value_changed().connect(sigc::mem_fun(*this,
&WidgetExpanderBase::onWidgetExpanderBaseChanged));
mp_ShowIDCheckBox->signal_toggled().connect(sigc::mem_fun(*this,
&WidgetExpanderBase::onWidgetExpanderBaseChanged));
// mp_CheckButtonGraph->signal_toggled().connect(
// sigc::mem_fun(*this, &WidgetExpanderBase::onWidgetExpanderBaseChanged));
}
开发者ID:VaysseB,项目名称:openfluid,代码行数:61,代码来源:WidgetExpanderBase.cpp
示例5: append
HistorySubMenu::HistorySubMenu( const std::string& url_history )
: Gtk::Menu(),
m_url_history( url_history )
{
Gtk::MenuItem* item;
// メニュー項目作成
// 履歴クリア
Gtk::Menu* menu = Gtk::manage( new Gtk::Menu() );
item = Gtk::manage( new Gtk::MenuItem( "クリアする(_C)", true ) );
menu->append( *item );
item->signal_activate().connect( sigc::mem_fun( *this, &HistorySubMenu::slot_clear ) );
item = Gtk::manage( new Gtk::MenuItem( "履歴クリア(_C)", true ) );
item->set_submenu( *menu );
append( *item );
item = Gtk::manage( new Gtk::MenuItem( "サイドバーに全て表示(_S)", true ) );
append( *item );
item->signal_activate().connect( sigc::mem_fun( *this, &HistorySubMenu::slot_switch_sideber ) );
// セパレータ
item = Gtk::manage( new Gtk::SeparatorMenuItem() );
append( *item );
// 履歴項目
for( int i = 0; i < CONFIG::get_history_size(); ++i ){
Gtk::Image* image = Gtk::manage( new Gtk::Image() );
m_vec_images.push_back( image );
Gtk::Label* label = Gtk::manage( new Gtk::Label( HIST_NONAME ) );
m_vec_label.push_back( label );
Gtk::Label *label_motion = Gtk::manage( new Gtk::Label() );
if( i == 0 ) label_motion->set_text( CONTROL::get_str_motions( CONTROL::RestoreLastTab ) );
Gtk::HBox* hbox = Gtk::manage( new Gtk::HBox() );
hbox->set_spacing( SPACING_MENU );
hbox->pack_start( *image, Gtk::PACK_SHRINK );
hbox->pack_start( *label, Gtk::PACK_SHRINK );
hbox->pack_end( *label_motion, Gtk::PACK_SHRINK );
Gtk::MenuItem* item = Gtk::manage( new Gtk::MenuItem( *hbox ) );
append( *item );
item->signal_activate().connect( sigc::bind< int >( sigc::mem_fun( *this, &HistorySubMenu::slot_active ), i ) );
item->signal_button_press_event().connect( sigc::bind< int >( sigc::mem_fun( *this, &HistorySubMenu::slot_button_press ), i ) );
}
// ポップアップメニュー作成
m_popupmenu.signal_deactivate().connect( sigc::mem_fun( *this, &HistorySubMenu::deactivate ) );
item = Gtk::manage( new Gtk::MenuItem( "タブで開く" ) );
item->signal_activate().connect( sigc::mem_fun( *this, &HistorySubMenu::slot_open_history ) );
m_popupmenu.append( *item );
item = Gtk::manage( new Gtk::SeparatorMenuItem() );
m_popupmenu.append( *item );
item = Gtk::manage( new Gtk::MenuItem( "履歴から削除" ) );
item->signal_activate().connect( sigc::mem_fun( *this, &HistorySubMenu::slot_remove_history ) );
m_popupmenu.append( *item );
item = Gtk::manage( new Gtk::SeparatorMenuItem() );
m_popupmenu.append( *item );
item = Gtk::manage( new Gtk::MenuItem( "プロパティ" ) );
item->signal_activate().connect( sigc::mem_fun( *this, &HistorySubMenu::slot_show_property ) );
m_popupmenu.append( *item );
m_popupmenu.show_all_children();
}
开发者ID:shinnya,项目名称:jd-mirror,代码行数:73,代码来源:historysubmenu.cpp
示例6: compose
void ModelStructureModule::compose()
{
mp_MainPanel = Gtk::manage(new Gtk::VPaned());
Gtk::VBox* ButtonsPanel = Gtk::manage(new Gtk::VBox());
ButtonsPanel->pack_start(*mp_StructureListToolBox->asWidget(),Gtk::PACK_SHRINK);
ButtonsPanel->set_visible(true);
Gtk::HBox* TopPanel = Gtk::manage(new Gtk::HBox());
TopPanel->set_border_width(5);
TopPanel->pack_start(*mp_ModelStructureMVP->asWidget(),Gtk::PACK_EXPAND_WIDGET,5);
TopPanel->pack_start(*ButtonsPanel, Gtk::PACK_SHRINK,5);
TopPanel->pack_start(*mp_ModelFctDetailMVP->asWidget(),Gtk::PACK_SHRINK,5);
TopPanel->set_visible(true);
TopPanel->set_border_width(6);
Gtk::HBox* BottomPanel = Gtk::manage(new Gtk::HBox());
BottomPanel->set_border_width(5);
BottomPanel->pack_start(*mp_ModelParamsPanel->asWidget());
BottomPanel->set_visible(true);
BottomPanel->set_border_width(6);
BuilderFrame* TopFrame = Gtk::manage(new BuilderFrame());
TopFrame->setLabelText(_("Model definition"));
TopFrame->set_visible(true);
TopFrame->add(*TopPanel);
BuilderFrame* BottomFrame = Gtk::manage(new BuilderFrame());
BottomFrame->setLabelText(_("Model parameters"));
BottomFrame->set_visible(true);
BottomFrame->add(*BottomPanel);
mp_MainPanel->pack1(*TopFrame, true,false);
mp_MainPanel->pack2(*BottomFrame, true,false);
mp_MainPanel->set_visible(true);
}
开发者ID:VaysseB,项目名称:openfluid,代码行数:36,代码来源:ModelStructureModule.cpp
示例7: transferFunctionUpdated
void
RVolume::initGTK()
{
_optList.reset(new Gtk::VBox);//The Vbox of options
{//Transfer function widget
_transferFunction.reset(new magnet::gtk::TransferFunction
(magnet::function::MakeDelegate
(this, &RVolume::transferFunctionUpdated)));
_transferFunction->set_size_request(-1, 100);
_optList->add(*_transferFunction); _transferFunction->show();
transferFunctionUpdated(); //Force an update of the transfer function now we have the widget
}
{//Volume renderer step size
_stepSize.reset(new Gtk::Entry);
Gtk::HBox* box = manage(new Gtk::HBox);
Gtk::Label* label = manage(new Gtk::Label("Raytrace Step Size"));
box->pack_start(*label, false, false); label->show();
box->pack_end(*_stepSize, false, false);
_stepSize->show(); _stepSize->set_text("0.01");
_optList->add(*box); box->show();
}
{//Diffusive lighting
Gtk::HBox* box = manage(new Gtk::HBox);
Gtk::Label* label = manage(new Gtk::Label("Diffuse Lighting"));
box->pack_start(*label, false, false); label->show();
_diffusiveLighting.reset(new Gtk::HScale);
box->pack_end(*_diffusiveLighting, true, true);
_diffusiveLighting->set_range(0,2);
_diffusiveLighting->set_digits(3);
_diffusiveLighting->show();
_diffusiveLighting->set_value(1.0);
_optList->add(*box); box->show();
}
{//Specular lighting
Gtk::HBox* box = manage(new Gtk::HBox);
Gtk::Label* label = manage(new Gtk::Label("Specular Lighting"));
box->pack_start(*label, false, false); label->show();
_specularLighting.reset(new Gtk::HScale);
box->pack_end(*_specularLighting, true, true);
_specularLighting->set_range(0,2);
_specularLighting->set_digits(3);
_specularLighting->show();
_specularLighting->set_value(1.0);
_optList->add(*box); box->show();
}
{//Ray Dithering
Gtk::HBox* box = manage(new Gtk::HBox);
Gtk::Label* label = manage(new Gtk::Label("Ray Dithering"));
box->pack_start(*label, false, false); label->show();
_ditherRay.reset(new Gtk::HScale);
box->pack_end(*_ditherRay, true, true);
_ditherRay->set_range(0, 1);
_ditherRay->set_digits(3);
_ditherRay->show();
_ditherRay->set_value(1.0);
_optList->add(*box); box->show();
}
_optList->show();
//Callbacks
_stepSize->signal_changed()
.connect(sigc::bind<Gtk::Entry&>(&magnet::Gtk::forceNumericEntry, *_stepSize));
_stepSize->signal_activate().connect(sigc::mem_fun(*this, &RVolume::guiUpdate));
guiUpdate();
}
开发者ID:herbsolo,项目名称:DynamO,代码行数:72,代码来源:Volume.cpp
示例8: manage
void
RLight::initGTK()
{
_optList.reset(new Gtk::VBox);
{ //Intensity
Gtk::HBox* box = manage(new Gtk::HBox);
box->show();
{
Gtk::Label* label = manage(new Gtk::Label("Intensity and Color", 0.95, 0.5));
box->pack_start(*label, true, true);
label->show();
}
_intensityEntry.reset(new Gtk::Entry);
box->pack_start(*_intensityEntry, false, false);
_intensityEntry->show(); _intensityEntry->set_width_chars(7);
_intensityEntry->set_text(boost::lexical_cast<std::string>(_intensity));
_intensityEntry->signal_changed()
.connect(sigc::bind<Gtk::Entry&>(&magnet::gtk::forceNumericEntry, *_intensityEntry));
_intensityEntry->signal_activate().connect(sigc::mem_fun(*this, &RLight::guiUpdate));
{
_lightColor.reset(new Gtk::ColorButton);
_lightColor->set_use_alpha(false);
Gdk::Color color;
color.set_rgb(_color[0] * G_MAXUSHORT, _color[1] * G_MAXUSHORT, _color[2] * G_MAXUSHORT);
_lightColor->set_color(color);
box->pack_start(*_lightColor, false, false);
_lightColor->show();
_lightColor->signal_color_set().connect(sigc::mem_fun(*this, &RLight::guiUpdate));
}
{
Gtk::Label* label = manage(new Gtk::Label("Attenuation", 0.95, 0.5));
box->pack_start(*label, true, true);
label->show();
}
_attenuationEntry.reset(new Gtk::Entry);
box->pack_start(*_attenuationEntry, false, false);
_attenuationEntry->show(); _attenuationEntry->set_width_chars(7);
_attenuationEntry->set_text(boost::lexical_cast<std::string>(_attenuation));
_attenuationEntry->signal_changed()
.connect(sigc::bind<Gtk::Entry&>(&magnet::gtk::forceNumericEntry, *_attenuationEntry));
_attenuationEntry->signal_activate().connect(sigc::mem_fun(*this, &RLight::guiUpdate));
_optList->pack_start(*box, false, false);
}
{ //Specular
Gtk::HBox* box = manage(new Gtk::HBox);
box->show();
{
Gtk::Label* label = manage(new Gtk::Label("Specular Exponent", 0.95, 0.5));
box->pack_start(*label, true, true);
label->show();
}
_specularExponentEntry.reset(new Gtk::Entry);
box->pack_start(*_specularExponentEntry, false, false);
_specularExponentEntry->show(); _specularExponentEntry->set_width_chars(7);
_specularExponentEntry->set_text(boost::lexical_cast<std::string>(_specularExponent));
_specularExponentEntry->signal_changed()
.connect(sigc::bind<Gtk::Entry&>(&magnet::gtk::forceNumericEntry, *_specularExponentEntry));
_specularExponentEntry->signal_activate().connect(sigc::mem_fun(*this, &RLight::guiUpdate));
{
Gtk::Label* label = manage(new Gtk::Label("Specular Strength", 0.95, 0.5));
box->pack_start(*label, true, true);
label->show();
}
_specularFactorEntry.reset(new Gtk::Entry);
box->pack_start(*_specularFactorEntry, false, false);
_specularFactorEntry->show(); _specularFactorEntry->set_width_chars(7);
_specularFactorEntry->set_text(boost::lexical_cast<std::string>(_specularFactor));
_specularFactorEntry->signal_changed()
.connect(sigc::bind<Gtk::Entry&>(&magnet::gtk::forceNumericEntry, *_specularFactorEntry));
_specularFactorEntry->signal_activate().connect(sigc::mem_fun(*this, &RLight::guiUpdate));
_optList->pack_start(*box, false, false);
}
{ //Specular
Gtk::HBox* box = manage(new Gtk::HBox);
box->show();
{
Gtk::Label* label = manage(new Gtk::Label("Position", 0.95, 0.5));
box->pack_start(*label, true, true);
label->show();
}
//.........这里部分代码省略.........
开发者ID:pviswanathan,项目名称:DynamO,代码行数:101,代码来源:Light.cpp
示例9: manage
PreferencesDialogImpl::PreferencesDialogImpl() : Gtk::Dialog()
{
m_editorEntry = NULL;
m_ctagsEntry = NULL;
// dialog properties
set_title("Preferences");
set_position(GTK_WIN_POS_CENTER);
set_modal(true);
set_border_width(10);
set_policy(false, false, true);
// create the Default button
Gtk::Button* defaultButton = manage(new Gtk::Button("Default"));
defaultButton->clicked.connect(SigC::slot(this, &PreferencesDialogImpl::defaultButtonCB));
defaultButton->set_usize(80, -1);
defaultButton->set_flags(GTK_CAN_DEFAULT);
defaultButton->show();
// create the Apply button
Gtk::Button* applyButton = manage(new Gtk::Button("Apply"));
applyButton->clicked.connect(SigC::slot(this, &PreferencesDialogImpl::applyButtonCB));
applyButton->set_usize(80, -1);
applyButton->set_flags(GTK_CAN_DEFAULT);
applyButton->show();
// create the OK button and make it default
Gtk::Button* okButton = manage(new Gtk::Button("OK"));
okButton->clicked.connect(SigC::slot(this, &PreferencesDialogImpl::okButtonCB));
okButton->set_usize(80, -1);
okButton->set_flags(GTK_CAN_DEFAULT);
okButton->grab_default();
okButton->show();
// create the Cancel button
Gtk::Button* cancelButton = manage(new Gtk::Button("Cancel"));
cancelButton->clicked.connect(SigC::slot(this, &PreferencesDialogImpl::cancelButtonCB));
cancelButton->set_usize(80, -1);
cancelButton->set_flags(GTK_CAN_DEFAULT);
cancelButton->show();
// add the buttons to the hbox
Gtk::HBox* hbox = get_action_area();
hbox->set_spacing(10);
hbox->pack_start(*defaultButton, false, false);
hbox->pack_start(*applyButton, false, false);
hbox->pack_start(*okButton, false, false);
hbox->pack_start(*cancelButton, false, false);
// editor stuff
Gtk::HBox* editorBox = manage(new Gtk::HBox());
Gtk::Label* editorLabel = manage(new Gtk::Label("Editor Command: "));
editorLabel->show();
editorBox->pack_start(*editorLabel, false, false);
m_editorEntry = manage(new Gtk::Entry());
m_editorEntry->set_text(g_configMap[Config::EDITOR[0]]);
m_editorEntry->show();
editorBox->pack_end(*m_editorEntry);
editorBox->show();
// ctags stuff
Gtk::HBox* ctagsBox = manage(new Gtk::HBox());
Gtk::Label* ctagsLabel = manage(new Gtk::Label("Ctags Command: "));
ctagsLabel->show();
ctagsBox->pack_start(*ctagsLabel, false, false);
m_ctagsEntry = manage(new Gtk::Entry());
m_ctagsEntry->set_text(g_configMap[Config::CTAGS[0]]);
m_ctagsEntry->show();
ctagsBox->pack_end(*m_ctagsEntry);
ctagsBox->show();
// add everything to the vbox
Gtk::VBox* vbox = get_vbox();
vbox->set_spacing(5);
vbox->pack_start(*editorBox, false, false);
vbox->pack_start(*ctagsBox, false, false);
show();
Gtk::Main::run();
}
开发者ID:Luminoth,项目名称:classview,代码行数:80,代码来源:PreferencesDialog.cpp
示例10: RadioButton
ModelGeneratorCreationDialog::ModelGeneratorCreationDialog(
openfluid::core::CoreRepository& CoreRepos,
openfluid::machine::ModelInstance* ModelInstance) :
mp_CoreRepos(&CoreRepos), mp_ModelInstance(ModelInstance)
{
mp_VarNameEntry = Gtk::manage(new Gtk::Entry());
mp_VarNameEntry->set_activates_default(true);
mp_VarNameEntry->signal_changed().connect(sigc::mem_fun(*this,
&ModelGeneratorCreationDialog::onVarNameEntryChanged));
mp_ClassCombo = Gtk::manage(new Gtk::ComboBoxText());
Gtk::RadioButton::Group RadioGrp;
mp_ScalarRadio = Gtk::manage(
new Gtk::RadioButton(RadioGrp, _("Double Value")));
mp_VectorRadio = Gtk::manage(new Gtk::RadioButton(RadioGrp,
_("Vector Value:") + std::string(" ")));
mp_VarSizeSpin = Gtk::manage(new Gtk::SpinButton());
mp_VarSizeSpin->set_numeric(true);
mp_VarSizeSpin->set_increments(1, 1);
mp_VarSizeSpin->set_range(2.0, 9.0);
mp_VarSizeSpin->set_activates_default(true);
Gtk::Table* GenInfoTable = Gtk::manage(new Gtk::Table());
GenInfoTable->set_row_spacings(10);
GenInfoTable->set_col_spacings(3);
GenInfoTable->attach(
*Gtk::manage(new Gtk::Label(_("Variable name"), 1, 0.5)), 0, 1, 0, 1,
Gtk::FILL, Gtk::SHRINK);
GenInfoTable->attach(*mp_VarNameEntry, 1, 2, 0, 1, Gtk::SHRINK, Gtk::SHRINK);
GenInfoTable->attach(*Gtk::manage(new Gtk::Label(_("Unit class"), 1, 0.5)),
0, 1, 1, 2, Gtk::FILL, Gtk::SHRINK);
GenInfoTable->attach(*mp_ClassCombo, 1, 2, 1, 2, Gtk::FILL, Gtk::SHRINK);
Gtk::HBox* VectorBox = Gtk::manage(new Gtk::HBox());
VectorBox->pack_start(*mp_VectorRadio, Gtk::PACK_SHRINK);
VectorBox->pack_start(*Gtk::manage(new Gtk::Label(_("Size"))),
Gtk::PACK_SHRINK);
VectorBox->pack_start(*mp_VarSizeSpin, Gtk::PACK_SHRINK);
mp_Dialog = new Gtk::Dialog(_("Generator creation"));
mp_InfoBarLabel = Gtk::manage(new Gtk::Label(""));
mp_InfoBar = Gtk::manage(new Gtk::InfoBar());
mp_InfoBar->set_message_type(Gtk::MESSAGE_WARNING);
((Gtk::Container*) mp_InfoBar->get_content_area())->add(*mp_InfoBarLabel);
mp_Dialog->get_vbox()->pack_start(*mp_InfoBar, Gtk::PACK_SHRINK);
mp_Dialog->get_vbox()->pack_start(*GenInfoTable, Gtk::PACK_SHRINK, 10);
mp_Dialog->get_vbox()->pack_start(*mp_ScalarRadio, Gtk::PACK_SHRINK);
mp_Dialog->get_vbox()->pack_start(*VectorBox, Gtk::PACK_SHRINK, 10);
mp_Dialog->add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
mp_Dialog->add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
mp_Dialog->set_default_response(Gtk::RESPONSE_OK);
mp_Dialog->show_all_children();
}
开发者ID:VaysseB,项目名称:openfluid,代码行数:63,代码来源:ModelGeneratorCreationDialog.cpp
示例11: populateWindow
void StimResponseEditor::populateWindow()
{
// Create the overall vbox
_dialogVBox = Gtk::manage(new Gtk::VBox(false, 12));
add(*_dialogVBox);
// Create the notebook and add it to the vbox
_notebook = Gtk::manage(new Gtk::Notebook);
_dialogVBox->pack_start(*_notebook, true, true, 0);
// The tab label items (icon + label)
Gtk::HBox* stimLabelHBox = Gtk::manage(new Gtk::HBox(false, 0));
stimLabelHBox->pack_start(
*Gtk::manage(new Gtk::Image(
GlobalUIManager().getLocalPixbufWithMask(ICON_STIM + SUFFIX_EXTENSION))),
false, false, 3
);
stimLabelHBox->pack_start(*Gtk::manage(new Gtk::Label(_("Stims"))), false, false, 3);
Gtk::HBox* responseLabelHBox = Gtk::manage(new Gtk::HBox(false, 0));
responseLabelHBox->pack_start(
*Gtk::manage(new Gtk::Image(
GlobalUIManager().getLocalPixbufWithMask(ICON_RESPONSE + SUFFIX_EXTENSION))),
false, false, 3
);
responseLabelHBox->pack_start(*Gtk::manage(new Gtk::Label(_("Responses"))), false, false, 3);
Gtk::HBox* customLabelHBox = Gtk::manage(new Gtk::HBox(false, 0));
customLabelHBox->pack_start(
*Gtk::manage(new Gtk::Image(
GlobalUIManager().getLocalPixbufWithMask(ICON_CUSTOM_STIM))),
false, false, 3
);
customLabelHBox->pack_start(*Gtk::manage(new Gtk::Label(_("Custom Stims"))), false, false, 3);
// Show the widgets before using them as label, they won't appear otherwise
stimLabelHBox->show_all();
responseLabelHBox->show_all();
customLabelHBox->show_all();
// Cast the helper class to a widget and add it to the notebook page
_stimPageNum = _notebook->append_page(*_stimEditor, *stimLabelHBox);
_responsePageNum = _notebook->append_page(*_responseEditor, *responseLabelHBox);
_customStimPageNum = _notebook->append_page(*_customStimEditor, *customLabelHBox);
if (_lastShownPage == -1)
{
_lastShownPage = _stimPageNum;
}
// Pack in dialog buttons
_dialogVBox->pack_start(createButtons(), false, false, 0);
}
开发者ID:DerSaidin,项目名称:DarkRadiant,代码行数:53,代码来源:StimResponseEditor.cpp
示例12:
Example_markers::Example_markers()
{
Gtk::VBox *vbox, *vbox2;
Gtk::HBox *hbox;
Gtk::RadioButton *rbutton;
set_title("Line Markers Example");
set_border_width(10);
m_Viewport.canvas()->set_size( 500, 400 );
vbox = Gtk::manage(new Gtk::VBox());
vbox->pack_start( m_Viewport );
m_line = Papyrus::Polyline::create();
m_line->add_vertex(-100, 0);
m_line->add_vertex(100, 0);
m_line->set_stroke( Cairo::SolidPattern::create_rgb(0.0, 0.0, 1.0) );
m_line->stroke()->set_width(3);
m_line->set_marker(Papyrus::START_MARKER, Papyrus::Marker::create());
m_line->marker(Papyrus::START_MARKER)->set_facing(Papyrus::Marker::LEFT);
m_line->marker(Papyrus::START_MARKER)->stroke()->set_width(3);
m_line->set_marker(Papyrus::END_MARKER, Papyrus::Marker::create());
m_line->marker(Papyrus::END_MARKER)->set_facing(Papyrus::Marker::RIGHT);
m_line->marker(Papyrus::END_MARKER)->stroke()->set_width(3);
m_Viewport.canvas()->add( m_line );
vbox->pack_start( *Gtk::manage( new Gtk::HSeparator() ) );
hbox = Gtk::manage(new Gtk::HBox());
vbox->pack_start( *hbox );
vbox2 = Gtk::manage(new Gtk::VBox());
vbox2->pack_start( *Gtk::manage(new Gtk::Label("Start Marker")) );
vbox2->pack_start( m_start_combobox );
Gtk::RadioButtonGroup start_facing_group;
rbutton = Gtk::manage(new Gtk::RadioButton(start_facing_group, "Left"));
rbutton->set_active();
rbutton->signal_toggled().connect(sigc::bind(sigc::mem_fun(*this, &Example_markers::on_marker_facing_changed), Papyrus::START_MARKER, Papyrus::Marker::LEFT));
vbox2->pack_start(*rbutton);
rbutton = Gtk::manage(new Gtk::RadioButton(start_facing_group, "Right"));
rbutton->signal_toggled().connect(sigc::bind(sigc::mem_fun(*this, &Example_markers::on_marker_facing_changed), Papyrus::START_MARKER, Papyrus::Marker::RIGHT));
vbox2->pack_start(*rbutton);
hbox->pack_start(*vbox2);
vbox2 = Gtk::manage(new Gtk::VBox());
vbox2->pack_start( *Gtk::manage(new Gtk::Label("End Marker")) );
vbox2->pack_start( m_end_combobox );
Gtk::RadioButtonGroup end_facing_group;
rbutton = Gtk::manage(new Gtk::RadioButton(end_facing_group, "Left"));
rbutton->signal_toggled().connect(sigc::bind(sigc::mem_fun(*this, &Example_markers::on_marker_facing_changed), Papyrus::END_MARKER, Papyrus::Marker::LEFT));
vbox2->pack_start(*rbutton);
rbutton = Gtk::manage(new Gtk::RadioButton(end_facing_group, "Right"));
rbutton->set_active();
rbutton->signal_toggled().connect(sigc::bind(sigc::mem_fun(*this, &Example_markers::on_marker_facing_changed), Papyrus::END_MARKER, Papyrus::Marker::RIGHT));
vbox2->pack_start(*rbutton);
hbox->pack_start(*vbox2);
for (unsigned i=Papyrus::Marker::FIRST_STYLE; i < Papyrus::Marker::LAST_STYLE; i++)
{
m_start_combobox.append_text( Papyrus::Marker::style_strings[i] );
m_end_combobox.append_text( Papyrus::Marker::style_strings[i] );
}
m_start_combobox.signal_changed().connect( sigc::bind(sigc::mem_fun(*this, &Example_markers::on_marker_style_changed), Papyrus::START_MARKER));
m_start_combobox.set_active(Papyrus::Marker::NONE);
m_end_combobox.signal_changed().connect( sigc::bind(sigc::mem_fun(*this, &Example_markers::on_marker_style_changed), Papyrus::END_MARKER));
m_end_combobox.set_active(Papyrus::Marker::NONE);
this->add( *vbox );
show_all();
}
开发者ID:scott--,项目名称:papyrus,代码行数:78,代码来源:example_markers.cpp
示例13: manage
Widget_Preview::Widget_Preview():
Gtk::Table(1, 5),
adj_time_scrub(Gtk::Adjustment::create(0, 0, 1000, 0, 10, 0)),
scr_time_scrub(adj_time_scrub),
b_loop(/*_("Loop")*/),
currentindex(-100000),//TODO get the value from canvas setting or preview option
timedisp(-1),
audiotime(0),
jackbutton(),
offset_widget(),
adj_sound(Gtk::Adjustment::create(0, 0, 4)),
l_lasttime("0s"),
playing(false),
singleframe(),
toolbarisshown(),
zoom_preview(true),
toolbar(),
play_button(),
pause_button(),
jackdial(NULL),
jack_enabled(false),
jack_is_playing(false),
jack_time(0),
jack_offset(0),
jack_initial_time(0)
#ifdef WITH_JACK
,
jack_client(NULL),
jack_synchronizing(false)
#endif
{
//catch key press event for shortcut keys
signal_key_press_event().connect(sigc::mem_fun(*this, &Widget_Preview::on_key_pressed));
//connect to expose events
//signal_expose_event().connect(sigc::mem_fun(*this, &studio::Widget_Preview::redraw));
//manage all the change in values etc...
//1st row: preview content
preview_window.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
//pack preview content into scrolled window
preview_window.add(draw_area);
//preview window background color - Not working anymore after version 3.16!
//https://developer.gnome.org/gtk3/unstable/GtkWidget.html#gtk-widget-override-background-color
Gdk::RGBA bg_color;
bg_color.set_red(54*256);
bg_color.set_blue(59*256);
bg_color.set_green(59*256);
draw_area.override_background_color(bg_color);
adj_time_scrub->signal_value_changed().connect(sigc::mem_fun(*this, &Widget_Preview::slider_move));
scr_time_scrub.signal_event().connect(sigc::mem_fun(*this, &Widget_Preview::scroll_move_event));
draw_area.signal_draw().connect(sigc::mem_fun(*this, &Widget_Preview::redraw));
scr_time_scrub.set_draw_value(0);
Gtk::Button *button = 0;
Gtk::Image *icon = 0;
#if 1
//2nd row: prevframe play/pause nextframe loop | halt-render re-preview erase-all
toolbar = Gtk::manage(new class Gtk::HBox(false, 0));
//prev rendered frame
Gtk::Button *prev_framebutton;
Gtk::Image *icon0 = manage(new Gtk::Image(Gtk::StockID("synfig-animate_seek_prev_frame"), Gtk::ICON_SIZE_BUTTON));
prev_framebutton = manage(new class Gtk::Button());
prev_framebutton->set_tooltip_text(_("Prev frame"));
icon0->set_padding(0,0);
icon0->show();
prev_framebutton->add(*icon0);
prev_framebutton->set_relief(Gtk::RELIEF_NONE);
prev_framebutton->show();
prev_framebutton->signal_clicked().connect(sigc::bind(sigc::mem_fun(*this, &Widget_Preview::seek_frame), -1));
toolbar->pack_start(*prev_framebutton, Gtk::PACK_SHRINK, 0);
{ //play
Gtk::Image *icon = manage(new Gtk::Image(Gtk::StockID("synfig-animate_play"), Gtk::ICON_SIZE_BUTTON));
play_button = manage(new class Gtk::Button());
play_button->set_tooltip_text(_("Play"));
icon->set_padding(0,0);
icon->show();
play_button->add(*icon);
play_button->set_relief(Gtk::RELIEF_NONE);
play_button->show();
play_button->signal_clicked().connect(sigc::mem_fun(*this, &Widget_Preview::on_play_pause_pressed));
toolbar->pack_start(*play_button, Gtk::PACK_SHRINK, 0);
}
{ //pause
Gtk::Image *icon = manage(new Gtk::Image(Gtk::StockID("synfig-animate_pause"), Gtk::ICON_SIZE_BUTTON));
pause_button = manage(new class Gtk::Button());
pause_button->set_tooltip_text(_("Pause"));
icon->set_padding(0,0);
icon->show();
pause_button->add(*icon);
//.........这里部分代码省略.........
开发者ID:blackwarthog,项目名称:synfig,代码行数:101,代码来源:preview.cpp
示例14: cargarCaracteristicasNivel
PanelEscenario::PanelEscenario(string rutaNivel,
InformableSeleccion* informable,
int cantidadJugadores,
bool nivelNuevo) {
this->cantidadJugadores = cantidadJugadores;
this->rutaNivel = rutaNivel;
this->informable = informable;
cargarCaracteristicasNivel();
int ancho = (int)(anchoFlotante * PIXELES_SOBRE_METRO);
int alto = (int)(altoFlotante * PIXELES_SOBRE_METRO);
// Inicializacion de los widgets propios
lienzo = new Lienzo(ancho, alto, cantidadJugadores, rutaFondo, rutaSuelo, informable);
paletaEscenario = new PaletaEscenario();
eliminador = new EliminadorPosicionables(lienzo);
entrada = new EntradaPajaros(anchoFlotante, altoFlotante);
if (!nivelNuevo) {
lienzo->cargarNivel(rutaNivel);
entrada->cargarNivel(rutaNivel);
}
// Inicializacion del boton para guardar el nivel
botonGuardar = new Gtk::Button();
Gtk::Image* imagenGuardar = manage(new Gtk::Image(
Gtk::StockID("gtk-floppy"), Gtk::IconSize(Gtk::ICON_SIZE_BUTTON)));
botonGuardar->set_image(*imagenGuardar);
Gtk::Label* etiquetaGuardar = manage(new Gtk::Label("Guardar nivel: "));
// Inicializacion del boton para volver a la seleccion de niveles
botonVolver = new Gtk::Button();
Gtk::Image* imagenVolver = manage(new Gtk::Image(
Gtk::StockID("gtk-go-back"), Gtk::IconSize(Gtk::ICON_SIZE_BUTTON)));
botonVolver->set_image(*imagenVolver);
botonVolver->set_tooltip_text("Volver al panel de mundos");
// Contenedores
Gtk::VBox* cajaVerticalUno = manage(new Gtk::VBox(false, 20));
cajaVerticalUno->pack_start(*paletaEscenario);
cajaVerticalUno->pack_start(*eliminador);
Gtk::VButtonBox* cajaAuxiliarUno = manage(new Gtk::VButtonBox());
cajaAuxiliarUno->set_layout(Gtk::BUTTONBOX_CENTER);
cajaAuxiliarUno->pack_start(*botonGuardar, Gtk::PACK_SHRINK);
Gtk::VButtonBox* cajaAuxiliarDos = manage(new Gtk::VButtonBox());
cajaAuxiliarDos->set_layout(Gtk::BUTTONBOX_CENTER);
cajaAuxiliarDos->pack_start(*botonVolver, Gtk::PACK_SHRINK);
Gtk::HBox* cajaHorizontalUno = manage(new Gtk::HBox(false, 20));
cajaHorizontalUno->pack_start(*etiquetaGuardar);
cajaHorizontalUno->pack_start(*cajaAuxiliarUno);
Gtk::VBox* cajaVerticalDos = manage(new Gtk::VBox(false, 20));
cajaVerticalDos->pack_start(*entrada);
cajaVerticalDos->pack_start(*cajaHorizontalUno, Gtk::PACK_SHRINK);
cajaVerticalDos->pack_start(*cajaAuxiliarDos, Gtk::PACK_SHRINK);
Gtk::HBox* cajaHorizontal = manage(new Gtk::HBox(false, 20));
Gtk::VBox* cajaVerticalLienzo = manage(new Gtk::VBox(false, 0));
cajaVerticalLienzo->pack_start(*lienzo, Gtk::PACK_SHRINK);
cajaHorizontal->pack_start(*cajaVerticalUno);
cajaHorizontal->pack_start(*cajaVerticalLienzo, Gtk::PACK_SHRINK);
cajaHorizontal->pack_start(*cajaVerticalDos);
add(*cajaHorizontal);
// Seniales
botonGuardar->signal_clicked().connect(sigc::mem_fun(*this,
&PanelEscenario::botonGuardarClickeado));
botonVolver->signal_clicked().connect(sigc::mem_fun(*this,
&PanelEscenario::volverAPanelMundos));
}
开发者ID:ezeperez26,项目名称:cerditosfuriosos,代码行数:61,代码来源:PanelEscenario.cpp
示例15: beginPortRangeSpinbuttonAdj
//.........这里部分代码省略.........
Gtk::VBox *preferencesVbox = Gtk::manage(new class Gtk::VBox(false, 10));
outputLabel->set_alignment(0,0.5);
outputLabel->set_padding(5,0);
outputLabel->set_justify(Gtk::JUSTIFY_LEFT);
outputLabel->set_line_wrap(false);
outputLabel->set_use_markup(false);
outputLabel->set_selectable(false);
workLabel->set_alignment(0,0.5);
workLabel->set_padding(5,0);
workLabel->set_justify(Gtk::JUSTIFY_LEFT);
workLabel->set_line_wrap(false);
workLabel->set_use_markup(false);
workLabel->set_selectable(false);
portRangeLabel->set_alignment(0,0.5);
portRangeLabel->set_padding(5,0);
portRangeLabel->set_justify(Gtk::JUSTIFY_LEFT);
portRangeLabel->set_line_wrap(false);
portRangeLabel->set_use_markup(false);
portRangeLabel->set_selectable(false);
leechModeLabel->set_alignment(0,0.5);
leechModeLabel->set_padding(5,0);
leechModeLabel->set_justify(Gtk::JUSTIFY_LEFT);
leechModeLabel->set_line_wrap(false);
leechModeLabel->set_use_markup(false);
leechModeLabel->set_selectable(false);
Gtk::HBox* pathHbox = Gtk::manage(new class Gtk::HBox(false, 10));
Gtk::HBox* workPathHbox = Gtk::manage(new class Gtk::HBox(false, 10));
outputPathEntry->set_flags(Gtk::CAN_FOCUS);
outputPathEntry->set_visibility(true);
outputPathEntry->set_editable(false);
outputPathEntry->set_max_length(0);
outputPathEntry->set_text("");
outputPathEntry->set_has_frame(true);
outputPathEntry->set_activates_default(false);
workPathEntry->set_flags(Gtk::CAN_FOCUS);
workPathEntry->set_visibility(true);
workPathEntry-
|
请发表评论