isis/src/qisis/objs/MosaicMainWindow/MosaicMainWindow.cpp
void MosaicMainWindow::openList() {
    // Set up the list of filters that are default with this dialog.
    QStringList filterList;
    filterList.append("List Files (*.lis)");
    filterList.append("Text Files (*.txt)");
    filterList.append("All files (*)");

    QDir directory = m_lastOpenedFile.dir();

    QString selected = QFileDialog::getOpenFileName(this, "Open Cube List",
        directory.path(), filterList.join(";;"));

    if (selected != "") {
      m_lastOpenedFile = QFileInfo(selected);
      TextFile fileList((QString) selected);

      QStringList filesInList;
      QString line;

      while(fileList.GetLine(line)) {
        filesInList.append(line);
      }

      if (filesInList.empty()) {
        IString msg = "No files were found inside the file list";
        throw IException(IException::Unknown, msg, _FILEINFO_);
      }

      openFiles(filesInList);
    }
  }
/**
   * Opens a list of cube files instead of one at a time.
   *
   */
Opens a list of cube files instead of one at a time.
Opens a list of cube files instead of one at a time .
void MosaicMainWindow::openList() {
    QStringList filterList;
    filterList.append("List Files (*.lis)");
    filterList.append("Text Files (*.txt)");
    filterList.append("All files (*)");
    QDir directory = m_lastOpenedFile.dir();
    QString selected = QFileDialog::getOpenFileName(this, "Open Cube List",
        directory.path(), filterList.join(";;"));
    if (selected != "") {
      m_lastOpenedFile = QFileInfo(selected);
      TextFile fileList((QString) selected);
      QStringList filesInList;
      QString line;
      while(fileList.GetLine(line)) {
        filesInList.append(line);
      }
      if (filesInList.empty()) {
        IString msg = "No files were found inside the file list";
        throw IException(IException::Unknown, msg, _FILEINFO_);
      }
      openFiles(filesInList);
    }
  }
void MosaicMainWindow :: openList ( ) { QStringList filterList ; filterList . append ( " " ) ; filterList . append ( " " ) ; filterList . append ( " " ) ; QDir directory = m_lastOpenedFile . dir ( ) ; QString selected = QFileDialog :: getOpenFileName ( this , " " , directory . path ( ) , filterList . join ( " " ) ) ; if ( selected != " " ) { m_lastOpenedFile = QFileInfo ( selected ) ; TextFile fileList ( ( QString ) selected ) ; QStringList filesInList ; QString line ; while ( fileList . GetLine ( line ) ) { filesInList . append ( line ) ; } if ( filesInList . empty ( ) ) { IString msg = " " ; throw IException ( IException :: Unknown , msg , _FILEINFO_ ) ; } openFiles ( filesInList ) ; } }
Opens a list of cube files instead of one at a time.
Opens a list of cube files instead of one at a time .
// Set up the list of filters that are default with this dialog.