Changeset 3825 in ntrip


Ignore:
Timestamp:
Apr 11, 2012, 10:26:13 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r3824 r3825  
    10041004  _teqcActionComboBox->setMaximumWidth(15*ww);
    10051005
    1006   _teqcObsFileChooser = new qtFileChooser;
     1006  _teqcObsFileChooser = new qtFileChooser(0, qtFileChooser::Files);
    10071007  _teqcObsFileChooser->setFileName(settings.value("teqcObsFile").toString());
    10081008  _teqcObsFileChooser->setWhatsThis(tr("Specify the full path to an observation file in RINEX v2 or v3 format."));
     
    10101010  _teqcObsFileChooser->setMaximumWidth(15*ww);
    10111011
    1012   _teqcNavFileChooser = new qtFileChooser;
     1012  _teqcNavFileChooser = new qtFileChooser(0, qtFileChooser::Files);
    10131013  _teqcNavFileChooser->setFileName(settings.value("teqcNavFile").toString());
    10141014  _teqcNavFileChooser->setWhatsThis(tr("Specify the full path to a RINEX v2 or v3 navigation file."));
     
    25142514////////////////////////////////////////////////////////////////////////////
    25152515void bncWindow::startPostProcessingTeqc() {
     2516#ifdef USE_POSTPROCESSING
    25162517  _runningPostProcessingTeqc = false;  // TODO
    25172518  enableStartStop();
    25182519  QMessageBox::information(this, "Information",
    25192520                           "Teqc-Processing Not Yet Implemented");
     2521#else
     2522  QMessageBox::information(this, "Information",
     2523                           "Post-Processing Not Permitted");
     2524#endif
    25202525}
    25212526
  • trunk/BNC/qtfilechooser.cpp

    r3601 r3825  
    1919// Constructor
    2020////////////////////////////////////////////////////////////////////////////////
    21 qtFileChooser::qtFileChooser(QWidget* parent) : QWidget(parent), _mode(File) {
     21qtFileChooser::qtFileChooser(QWidget* parent, qtFileChooser::Mode mode) :
     22  QWidget(parent), _mode(mode) {
    2223
    2324  QHBoxLayout* layout = new QHBoxLayout( this );
     
    5960void qtFileChooser::chooseFile() {
    6061  QString fileName;
    61   if (mode() == File) {
     62  if      (mode() == File) {
    6263    fileName = QFileDialog::getOpenFileName(this);
     64  }
     65  else if (mode() == Files) {
     66    QStringList fileNames = QFileDialog::getOpenFileNames(this);
     67    fileName = fileNames.join(",");
    6368  }
    6469  else {
  • trunk/BNC/qtfilechooser.h

    r3601 r3825  
    1313
    1414 public:
    15   qtFileChooser(QWidget* parent = 0);
     15  enum Mode {File, Files, Directory};
     16
     17  qtFileChooser(QWidget* parent = 0, qtFileChooser::Mode mode = File);
    1618  ~qtFileChooser();
    17 
    18   enum Mode {File, Directory};
    1919
    2020  QString fileName() const;
Note: See TracChangeset for help on using the changeset viewer.