• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ set_border_width函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中set_border_width函数的典型用法代码示例。如果您正苦于以下问题:C++ set_border_width函数的具体用法?C++ set_border_width怎么用?C++ set_border_width使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了set_border_width函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: set_border_width

gui::ImageSpace::ImageSpace() {
	set_border_width(BORDER_WIDTH);
	originalImage_.set_label("Original Image");
	currentImage_.set_label("Current Image");
	pack1(originalImage_, false, false);
	pack2(currentImage_, false, false);
	show_all_children();
}
开发者ID:mhbackes,项目名称:photo-chopp,代码行数:8,代码来源:imagespace.cpp


示例2: imageSpace_

gui::Workspace::Workspace() :
		imageSpace_(), toolBox_(imageSpace_.getOriginalImage(),
				imageSpace_.getCurrentImage()) {
	set_border_width(BORDER_WIDTH);
	pack_start(imageSpace_, true, true);
	pack_end(toolBox_, false, false);
	show_all_children();
}
开发者ID:mhbackes,项目名称:photo-chopp,代码行数:8,代码来源:workspace.cpp


示例3: DLMatrixHelper

DLWindow::DLWindow(DLControler *controler) :
	DLMatrixHelper(controler->getSize()),
	controler(controler),
	size(controler->getSize()),
	picSize((Gdk::Screen::get_default()->get_width() < Gdk::Screen::get_default()->get_height() ? Gdk::Screen::get_default()->get_width() : Gdk::Screen::get_default()->get_height()
			- ((Gdk::Screen::get_default()->get_width() < Gdk::Screen::get_default()->get_height() ? Gdk::Screen::get_default()->get_width() : Gdk::Screen::get_default()->get_height()*25)
					/100))/size),
	pixBufDog(Gdk::Pixbuf::create_from_file("./res/dog.png", picSize, picSize,false)),
	pixBufFlea(Gdk::Pixbuf::create_from_file("./res/flea.png", picSize, picSize,false)),
	pixBufVoid(Gdk::Pixbuf::create_from_file("./res/void.png", picSize, picSize,false)),
	pixBufVictory(Gdk::Pixbuf::create_from_file("./res/victory.png")),
	grid(),
	nbFlea(controler->getNbrFlea()),
	box(Gtk::ORIENTATION_VERTICAL),
	nbRun(0),
	buttonStart("Start")
{
	tab = new char[size*size];
	for (int i = 0; i < size*size; ++i)
	{
		tab[i] = '_';
	}

	buttonStart.signal_clicked().connect(sigc::mem_fun(*this, &DLWindow::startButtonClicked));

	set_border_width(10);
	add(box);
	box.pack_start(grid);
	box.pack_start(buttonStart);
	grid.override_background_color(Gdk::RGBA("black"));

	for (int i = 0; i < size*size; ++i)
	{
		listPixVoid.push_back(this->createImage(pixBufVoid));
	}

	for (int i = 0; i < nbFlea; ++i)
	{
		listPixFlea.push_back(this->createImage(pixBufFlea));
	}

	pictureDog = this->createImage(pixBufDog);
	pictureVictory = this->createImage(pixBufVictory);
	pictureVictory->show();

	for (int i = 0; i < size; ++i)
	{
		for (int j = 0; j < size; ++j)
		{
			grid.attach(*listPixVoid[this->convert(i,j)], i,j,1,1);
		}
	}

	this->flushGrid();
	this->update(tab);

	this->show_all_children(true);
}
开发者ID:Gurdil,项目名称:TPLinux_M2C_3-02,代码行数:58,代码来源:DLWindow.cpp


示例4: v_box

MiApp1::MiApp1() :
  // Gtk_Window(GTK_WINDOW_TOPLEVEL) : not needed,
  // GTK_WINDOW_TOPLEVEL is the constructor arg's default value
  v_box( false, 0 ),
  m_box1(), // creates a box to pack widgets into
  m_button1("Run"),
  m_button2("Quit"),
  aCanvas(),
  aLine1(aCanvas, Gdk_Color("#00000000cd00")),
  aLine2(aCanvas, Gdk_Color("#ff0045000000"))
{

  // this is a new call, this just sets the title of our new window to
  // "Hello Buttons!"
  set_title("Draw on a Canvas");

  // sets the border width of the window.
  set_border_width(10);

  // Sets window size
  set_usize( 640, 400);

  // Create the vertical vbox
  add(&v_box);

  // put the box into the main window.
  v_box.pack_start(m_box1, false, true, 0);

  // Now when the button is clicked, we call the "callback" function
  // with a pointer to "button 1" as it's argument
  connect_to_method(m_button1.clicked, this, &run );

  // instead of gtk_container_add, we pack this button into the invisible
  // box, which has been packed into the window.
  // note that the pack_start default arguments are true, true, 0
  m_box1.pack_start(m_button1, false, true, 0);
  
  // always remember this step, this tells GTK that our preparation
  // for this button is complete, and it can be displayed now.
  m_button1.show();

  // call the same callback function with a different argument,
  // passing a pointer to "button 2" instead.
  connect_to_method(m_button2.clicked, Gtk_Main::instance(), &Gtk_Main::quit );

  m_box1.pack_start(m_button2, false, true, 0);

  // The order in which we show the buttons is not really important,
  // but I recommend showing the window last, so it all pops up at
  // once.
  m_button2.show();

  v_box.pack_end(aCanvas, true, true, 0);
 
  // now show
  show_all();
  aCanvas.draw();
}
开发者ID:pacastillo,项目名称:gprop,代码行数:58,代码来源:MiApp1.cpp


示例5: set_border_width

HelloWorld::HelloWorld()
:m_button("Hello World")
{
	set_border_width(10);

	m_button.signal_clicked().connect(sigc::mem_fun(*this,
		&HelloWorld::on_button_clicked));
	add(m_button);
	m_button.show();
}
开发者ID:coldblaze,项目名称:evanote,代码行数:10,代码来源:helloworld.cpp


示例6: plotArea_

gui::PlotWindow::PlotWindow(const std::string title,
		const std::vector<int>& data) :
		plotArea_(data) {
	set_title(title);
	set_resizable(false);
	set_size_request(256 + BORDER_WIDTH, 256 + BORDER_WIDTH);
	set_border_width(BORDER_WIDTH);
	add(plotArea_);
	plotArea_.show();
}
开发者ID:mhbackes,项目名称:photo-chopp,代码行数:10,代码来源:plotwindow.cpp


示例7: buttonBox_

gui::ToolBox::ToolBox(const Gtk::Image& original, Gtk::Image& current) :
		Gtk::Frame(FRAME_LABEL), buttonBox_(Gtk::ORIENTATION_VERTICAL), imageOriginal_(
				original), imageCurrent_(current) {
	set_border_width(BORDER_WIDTH);
	histogramWindow_ = nullptr;
	initButtons();
	connectAll();
	addAll();
	show_all_children();
}
开发者ID:mhbackes,项目名称:photo-chopp,代码行数:10,代码来源:toolbox.cpp


示例8: set_title

Example_MarkerComboBox::Example_MarkerComboBox()
{

  set_title("Marker Combo Box");
  set_border_width(10);

  this->add( m_MarkerComboBox );

  show_all();
}
开发者ID:scott--,项目名称:papyrus,代码行数:10,代码来源:example_markercombobox.cpp


示例9: BreadCrumb

		BreadCrumb(const Raul::Path& path, SPtr<GraphView> view = SPtr<GraphView>())
			: _path(path)
			, _view(view)
		{
			assert(!view || view->graph()->path() == path);
			set_border_width(0);
			set_path(path);
			set_can_focus(false);
			show_all();
		}
开发者ID:ventosus,项目名称:ingen,代码行数:10,代码来源:BreadCrumbs.hpp


示例10: m_box

Gobby::PreferencesDialog::Page::Page():
	Gtk::Frame(), m_box(false, 12)
{
	Gtk::Frame::add(m_box);
	m_box.show();

	// Remove shadow - use the frame just as container
	set_shadow_type(Gtk::SHADOW_NONE);
	set_border_width(12);
}
开发者ID:JohnCC330,项目名称:gobby,代码行数:10,代码来源:preferences-dialog.cpp


示例11: set_title

Example_StrokeWidget::Example_StrokeWidget()
{

  set_title("Line Style Widget");
  set_border_width(10);

  this->add( m_StrokeWidget );

  show_all();
}
开发者ID:scott--,项目名称:papyrus,代码行数:10,代码来源:example_strokewidget.cpp


示例12: bigbox

