Example #1
0
void MainWindow::on_actionNew_data_base_scheme_triggered()
{
    auto result = QMessageBox::question(this, "Внимание", tr("Все не сохраненные данные будут потеряны. Продолжить?"));
    if ( result == QMessageBox::No) return;
    NewDialog *wd = new NewDialog(this, this, storage);
    wd->show();
}
Example #2
0
int main(int argc, char *argv[])
{
	QApplication app(argc, argv);
	NewDialog *dialog = new NewDialog;
	dialog->show();
	
	return app.exec();
}
Example #3
0
void TabbedOptionsDialog::newPlant()
{
    NewDialog *newDialog = new NewDialog;
    newDialog->setModal(true);
    int result = newDialog->exec();
    if (result == QDialog::Accepted) {
        reloadTabs();
        emit cameraChanged(Plant::activePlant->movement.x(), Plant::activePlant->movement.y(),
                           Plant::activePlant->movement.z());
    }
}
Example #4
0
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    storage = new Storage();
    this->updateWindowTitle();

    ui->textEdit->setReadOnly(1);

    scene = new MyScene(storage);
    ui->graphicsView->setScene(scene);

    ui->masterKeyLabel->setText("Введите связи между атрибутами для отображения ключа универсального отношения.");

    this->show();

    NewDialog *wd = new NewDialog(this, this, storage);
    wd->show();

    connect(storage, SIGNAL(loopedMatrix()), this, SLOT(loopedMatrix()));
}