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()), |
686 |
|
{ |
687 |
|
m_viewDialogUi->angular->setChecked(true); |
688 |
|
} |
689 |
+ |
else if(ourview.type==VT_PLS) |
690 |
+ |
{ |
691 |
+ |
m_viewDialogUi->planispheric->setChecked(true); |
692 |
+ |
} |
693 |
|
else if(ourview.type==VT_CYL) |
694 |
|
{ |
695 |
|
m_viewDialogUi->cylindrical->setChecked(true); |
748 |
|
nv.type = VT_ANG; |
749 |
|
changed = true; |
750 |
|
} |
751 |
+ |
if(m_viewDialogUi->planispheric->isChecked() && nv.type != VT_PLS) |
752 |
+ |
{ |
753 |
+ |
nv.type = VT_PLS; |
754 |
+ |
changed = true; |
755 |
+ |
} |
756 |
|
if(m_viewDialogUi->cylindrical->isChecked() && nv.type != VT_CYL) |
757 |
|
{ |
758 |
|
nv.type = VT_CYL; |
1023 |
|
} |
1024 |
|
this->runCommand(command.toAscii()); |
1025 |
|
this->runCommand("new"); |
1026 |
+ |
} |
1027 |
+ |
|
1028 |
+ |
void MainWindow::loadRif() |
1029 |
+ |
{ |
1030 |
+ |
bool ok; |
1031 |
+ |
QString viewName = QInputDialog::getText(this, tr("Input view name"), |
1032 |
+ |
tr("Name of view:"), QLineEdit::Normal, |
1033 |
+ |
"", &ok); |
1034 |
+ |
if (ok && !viewName.isEmpty()) |
1035 |
+ |
{ |
1036 |
+ |
QString radFileName = QFileDialog::getOpenFileName(this, tr("Open rad File"), |
1037 |
+ |
"", tr("rad files (*.rif)")); |
1038 |
+ |
QString command = "L " + viewName + " " + radFileName; |
1039 |
+ |
this->runCommand(command.toAscii()); |
1040 |
+ |
} |
1041 |
|
} |
1042 |
|
|
1043 |
|
void MainWindow::appendToRif() |