Changeset 3825 in ntrip
- Timestamp:
- Apr 11, 2012, 10:26:13 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r3824 r3825 1004 1004 _teqcActionComboBox->setMaximumWidth(15*ww); 1005 1005 1006 _teqcObsFileChooser = new qtFileChooser ;1006 _teqcObsFileChooser = new qtFileChooser(0, qtFileChooser::Files); 1007 1007 _teqcObsFileChooser->setFileName(settings.value("teqcObsFile").toString()); 1008 1008 _teqcObsFileChooser->setWhatsThis(tr("Specify the full path to an observation file in RINEX v2 or v3 format.")); … … 1010 1010 _teqcObsFileChooser->setMaximumWidth(15*ww); 1011 1011 1012 _teqcNavFileChooser = new qtFileChooser ;1012 _teqcNavFileChooser = new qtFileChooser(0, qtFileChooser::Files); 1013 1013 _teqcNavFileChooser->setFileName(settings.value("teqcNavFile").toString()); 1014 1014 _teqcNavFileChooser->setWhatsThis(tr("Specify the full path to a RINEX v2 or v3 navigation file.")); … … 2514 2514 //////////////////////////////////////////////////////////////////////////// 2515 2515 void bncWindow::startPostProcessingTeqc() { 2516 #ifdef USE_POSTPROCESSING 2516 2517 _runningPostProcessingTeqc = false; // TODO 2517 2518 enableStartStop(); 2518 2519 QMessageBox::information(this, "Information", 2519 2520 "Teqc-Processing Not Yet Implemented"); 2521 #else 2522 QMessageBox::information(this, "Information", 2523 "Post-Processing Not Permitted"); 2524 #endif 2520 2525 } 2521 2526 -
trunk/BNC/qtfilechooser.cpp
r3601 r3825 19 19 // Constructor 20 20 //////////////////////////////////////////////////////////////////////////////// 21 qtFileChooser::qtFileChooser(QWidget* parent) : QWidget(parent), _mode(File) { 21 qtFileChooser::qtFileChooser(QWidget* parent, qtFileChooser::Mode mode) : 22 QWidget(parent), _mode(mode) { 22 23 23 24 QHBoxLayout* layout = new QHBoxLayout( this ); … … 59 60 void qtFileChooser::chooseFile() { 60 61 QString fileName; 61 if (mode() == File) {62 if (mode() == File) { 62 63 fileName = QFileDialog::getOpenFileName(this); 64 } 65 else if (mode() == Files) { 66 QStringList fileNames = QFileDialog::getOpenFileNames(this); 67 fileName = fileNames.join(","); 63 68 } 64 69 else { -
trunk/BNC/qtfilechooser.h
r3601 r3825 13 13 14 14 public: 15 qtFileChooser(QWidget* parent = 0); 15 enum Mode {File, Files, Directory}; 16 17 qtFileChooser(QWidget* parent = 0, qtFileChooser::Mode mode = File); 16 18 ~qtFileChooser(); 17 18 enum Mode {File, Directory};19 19 20 20 QString fileName() const;
Note:
See TracChangeset
for help on using the changeset viewer.