GUIWindow::GUIWindow() : bigbox(Gtk::ORIENTATION_VERTICAL, 15),
	filebox(Gtk::ORIENTATION_HORIZONTAL, 5),
	sizebox(Gtk::ORIENTATION_VERTICAL, 5)
{
	resLevel = 3;
	set_border_width(10);
	bigbox.set_homogeneous(false);
	filebox.set_homogeneous(false);
	set_size_request(400, 600);
	set_title("Mosaic Masterpiece");
	add(bigbox);
	filename.set_max_length(300);
	filename.set_text("Pick an image...");
	tags.set_text("Tags...");
	tags.set_max_length(300);
	browse.set_label("Browse...");
	close.set_label("Close");
	run.set_label("RUN!");
	
	low.set_label("Low");
	med.set_label("Medium");
	high.set_label("High");
	
	sizegroup = low.get_group();
	med.set_group(sizegroup);
	high.set_group(sizegroup);
	high.set_active(true);
	
	run.signal_clicked().connect(sigc::mem_fun(*this, &GUIWindow::OnRun));
	close.signal_clicked().connect(sigc::mem_fun(*this, &GUIWindow::OnClose));
	low.signal_clicked().connect(sigc::mem_fun(*this, &GUIWindow::LowRes));
	med.signal_clicked().connect(sigc::mem_fun(*this, &GUIWindow::MedRes));
	high.signal_clicked().connect(sigc::mem_fun(*this, &GUIWindow::HighRes));
	
	status.set_label("Waiting for a picture...");
	
	//filebox.pack_start(filename);
	//filebox.pack_start(run);
	
	sizebox.pack_start(low);
	sizebox.pack_start(med);
	sizebox.pack_start(high);
	
	bigbox.pack_start(status);
	bigbox.pack_start(filename);
	bigbox.pack_start(browse);
	bigbox.pack_start(sizebox);
	bigbox.pack_start(tags);
	bigbox.pack_start(run);
	bigbox.pack_start(close);
	show_all_children();
	
	mm.OpenPipe();
}
开发者ID:k8wells,项目名称:MosaicMasterpiece,代码行数:54,代码来源:GUIWindow.cpp


示例13: BuilderFrame

    BuilderFrame()
    {
        set_shadow_type(Gtk::SHADOW_ETCHED_IN);
        set_border_width(5);

        m_Label = Gtk::manage(new Gtk::Label());
        m_Label->set_padding(3, 0);
        m_Label->set_visible(true);

        set_label_widget(*m_Label);
    }
开发者ID:alibres,项目名称:sandbox-openfluid,代码行数:11,代码来源:BuilderFrame.hpp


示例14: _stimTypes

ClassEditor::ClassEditor(StimTypes& stimTypes) :
	Gtk::VBox(false, 6),
	_stimTypes(stimTypes),
	_updatesDisabled(false)
{
	set_border_width(6);

	_list = Gtk::manage(new Gtk::TreeView);
	_list->set_size_request(TREE_VIEW_WIDTH, TREE_VIEW_HEIGHT);

	// Connect the signals to the callbacks
	_list->get_selection()->signal_changed().connect(sigc::mem_fun(*this, &ClassEditor::onSRSelectionChange));
	_list->signal_key_press_event().connect(sigc::mem_fun(*this, &ClassEditor::onTreeViewKeyPress), false);
	_list->signal_button_release_event().connect(
		sigc::bind(sigc::mem_fun(*this, &ClassEditor::onTreeViewButtonRelease), _list));

	// Add the columns to the treeview
	// ID number
	Gtk::TreeViewColumn* numCol = Gtk::manage(new Gtk::TreeViewColumn("#"));
	Gtk::CellRendererText* numRenderer = Gtk::manage(new Gtk::CellRendererText);

	numCol->pack_start(*numRenderer, false);
	numCol->add_attribute(numRenderer->property_text(), SREntity::getColumns().index);
	numCol->add_attribute(numRenderer->property_foreground(), SREntity::getColumns().colour);

	_list->append_column(*numCol);

	// The S/R icon
	Gtk::TreeViewColumn* classCol = Gtk::manage(new Gtk::TreeViewColumn(_("S/R")));

	Gtk::CellRendererPixbuf* pixbufRenderer = Gtk::manage(new Gtk::CellRendererPixbuf);

	classCol->pack_start(*pixbufRenderer, false);
	classCol->add_attribute(pixbufRenderer->property_pixbuf(), SREntity::getColumns().srClass);

	_list->append_column(*classCol);

	// The Type
	Gtk::TreeViewColumn* typeCol = Gtk::manage(new Gtk::TreeViewColumn(_("Type")));

	Gtk::CellRendererPixbuf* typeIconRenderer = Gtk::manage(new Gtk::CellRendererPixbuf);

	typeCol->pack_start(*typeIconRenderer, false);
	typeCol->add_attribute(typeIconRenderer->property_pixbuf(), SREntity::getColumns().icon);

	Gtk::CellRendererText* typeTextRenderer = Gtk::manage(new Gtk::CellRendererText);

	typeCol->pack_start(*typeTextRenderer, false);
	typeCol->add_attribute(typeTextRenderer->property_text(), SREntity::getColumns().caption);
	typeCol->add_attribute(typeTextRenderer->property_foreground(), SREntity::getColumns().colour);

	_list->append_column(*typeCol);
}
开发者ID:OpenTechEngine,项目名称:DarkRadiant,代码行数:53,代码来源:ClassEditor.cpp


示例15: set_title

Example_AffineController::Example_AffineController()
{
  set_title("Selector Example");
  set_border_width(10);

  Gtk::Table* table = Gtk::manage( new Gtk::Table() );

  // Create the selector
  m_AffineController = Papyrus::AffineController::create();
  m_AffineController->add( m_Viewport.canvas() );

  m_Viewport.canvas()->set_size( 300, 200 );

  // Create some shapes to add to the group
  Papyrus::Rectangle::pointer rectangle = Papyrus::example_rectangle( );
  Papyrus::Circle::pointer circle = Papyrus::example_circle( );
  Papyrus::Arc::pointer arc = Papyrus::example_arc( );
  Papyrus::Circle::pointer center_dot = Papyrus::Circle::create( 2.0, Papyrus::RGBA(0.0, 0.0, 0.0) );

  // Add the shapes to the group
  m_Viewport.canvas()->add( rectangle );
  m_Viewport.canvas()->add( circle );
  m_Viewport.canvas()->add( arc );
  m_Viewport.canvas()->add( center_dot );

  // Translate the shapes so they don't necessarily overlap
  rectangle->set_xywh(0, -60, 50, 30);
  circle->translate(40, 20);
  circle->set_radius(25);
  arc->translate(0, 20);

  table->attach( m_Viewport, 0, 3, 0, 1 );

  // Put Gtk labels and spin buttons for the various matrix effects in the table
  Gtk::Label* label;
  Gtk::Button* reset;
  for ( unsigned i=0; i < SCALES; i++ )
  {
    label = Gtk::manage( new Gtk::Label( label_string[i], Gtk::ALIGN_LEFT, Gtk::ALIGN_CENTER ) );
    table->attach( *label, 0, 1, i+1, i+2, Gtk::FILL );
    reset = Gtk::manage( new Gtk::Button("Reset") );
    reset->signal_clicked().connect( sigc::bind(sigc::mem_fun(*this, &Example_AffineController::on_reset), (Scale)i));
    table->attach( *reset, 2, 3, i+1, i+2, Gtk::SHRINK, Gtk::SHRINK );
    m_scale[i] = Gtk::manage( new Gtk::HScale(adjustments[i][0], adjustments[i][1], adjustments[i][2] ) );
    m_scale[i]->set_value( adjustments[i][3] );
    m_scale[i]->signal_value_changed().connect( sigc::bind( sigc::mem_fun(*this, &Example_AffineController::on_scale_changed), (Scale)i ));
    table->attach( *(m_scale[i]), 1, 2, i+1, i+2 );
  }

  this->add( *table );

  show_all();
}
开发者ID:scott--,项目名称:papyrus,代码行数:53,代码来源:example_affine_controller.cpp


示例16: img_frame

main_window::main_window() :
    img_frame("Images"),
    opt_frame("Processing Options")
{
    //create no comm image
    no_comm_image = Gdk::Pixbuf::create_from_xpm_data(no_comm_xpm);
    //initialize pictures to no_comm_image
    image.set(no_comm_image);
    processed_image.set(no_comm_image);
    //TODO: set url to something sane based on current IP configuration
    http = "http://";
    ip = "10.6.12.11";
    path = "/mjpg/video.mjpg";
    delim = "--myboundary\r\n";
    view = std::unique_ptr<camera_viewer>(new camera_viewer(http + ip + path, delim));
    //setup configuration
    setip.signal_activate().connect(sigc::mem_fun(*this, &main_window::set_ip));
    //setup menu bar
    menubar.prepend(configitem);
    configitem.set_label("Config");
    configitem.set_submenu(configmenu);
    configmenu.prepend(setip);
    setip.set_label("Set Camera IP");
    //set border width
    set_border_width(10);
    //setup images
#ifndef USE_DEPRECATED_GTKMM_API
    img_box.set_orientation(Gtk::ORIENTATION_HORIZONTAL);
#endif
    img_box.add(image);
    img_box.add(processed_image);
    img_frame.add(img_box);
    //setup options
    opt_frame.add(opts.widget());
    //setup main grid
#ifndef USE_DEPRECATED_GTKMM_API
    main_window_box.set_orientation(Gtk::ORIENTATION_HORIZONTAL);
#endif
    main_window_box.add(img_frame);
    main_window_box.add(opt_frame);
    //setup main grid
#ifndef USE_DEPRECATED_GTKMM_API
    main_box.set_orientation(Gtk::ORIENTATION_VERTICAL);
#endif
    main_box.add(menubar);
    main_box.add(main_window_box);
    add(main_box);
    show_all();
    //connect signals
    view->signal_lost_comm().connect(sigc::mem_fun(*this, &main_window::lost_comm));
    view->signal_new_image().connect(sigc::mem_fun(*this, &main_window::new_image));
    Glib::signal_idle().connect(sigc::mem_fun(*this, &main_window::idle_func));
}
开发者ID:axismagic,项目名称:axisviewer,代码行数:53,代码来源:main_window.cpp


示例17: m_Box_Top

RadioButtons::RadioButtons() : m_Box_Top(Gtk::ORIENTATION_VERTICAL),
								m_Box1(Gtk::ORIENTATION_VERTICAL, 10),
								m_Box2(Gtk::ORIENTATION_VERTICAL, 10),
								m_RadioButton1("button1"),
								m_RadioButton2("button2"),
								m_RadioButton3("button3"),
								m_Button_Close("close") {
	// Set title and border of the window
	set_title("radio buttons");
	set_border_width(10);

	// Put radio buttons 2 and 3 in the same group as 1:
	Gtk::RadioButton::Group group = m_RadioButton1.get_group();
	m_RadioButton2.set_group(group);
	m_RadioButton3.set_group(group);

	// Add outer box to the window (because the window
	// can only contain a single widget)
	add(m_Box_Top);

	// Put the inner boxes and the separator in the outer box:
	m_Box_Top.pack_start(m_Box1);
	m_Box_Top.pack_start(m_Separator);
	m_Box_Top.pack_start(m_Box2);

	// Set the inner boxes' borders
	m_Box1.set_border_width(10);
	m_Box2.set_border_width(10);

	// Put the radio buttons in Box1:
	m_Box1.pack_start(m_RadioButton1);
	m_Box1.pack_start(m_RadioButton2);
	m_Box1.pack_start(m_RadioButton3);

	// Set eh second button active
	m_RadioButton2.set_active();

	// Put Close button in Box2
	m_Box2.pack_start(m_Button_Close);

	// Make the button the default widget
	m_Button_Close.set_can_default();
	m_Button_Close.grab_default();

	// Connect the clicked signal of the button to
	// RadioButtons::on_button_clicked()
	m_Button_Close.signal_clicked().connect(sigc::mem_fun(*this,
		&RadioButtons::on_button_clicked));

	// Show all children of the window
	show_all_children();
}//RadioButtons::RadioButtons
开发者ID:daglamier22,项目名称:guitutorials,代码行数:52,代码来源:radiobuttons.cpp


示例18: Dialog

CreateWireframeDialog::CreateWireframeDialog(const Glib::ustring & title) :
    Dialog(title, true),
    m_filled(false),
    m_minVertices(false),
    m_coordBox(Gtk::manage(new CoordBox())),
    m_nameLabel(Gtk::manage(new Gtk::Label("Name: "))),
    m_nameEntry(Gtk::manage(new Gtk::Entry()))
{
    set_size_request(-1, 230);
    set_resizable(false);
    set_border_width(10);

    // Entry for the name
    Gtk::HBox * const name_hbox = Gtk::manage(new Gtk::HBox());
    name_hbox->pack_start(*m_nameLabel, Gtk::PACK_SHRINK, 0);
    name_hbox->pack_start(*m_nameEntry, Gtk::PACK_EXPAND_WIDGET, 0);
    name_hbox->set_spacing(0);
    name_hbox->set_homogeneous(false);

    // Check box for filling
    Gtk::CheckButton * const filled_button = Gtk::manage(new Gtk::CheckButton("Filled shape"));
    filled_button->signal_toggled().connect(sigc::mem_fun(*this, &CreateWireframeDialog::on_filled_button_toggled));
    filled_button->set_active(false);

    get_content_area()->pack_start(*name_hbox, Gtk::PACK_SHRINK, 5);
    get_content_area()->pack_start(*filled_button, Gtk::PACK_SHRINK, 5);

    Gtk::Frame * const coord_frame = Gtk::manage(new Gtk::Frame("Points"));
    Gtk::ScrolledWindow * const scrolled_window = Gtk::manage(new Gtk::ScrolledWindow());

    scrolled_window->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
    scrolled_window->set_size_request(-1, 150);
    scrolled_window->set_border_width(5);
    scrolled_window->add(*m_coordBox);
    m_coordBox->set_spacing(0);
    coord_frame->add(*scrolled_window);
    get_content_area()->pack_start(*coord_frame, Gtk::PACK_SHRINK, 0);

    // Entries for the coordinates
    m_coordBox->add_coord();
    m_coordBox->add_coord();
    m_coordBox->add_coord();

    // Add buttons (from left to right)
    add_button("Cancel", Gtk::RESPONSE_CANCEL);
    add_button("Add point", Gtk::RESPONSE_APPLY);
    add_button("OK", Gtk::RESPONSE_OK);

    signal_response().connect_notify(sigc::mem_fun(*this, &CreateWireframeDialog::on_my_response));
    set_default_response(Gtk::RESPONSE_OK);
    show_all_children();
}
开发者ID:LeonardoEichs,项目名称:MyIGS,代码行数:52,代码来源:CreateWireframeDialog.cpp


示例19: m_CommonBuildOptions

MarketBuildOptionsDialog::MarketBuildOptionsDialog(const std::string& CommonBuildOptions, const std::string& BuildOptions, const std::string FuncID)
: Gtk::Dialog(), m_CommonBuildOptions(CommonBuildOptions),m_BuildOptions(BuildOptions),m_FuncID(FuncID)
{

  set_size_request(450,-1);
  set_border_width(6);

  Gtk::Label* InfoLabel = Gtk::manage(new Gtk::Label());
  InfoLabel->set_markup(std::string("<i>")+_("These options control the builds of source packages.\nChanging this is at your own risk.")+std::string("</i>"));
  InfoLabel->set_justify(Gtk::JUSTIFY_CENTER);

  get_vbox()->pack_start(*InfoLabel);

  Gtk::Label* CommonOptsLabel = Gtk::manage(new Gtk::Label());

  if (!FuncID.empty())
    CommonOptsLabel->set_markup(_("<u>Common source build options:</u>\n")
                                +openfluid::tools::ReplaceEmptyString(CommonBuildOptions,_("<i>none</i>")));
  else
    CommonOptsLabel->set_label("");

  CommonOptsLabel->set_alignment(0,0.5);
  get_vbox()->pack_start(*CommonOptsLabel,Gtk::PACK_SHRINK,12);


  Gtk::Label* EditLabel = Gtk::manage(new Gtk::Label());
  if (!FuncID.empty())
  {
    EditLabel->set_label(_("Specific build options for ")+FuncID+_(":"));
  }
  else
  {
    EditLabel->set_label(_("Common source build options:"));
  }
  EditLabel->set_alignment(0,0.5);
  get_vbox()->pack_start(*EditLabel);

  if (FuncID.empty()) m_OptionsEntry.set_text(CommonBuildOptions);
  else m_OptionsEntry.set_text(BuildOptions);
  get_vbox()->pack_start(m_OptionsEntry);

  add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
  add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);

  if(m_FuncID.empty())
    set_title(_("Common build options for all source packages"));
  else
    set_title(_("Build options for ") + m_FuncID);


  show_all_children();
}
开发者ID:VaysseB,项目名称:openfluid,代码行数:52,代码来源:MarketBuildOptionsDialog.cpp


示例20: GlobalMainFrame

FindAndReplaceShader::FindAndReplaceShader() :
	gtkutil::BlockingTransientWindow(_(FINDDLG_WINDOW_TITLE), GlobalMainFrame().getTopLevelWindow())
{
	set_default_size(FINDDLG_DEFAULT_SIZE_X, FINDDLG_DEFAULT_SIZE_Y);
	set_border_width(12);
	set_type_hint(Gdk::WINDOW_TYPE_HINT_DIALOG);

	// Create all the widgets
	populateWindow();

	// Propagate shortcuts to the main window
	GlobalEventManager().connectDialogWindow(this);
}
开发者ID:DerSaidin,项目名称:DarkRadiant,代码行数:13,代码来源:FindShader.cpp



注:本文中的set_border_width函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ set_buffer函数代码示例发布时间:2022-05-30
下一篇:
C++ set_bootloader_message函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap