void dialog::operate4(Image imag,std::string filename) { set_default_size(300, 50); set_border_width(10); set_position(Gtk::WIN_POS_CENTER); set_resizable(false); Gtk::Box *vbox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL, 0)); add(*vbox); Gtk::Grid *grid = Gtk::manage(new Gtk::Grid); vbox->add(*grid); Gtk::Label *label = Gtk::manage(new Gtk::Label("File Name :")); grid->attach(*label,0,0,1,1); Gtk::Entry *bvalue = Gtk::manage(new Gtk::Entry()); grid->attach(*bvalue, 1, 0, 1, 1); Gtk::Label *label2 = Gtk::manage(new Gtk::Label(".bmp")); grid->attach(*label2,2,0,1,1); set_title("Save As"); bvalue->set_text("Untitled"); bvalue->set_max_length(50); Gtk::Button *bok = Gtk::manage(new Gtk::Button("OK")); bok->signal_clicked().connect(sigc::bind<Gtk::Entry*>(sigc::mem_fun(*this, &dialog::on_bok4_click), bvalue,imag,filename)); grid->attach(*bok, 2, 2, 1, 1); show_all_children(); }
// Construct the dialog LightTextureChooser::LightTextureChooser() : gtkutil::BlockingTransientWindow(_("Choose texture"), GlobalMainFrame().getTopLevelWindow()), _selector(Gtk::manage(new ShaderSelector(this, getPrefixList(), true))) // true >> render a light texture { // Set the default size of the window Gdk::Rectangle rect; if (GlobalGroupDialog().getDialogWindow()->is_visible()) { rect = gtkutil::MultiMonitor::getMonitorForWindow(GlobalGroupDialog().getDialogWindow()); } else { rect = gtkutil::MultiMonitor::getMonitorForWindow(GlobalMainFrame().getTopLevelWindow()); } set_default_size(static_cast<int>(rect.get_width()*0.6f), static_cast<int>(rect.get_height()*0.6f)); // Construct main VBox, and pack in ShaderSelector and buttons panel Gtk::VBox* vbx = Gtk::manage(new Gtk::VBox(false, 6)); vbx->pack_start(*_selector, true, true, 0); vbx->pack_start(createButtons(), false, false, 0); add(*vbx); }
HGTalkWindow::HGTalkWindow() { int w, h; // set default size // height = screen height * 80%, width = height * 45% h = (int)Gdk::Screen::get_default()->get_height() * 0.80; w = (int)h * 0.45; set_default_size(w, h); set_title(HGTALK_WINDOW_TITLE); set_position(Gtk::WIN_POS_CENTER); set_icon_from_file(HGTALK_ICON_48); set_border_width(2); set_keep_above(TRUE); HGTalkLoginBox * pHGTalkLoginBox = Gtk::manage(new HGTalkLoginBox); add(*pHGTalkLoginBox); signal_login_ok.connect(sigc::mem_fun(this, &HGTalkWindow::on_login_ok)); signal_show_hide.connect(sigc::mem_fun(this, &HGTalkWindow::on_show_hide)); show_all(); }
bool HistogramWindow::Initialize() { GetWidgets(); AttachSignals(); // Load the PGR icon LoadIcon(); set_default_icon( m_iconPixBuf ); set_default_size( 400, 400 ); // Set up initial state for row col plot m_pRadioRowColModeColumn->set_active( true ); m_pCheckbuttonRowColDisplayGrey->set_active( true ); m_pCheckbuttonRowColDisplayRed->set_active( false ); m_pCheckbuttonRowColDisplayGreen->set_active( false ); m_pCheckbuttonRowColDisplayBlue->set_active( false ); m_pCheckbuttonRowColFunctionMax->set_active( true ); m_pCheckbuttonRowColFunctionMean->set_active( true ); m_pCheckbuttonRowColFunctionMin->set_active( true ); return true; }
void SpinnerDialog::configure(const Glib::ustring & title, const Glib::ustring & text) throw() { set_title(title); set_border_width(12); set_default_size(408, 108); set_has_separator(false); Gtk::VBox * const dialog_vbox = get_vbox(); dialog_vbox->set_spacing(18); dialog_vbox->pack_start(hBox_, Gtk::PACK_EXPAND_WIDGET, 0); spinner_.set_size(Gtk::ICON_SIZE_DIALOG); hBox_.pack_start(spinner_, Gtk::PACK_SHRINK, 0); primaryLabel_.set_markup(text); primaryLabel_.set_use_markup(true); hBox_.pack_start(primaryLabel_, Gtk::PACK_EXPAND_WIDGET, 0); add_button(Gtk::Stock::CLOSE, Gtk::RESPONSE_CLOSE); set_default_response(Gtk::RESPONSE_CLOSE); show_all_children(); }
// Main constructor ModalProgressDialog::ModalProgressDialog(const Glib::RefPtr<Gtk::Window>& parent, const std::string& title) : gtkutil::TransientWindow(title, GlobalMainFrame().getTopLevelWindow()), _label(Gtk::manage(new Gtk::Label)), _progressBar(Gtk::manage(new Gtk::ProgressBar)), _aborted(false) { // Window properties set_modal(true); set_position(Gtk::WIN_POS_CENTER_ON_PARENT); set_default_size(360, 80); set_border_width(12); // Create a vbox Gtk::VBox* vbx = Gtk::manage(new Gtk::VBox(false, 12)); // Pack a progress bar into the window vbx->pack_start(*_progressBar, false, false, 0); // Pack the label into the window vbx->pack_start(*_label, true, false, 0); add(*vbx); // Pack a right-aligned cancel button at the bottom Gtk::Button* cancelButton = Gtk::manage(new Gtk::Button(Gtk::Stock::CANCEL)); cancelButton->signal_clicked().connect(sigc::mem_fun(*this, &ModalProgressDialog::_onCancel)); vbx->pack_end(*Gtk::manage(new gtkutil::RightAlignment(*cancelButton)), false, false, 0); // Connect the realize signal to remove the window decorations signal_realize().connect(sigc::mem_fun(*this, &ModalProgressDialog::_onRealize)); // Show the window show_all(); handleEvents(); }
////////////////////////////////////////////////////////////////////////// // Default constructor StudentNumberUI::StudentNumberUI(Manager* aManager, bool) : aTable(4,2,false), aTitle("Enter your student number "), nextButton("Enter"), backButton("Back") { manager = aManager; set_default_size(500, 350); set_title("Student Number Text"); set_position(Gtk::WIN_POS_CENTER_ALWAYS); add(aTable); aTable.attach(aTitle, 0, 2, 0, 1,Gtk::EXPAND,Gtk::FILL,0,70); aTable.attach(stuNumberEntry,0,2,1,2,Gtk::FILL,Gtk::FILL,0,20); aTable.attach(nextButton, 0, 1, 2, 3,Gtk::FILL,Gtk::FILL,40,40); aTable.attach(backButton, 1, 2, 2,3,Gtk::FILL,Gtk::FILL,40,40); nextButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &StudentNumberUI::on_nextButton), "Enter") ); backButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &StudentNumberUI::on_backButton), "Back") ); show_all_children(); //cout << "CONSTRUCT StudentNumberUI" << endl; }
// Construct the dialog ShaderChooser::ShaderChooser(const Glib::RefPtr<Gtk::Window>& parent, Gtk::Entry* targetEntry) : gtkutil::BlockingTransientWindow(_(LABEL_TITLE), parent), _targetEntry(targetEntry), _selector(Gtk::manage(new ShaderSelector(this, SHADER_PREFIXES))) { set_border_width(12); if (_targetEntry != NULL) { _initialShader = targetEntry->get_text(); // Set the cursor of the tree view to the currently selected shader _selector->setSelection(_initialShader); } // Set the default size and position of the window set_default_size(DEFAULT_SIZE_X, DEFAULT_SIZE_Y); // Connect the key handler to catch the ESC event signal_key_press_event().connect(sigc::mem_fun(*this, &ShaderChooser::onKeyPress), false); // Construct main VBox, and pack in the ShaderSelector and buttons panel Gtk::VBox* vbx = Gtk::manage(new Gtk::VBox(false, 3)); vbx->pack_start(*_selector, true, true, 0); vbx->pack_start(createButtons(), false, false, 0); add(*vbx); // Connect the window position tracker _windowPosition.loadFromPath(RKEY_WINDOW_STATE); _windowPosition.connect(this); _windowPosition.applyPosition(); }
////////////////////////////////////////////////////////////////////////// // Default constructor AcceptAppUI::AcceptAppUI(Manager* aManager) : aTable(2, 2, false), aLabel("Thank you for filling out an application.\n Would you like to submit? "), submitButton("Submit"), cancelButton("Cancel") { manager = aManager; set_default_size(500, 350); set_title("cuTAES"); set_modal(true); set_position(Gtk::WIN_POS_CENTER_ALWAYS); set_deletable(false); add(aTable); aTable.attach(aLabel, 0, 2, 0, 1,Gtk::EXPAND,Gtk::FILL,20,100); aTable.attach(cancelButton, 0, 1, 1, 2,Gtk::FILL,Gtk::FILL,40,50); aTable.attach(submitButton, 1, 2, 1, 2,Gtk::FILL,Gtk::FILL,40,50); submitButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &AcceptAppUI::on_submitButton), "Submit") ); cancelButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &AcceptAppUI::on_cancelButton), "Cancel") ); show_all_children(); //cout << "CONSTRUCT AcceptAppUI" << endl; }
EditorWindow::EditorWindow() { // Sets the border width of the window. set_border_width(10); set_default_size(400, 400); set_title("WALL"); sourceView.set_auto_indent(true); sourceView.set_show_line_numbers(true); Buffer::setSourceView(&sourceView); //mainVBox.set_homogeneous(false); mainVBox.pack_start(scrollWindow,true,true); mainVBox.pack_start(console,false,false); scrollWindow.add(sourceView); add(mainVBox); add_events(Gdk::KEY_PRESS_MASK); show_all_children(); console.set_visible(false); Glib::RefPtr<Gtk::CssProvider> cssProvider = Gtk::CssProvider::create(); cssProvider->load_from_file(Gio::File::create_for_path("/home/nesvi/MisProgramas/WALL/Themes/gtk.css")); get_style_context()->add_provider_for_screen(Gdk::Screen::get_default(), cssProvider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); }
JoystickListWidget::JoystickListWidget() : Gtk::Dialog("Joystick Preferences"), label("Below is a list of available joysticks on the system. Press Refresh to " "update the list, press Properties to get a separate device dialog. The " "devices listed are only joystick devices, not evdev devices or SDL " "devices, you can view the other ones via the top tab.") //frame("Device List"), { set_has_separator(false); set_default_size(450, 310); label.set_line_wrap(); scrolled.set_border_width(5); scrolled.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS); scrolled.add(treeview); get_vbox()->add(scrolled); add_button(Gtk::Stock::REFRESH, 2); add_button(Gtk::Stock::PROPERTIES, 1); add_button(Gtk::Stock::CLOSE, 0); signal_response().connect(sigc::mem_fun(this, &JoystickListWidget::on_response)); // Set model device_list = Gtk::ListStore::create(DeviceListColumns::instance()); treeview.set_model(device_list); treeview.set_headers_visible(false); treeview.append_column("Icon", DeviceListColumns::instance().icon); treeview.append_column("Name", DeviceListColumns::instance().name); treeview.signal_row_activated().connect(sigc::mem_fun(this, &JoystickListWidget::on_row_activated)); on_refresh(); }
/** * Constructor */ AboutBox::AboutBox() : Gtk::Dialog(_("About Inkscape")) { // call this first initStrings(); Gtk::Notebook *tabs=new Gtk::Notebook(); tabs->set_scrollable(); Gtk::Widget *splash=build_splash_widget(); if (splash) { tabs->append_page(*manage(splash), _("_Splash"), true); } tabs->append_page(*manage( make_scrolled_text(authors_text)), _("_Authors"), true); tabs->append_page(*manage( make_scrolled_text(translators_text)), _("_Translators"), true); tabs->append_page(*manage( make_scrolled_text(license_text)), _("_License"), true); #if WITH_GTKMM_3_0 get_content_area()->pack_end(*manage(tabs), true, true); #else get_vbox()->pack_end(*manage(tabs), true, true); #endif tabs->show_all(); add_button(Gtk::Stock::CLOSE, Gtk::RESPONSE_CLOSE); set_default_response(Gtk::RESPONSE_CLOSE); Gtk::Label *label=new Gtk::Label(); gchar *label_text = g_strdup_printf("<small>Inkscape %s</small>", Inkscape::version_string); label->set_markup(label_text); label->set_alignment(Gtk::ALIGN_END, Gtk::ALIGN_CENTER); label->set_padding(5,0); g_free(label_text); label->set_selectable(true); label->show(); #if WITH_GTKMM_3_0 get_content_area()->pack_start(*manage(label), false, false); #else get_vbox()->pack_start(*manage(label), false, false); #endif Gtk::Requisition requisition; #if GTK_CHECK_VERSION(3,0,0) gtk_widget_get_preferred_size(reinterpret_cast<GtkWidget*>(gobj()), &requisition, NULL); #else gtk_widget_size_request (reinterpret_cast<GtkWidget*>(gobj()), &requisition); #endif // allow window to shrink set_size_request(0, 0); set_default_size(requisition.width, requisition.height); }
MACHINE_CONFIG_END void kc85_4_state::kc85_5(machine_config &config) { kc85_4(config); /* internal ram */ m_ram->set_default_size("256K"); }
////////////////////////////////////////////////////////////////////////// // Default constructor SubmitAppUI::SubmitAppUI(Manager* aManager) : subTable(3, 2, true), closeButton("Close"), createButton("Create New Application"), statusLabel1("Application Status: "), appNumLabel1("Application Number: ") { manager = aManager; set_default_size(675, 475); set_title("cuTAES"); set_modal(true); set_position(Gtk::WIN_POS_CENTER_ALWAYS); set_deletable(false); add(subTable); if (manager->getCurrUGradApp() != 0) completeLabel.set_text("You have succesfully submitted your application for " + aManager->getCurrUGradApp()->getCourse()->getName()); else completeLabel.set_text("You have succesfully submitted your application for " + aManager->getCurrGradApp()->getCourse()->getName()); // Set status and app # stringstream out; if (manager->getCurrUGradApp() != 0) out << manager->getCurrUGradApp()->getAppNum(); else out << manager->getCurrGradApp()->getAppNum(); string s = out.str(); appNumLabel2.set_label(s); if (manager->getCurrUGradApp() != 0) statusLabel2.set_text(manager->getCurrUGradApp()->getStatusString(manager->getCurrUGradApp()->getStatus())); else statusLabel2.set_text(manager->getCurrGradApp()->getStatusString(manager->getCurrGradApp()->getStatus())); // Align labels to the left appNumLabel2.set_alignment(0, 0.5); statusLabel2.set_alignment(0, 0.5); // Attach all the labels subTable.attach(completeLabel, 0, 2, 0, 1); subTable.attach(appNumLabel1, 0, 1, 1, 2); subTable.attach(appNumLabel2, 1, 2, 1, 2); subTable.attach(statusLabel1, 0, 1, 2, 3); subTable.attach(statusLabel2, 1, 2, 2, 3); subTable.attach(closeButton, 0, 1, 3, 4,Gtk::FILL,Gtk::FILL,75,50); subTable.attach(createButton, 1, 2, 3, 4,Gtk::FILL,Gtk::FILL,75,50); closeButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &SubmitAppUI::on_closeButton), "Close") ); createButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &SubmitAppUI::on_createButton), "Create New Application") ); show_all_children(); //cout << "CONSTRUCT SubmitAppUI" << endl; }
MACHINE_CONFIG_END void mtx_state::mtx500(machine_config &config) { mtx512(config); /* internal ram */ m_ram->set_default_size("32K").set_extra_options("64K,96K,128K,160K,288K,416K"); }
/** Constructor, establece el tamaño de la ventana, nombre y icono. */ InterfazLauncher::InterfazLauncher() { set_title("Govocitos Updater"); set_default_size(500, 80); set_icon_from_file(UtilesLauncher::getIconoFile("logoGovocitos.png")); dialogoSelecAct = new DialogoSeleccionAct(); add(*dialogoSelecAct); }
////////////////////////////////////////////////////////////////////////// // Default constructor OnePendingUI::OnePendingUI(Manager* aManager, string crs) : aTable(3, 3, false), aLabel("List of applications sorted by Major GPA and Research Area for " + crs), backButton("Back"), cancelButton("Cancel"), saveButton("Save"), summary(8, false, Gtk::SELECTION_NONE) { manager = aManager; course = crs; set_default_size(1100, 500); set_title("cuTAES"); set_modal(true); set_position(Gtk::WIN_POS_CENTER_ALWAYS); set_deletable(false); // Scrolled window settings scrolledWindow.set_border_width(5); scrolledWindow.set_policy(Gtk::POLICY_ALWAYS, Gtk::POLICY_ALWAYS); summary.set_column_title(0, "Student #"); summary.set_column_title(1, "First Name"); summary.set_column_title(2, "Last Name"); summary.set_column_title(3, "E-mail"); summary.set_column_title(4, "Major/Research"); summary.set_column_title(5, "Year/Program"); summary.set_column_title(6, "CGPA/Supervisor"); summary.set_column_title(7, "Major GPA"); fillSummary(); scrolledWindow.add(summary); aTable.attach(aLabel, 0, 2, 0, 1,Gtk::EXPAND,Gtk::FILL,0,10); aTable.attach(scrolledWindow, 0, 3, 1, 2); aTable.attach(backButton, 0, 1, 2, 3,Gtk::FILL,Gtk::FILL,40,50); aTable.attach(cancelButton, 2, 3, 2, 3,Gtk::FILL,Gtk::FILL,40,50); aTable.attach(saveButton, 1, 2, 2, 3,Gtk::FILL,Gtk::FILL,40,50); add(aTable); backButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &OnePendingUI::on_backButton), "Back") ); cancelButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &OnePendingUI::on_cancelButton), "Cancel") ); saveButton.signal_clicked().connect( sigc::bind<Glib::ustring>( sigc::mem_fun(*this, &OnePendingUI::on_saveButton), "Save") ); show_all_children(); //cout << "CONSTRUCT OnePendingUI" << endl; }
Ganash::ApplicationWindow::ApplicationWindow() : Gtk::ApplicationWindow() { set_title("New Document - Ganash"); set_default_size(200, 200); Glib::RefPtr<Ganash::Ui::IconFactory> iconFactory = Ganash::Ui::IconFactory::create(); iconFactory->add_default(); add(*setupUi()); }
ConfigWindow::ConfigWindow() : m_shown(false), m_pos_x(0), m_pos_y(0) { set_title(applicationName + " (Configuration)"); set_default_size(400,200); add(m_Notebook); show_all_children(); }
DeviceSelector::DeviceSelector() { //domyślny rozmiar okna set_default_size(600, 300); //przyciski ok.set_label("OK"); ok.set_sensitive(false); cancel.set_label("Anuluj"); start_search.set_label("Szukaj urządzeń"); //umieszczenie prezycisków hbox.pack_start(ok); hbox.pack_start(cancel); hbox.pack_start(start_search); //łączenie przycisków z akcjami start_search.signal_clicked().connect(sigc::mem_fun(*this, &DeviceSelector::start_search_clicked)); ok.signal_clicked().connect(sigc::mem_fun(*this, &DeviceSelector::ok_clicked)); cancel.signal_clicked().connect(sigc::mem_fun(*this, &DeviceSelector::cancel_clicked)); //widok listy scrolled_window.add(view); ref_tree_model = Gtk::ListStore::create(dtn); view.set_model(ref_tree_model); scrolled_window.set_size_request(400, 300); //kolumny view.append_column("Nazwa", dtn.col_name); view.append_column("MAC", dtn.col_MAC); //umieszczenie pionowe //vbox.pack_start(scrolled_window, Gtk::PACK_EXPAND_PADDING); //vbox.pack_end(hbox, Gtk::PACK_SHRINK); //umieszczenie vboxa w oknie Gtk::Box *tmp = get_content_area(); tmp->pack_start(scrolled_window, Gtk::PACK_EXPAND_PADDING); tmp->pack_end(hbox, Gtk::PACK_SHRINK); //tmp->pack_start(vbox, Gtk::PACK_EXPAND_WIDGET); //wyświetlenie tmp->show_all_children(true); //wyświetlanie urządzeń this->signal_devices_ready().connect(sigc::mem_fun(*this, &DeviceSelector::on_devices_ready)); exiting = exited = false; //szukanie urządzeń search(); }
GxSplashBox::GxSplashBox() : Gtk::Window(Gtk::WINDOW_POPUP) { set_redraw_on_allocate(true); set_app_paintable(); signal_expose_event().connect( sigc::group(&gx_cairo::splash_expose, GTK_WIDGET(gobj()), sigc::_1, (void*)0), false); set_decorated(false); set_type_hint(Gdk::WINDOW_TYPE_HINT_SPLASHSCREEN); set_position(Gtk::WIN_POS_CENTER ); set_default_size(280,80); show_all(); }
MACHINE_CONFIG_END //------------------------------------------------- // MACHINE_CONFIG( vp111 ) //------------------------------------------------- void vip_state::vp111(machine_config &config) { vip(config); // internal ram m_ram->set_default_size("1K").set_extra_options("2K,4K"); }
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); }
ValueBox::ValueBox(value::Map* map) : Gtk::Dialog("Map", true, true), mTreeView(0), mValue(map) { mBackup = map->clone(); mTreeView = new TreeViewValue(); mTreeView->makeTreeView(*map); set_default_size(200, 200); get_vbox()->pack_start(*mTreeView); makeDialog(); show_all(); }
PaletteHint::PaletteHint(): Window(Gtk::WINDOW_POPUP) { set_default_size(200, 20); set_name("gtk-tooltip"); vb.add(caption); vb.add(info); vb.set_spacing(5); add(vb); vb.show_all(); Glib::RefPtr<CssProvider> css = Gtk::CssProvider::create(); css->load_from_data("* {" "border: 1px solid black;" "}"); get_style_context()->add_provider(css, G_MAXUINT); }
TheDummyAssistant(openfluid::machine::SimulationBlob* SimBlob) : Gtk::Assistant(), mp_SimBlob(SimBlob), mp_TestUnitsColl(0), m_Applied(false) { set_title("Dummy assistant"); set_default_size(400, 300); set_modal(true); Gtk::Label* Label1 = Gtk::manage(new Gtk::Label( "I'm a Dummy assistant for tests")); append_page(*Label1); set_page_title(*Label1, "Page 1/2"); set_page_type(*Label1, Gtk::ASSISTANT_PAGE_INTRO); set_page_complete(*Label1, true); Gtk::Label* Label2 = Gtk::manage(new Gtk::Label()); if (!mp_SimBlob) { Label2->set_text("Nb of units in TestUnits class: no CoreRepository\n" "Nothing to do"); signal_apply().connect(sigc::mem_fun(*this, &Gtk::Assistant::hide)); } else { unsigned int Size = 0; mp_TestUnitsColl = mp_SimBlob->getCoreRepository().getUnits("TestUnits"); if (mp_TestUnitsColl) Size = mp_TestUnitsColl->getList()->size(); Label2->set_text(Glib::ustring::compose( "Nb of units in TestUnits class: %1\n" "Clicking ok will add a Unit of class \"TestUnits\"", Size)); signal_apply().connect( sigc::mem_fun(*this, &TheDummyAssistant::m_apply)); } append_page(*Label2); set_page_title(*Label2, "Page 2/2"); set_page_type(*Label2, Gtk::ASSISTANT_PAGE_CONFIRM); set_page_complete(*Label2, true); signal_cancel().connect(sigc::mem_fun(*this, &Gtk::Assistant::hide)); signal_close().connect(sigc::mem_fun(*this, &Gtk::Assistant::hide)); show_all_children(); }
ValueBox::ValueBox(value::Set* set) : Gtk::Dialog("Set", true, true), mTreeView(0), mValue(set) { mBackup = set->clone(); mTreeView = new TreeViewValue(); mTreeView->makeTreeView(*set); set_default_size(200, 200); get_vbox()->pack_start(*mTreeView); makeDialog(); show_all(); }
PageFlipPanel::PageFlipPanel() : up_button("U"), down_button("D") { int width = 50; up_button.signal_clicked().connect( sigc::mem_fun(*this, &PageFlipPanel::up_button_pressed)); down_button.signal_clicked().connect( sigc::mem_fun(*this, &PageFlipPanel::down_button_pressed)); vbox.pack_start(up_button, Gtk::PACK_EXPAND_WIDGET); vbox.pack_start(down_button); add(vbox); up_button.show(); down_button.show(); vbox.show(); set_default_size(width, Gdk::screen_height()); move(Gdk::screen_width()-width, 0); set_type_hint(Gdk::WINDOW_TYPE_HINT_DOCK); show(); gulong val[12]; val[0] = 0; val[1] = width; val[2] = 0; val[3] = 0; val[4] = 0; val[5] = 0; val[6] = 0; val[7] = 200; val[8] = 0; val[9] = 0; val[10] = 0; val[11] = 0; GtkWindow* gtkWindow = gobj(); gdk_property_change( GTK_WIDGET(gtkWindow)->window, gdk_atom_intern("_NET_WM_STRUT_PARTIAL", FALSE), gdk_atom_intern ("CARDINAL", FALSE), 32, GDK_PROP_MODE_REPLACE, (unsigned char *)val, 12); }
void mtx_state::rs128(machine_config &config) { mtx512(config); /* basic machine hardware */ m_maincpu->set_addrmap(AS_IO, &mtx_state::rs128_io); m_maincpu->set_daisy_config(rs128_daisy_chain); /* devices */ Z80DART(config, m_z80dart, XTAL(4'000'000)); m_z80dart->out_int_callback().set_inputline(m_maincpu, INPUT_LINE_IRQ0); /* internal ram */ m_ram->set_default_size("128K").set_extra_options("192K,320K,448K,512K"); }
SliderWindow::SliderWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& refGlade) : Gtk::Window(cobject), volumeSlider_(0) { volumeValue_ = 0; refGlade->get_widget("volume_slider", volumeSlider_); if (volumeSlider_) { volumeSlider_->signal_value_changed().connect(sigc::mem_fun(*this, &SliderWindow::on_volume_slider)); set_default_size(volumeSlider_->get_width(), volumeSlider_->get_width()); } add_events(Gdk::LEAVE_NOTIFY_MASK); signal_leave_notify_event().connect(sigc::mem_fun(*this, &SliderWindow::on_focus_out)); set_border_width(0); set_keep_above(true); }