Lines Matching defs:dialog

113     LayerPropertiesDialog *dialog = new LayerPropertiesDialog();
115 dialog->_strategy = &strategy;
116 dialog->_setDesktop(desktop);
117 dialog->_setLayer(layer);
119 dialog->_strategy->setup(*dialog);
121 dialog->set_modal(true);
122 desktop->setWindowTransient (dialog->gobj());
123 dialog->property_destroy_with_parent() = true;
125 dialog->show();
126 dialog->present();
350 void LayerPropertiesDialog::Rename::setup(LayerPropertiesDialog &dialog) {
351 SPDesktop *desktop=dialog._desktop;
352 dialog.set_title(_("Rename Layer"));
354 dialog._layer_name_entry.set_text(( name ? name : _("Layer") ));
355 dialog._apply_button.set_label(_("_Rename"));
358 void LayerPropertiesDialog::Rename::perform(LayerPropertiesDialog &dialog) {
359 SPDesktop *desktop=dialog._desktop;
360 Glib::ustring name(dialog._layer_name_entry.get_text());
373 void LayerPropertiesDialog::Create::setup(LayerPropertiesDialog &dialog) {
374 dialog.set_title(_("Add Layer"));
377 LayerManager *mgr = dialog._desktop->layer_manager;
378 Glib::ustring newName = mgr->getNextLayerName(NULL, dialog._desktop->currentLayer()->label());
379 dialog._layer_name_entry.set_text(newName.c_str());
380 dialog._apply_button.set_label(_("_Add"));
381 dialog._setup_position_controls();
384 void LayerPropertiesDialog::Create::perform(LayerPropertiesDialog &dialog) {
385 SPDesktop *desktop=dialog._desktop;
389 if (dialog._position_visible) {
390 Gtk::ListStore::iterator activeRow(dialog._layer_position_combo.get_active());
391 position = activeRow->get_value(dialog._dropdown_columns.position);
393 Glib::ustring name(dialog._layer_name_entry.get_text());
397 SPObject *new_layer=Inkscape::create_layer(desktop->currentRoot(), dialog._layer, position);
407 void LayerPropertiesDialog::Move::setup(LayerPropertiesDialog &dialog) {
408 dialog.set_title(_("Move to Layer"));
410 dialog._layer_name_entry.set_text(_("Layer"));
411 dialog._apply_button.set_label(_("_Move"));
412 dialog._setup_layers_controls();
415 void LayerPropertiesDialog::Move::perform(LayerPropertiesDialog &dialog) {
417 SPObject *moveto = dialog._selectedLayer();
418 sp_selection_to_layer(dialog._desktop, moveto, false);