150 |
|
this, SLOT(saveImage())); |
151 |
|
connect(m_ui->loadView, SIGNAL(triggered()), |
152 |
|
this, SLOT(loadView())); |
153 |
+ |
connect(m_ui->loadRif, SIGNAL(triggered()), |
154 |
+ |
this, SLOT(loadRif())); |
155 |
|
connect(m_ui->backfaceVisibility, SIGNAL(triggered()), |
156 |
|
this, SLOT(toggleBackfaceVisibility())); |
157 |
|
connect(m_ui->grayscale, SIGNAL(triggered()), |
1014 |
|
} |
1015 |
|
this->runCommand(command.toAscii()); |
1016 |
|
this->runCommand("new"); |
1017 |
+ |
} |
1018 |
+ |
|
1019 |
+ |
void MainWindow::loadRif() |
1020 |
+ |
{ |
1021 |
+ |
bool ok; |
1022 |
+ |
QString viewName = QInputDialog::getText(this, tr("Input view name"), |
1023 |
+ |
tr("Name of view:"), QLineEdit::Normal, |
1024 |
+ |
"", &ok); |
1025 |
+ |
if (ok && !viewName.isEmpty()) |
1026 |
+ |
{ |
1027 |
+ |
QString radFileName = QFileDialog::getOpenFileName(this, tr("Open rad File"), |
1028 |
+ |
"", tr("rad files (*.rif)")); |
1029 |
+ |
QString command = "L " + viewName + " " + radFileName; |
1030 |
+ |
this->runCommand(command.toAscii()); |
1031 |
+ |
} |
1032 |
|
} |
1033 |
|
|
1034 |
|
void MainWindow::appendToRif() |