示例#1
0
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();
}
示例#2
0
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();
}
示例#4
0
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();
}
示例#5
0
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();
}
示例#6
0
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();
}
示例#7
0
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();
}