void DraggableElement::changePropertiesPaletteActionTriggered() { QAction *action = static_cast<QAction *>(sender()); Id id = action->data().value<Id>(); PropertiesDialog *propDialog = new PropertiesDialog(mMainWindow, mEditorManagerProxy, id); propDialog->setModal(true); propDialog->show(); }
void GameList::OpenProperties() { const auto game = GetSelectedGame(); if (!game) return; PropertiesDialog* properties = new PropertiesDialog(this, *game); connect(properties, &PropertiesDialog::OpenGeneralSettings, this, &GameList::OpenGeneralSettings); properties->show(); }
int main(int argc, char *argv[]) { QApplication a(argc, argv); FileExplorer w; w.show(); GUI g; g.show(); PropertiesDialog d; d.show(); return a.exec(); }
void ClintWindow::editVizProperties() { if (m_projection == nullptr && m_projectionOverview == nullptr) return; VizProperties *props = nullptr; if (m_projection) props = m_projection->vizProperties(); else props = m_projectionOverview->vizProperties(); if (props == nullptr) return; PropertiesDialog *dialog = new PropertiesDialog(props); // connect(dialog, &QDialog::rejected, dialog, &QDialog::deleteLater); connect(dialog, &PropertiesDialog::parameterChange, this, &ClintWindow::changeParameter); dialog->show(); }
void LayerTreeModel::showPropertyDialog(const QModelIndex &index) { if (!index.isValid()) return; const QList<AbstractLayer *>& layers = m_map->layers(); if (layers.size() <= index.row()) { Log.e(QString("Invalid index %1").arg(index.row())); return; } AbstractLayer *layer = layers.at(index.row()); LayerPropertyWidgetCreator widgetCreator; IDialogService *dialogService = m_serviceLocator->locate<IDialogService>(); PropertiesDialog* dlg = dialogService->createPropertyDialog(widgetCreator.createLayerPropertiesWidget(layer)); dlg->show(); }
void PropertiesDialog::showDialogFor(Layer *layer, MapDocument *mapDocument, QWidget *parent) { ObjectGroup *objectGroup = dynamic_cast<ObjectGroup*>(layer); PropertiesDialog *dialog; if (objectGroup) { dialog = new ObjectGroupPropertiesDialog(mapDocument, objectGroup, parent); } else { dialog = new PropertiesDialog(tr("Layer"), layer, mapDocument->undoStack(), parent); } dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->exec(); }
void GameList::OpenProperties() { PropertiesDialog* properties = new PropertiesDialog(this, GameFile(GetSelectedGame())); properties->show(); }
void TermMainWindow::actProperties_triggered() { PropertiesDialog *p = new PropertiesDialog(this); connect(p, SIGNAL(propertiesChanged()), this, SLOT(propertiesChanged())); p->exec(); }