ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/qtrvu/mainwindow.cxx
(Generate patch)

Comparing ray/src/qtrvu/mainwindow.cxx (file contents):
Revision 1.1 by greg, Sat Oct 22 22:38:10 2011 UTC vs.
Revision 1.3 by greg, Mon Aug 6 17:51:45 2012 UTC

# Line 150 | Line 150 | void MainWindow::connectSlots()
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()),
# Line 684 | Line 686 | void MainWindow::showViewDialog()
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);
# Line 742 | Line 748 | void MainWindow::adjustView()
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;
# Line 1012 | Line 1023 | void MainWindow::toggleIrradiance()
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()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines