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.2 by greg, Wed May 30 18:31:11 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 1012 | Line 1014 | void MainWindow::toggleIrradiance()
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()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines