Ignore:
Timestamp:
Apr 12, 2013, 4:12:04 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/inpedit/inpedit.cpp

    r5090 r5099  
    3333 
    3434  QMenu*   menuFile = menuBar()->addMenu(tr("&File"));
     35
    3536  QAction* actOpenFile = new QAction(tr("&Open"), this);
    3637  connect(actOpenFile, SIGNAL(triggered()), this, SLOT(slotOpenFile()));
    3738  menuFile->addAction(actOpenFile);
     39
     40  QAction* actSaveFile = new QAction(tr("&Save"), this);
     41  connect(actSaveFile, SIGNAL(triggered()), this, SLOT(slotSaveFile()));
     42  menuFile->addAction(actSaveFile);
    3843}
    3944
     
    4853  QString fileName = QFileDialog::getOpenFileName(this);
    4954  if (!fileName.isEmpty()) {
    50     _tabWidget->setInputFile(fileName);
     55    _tabWidget->readInputFile(fileName);
    5156  }
    5257}
     58
     59//
     60////////////////////////////////////////////////////////////////////////////
     61void t_inpEdit::slotSaveFile() {
     62  QString fileName = QFileDialog::getSaveFileName(this);
     63  if (!fileName.isEmpty()) {
     64    _tabWidget->writeInputFile(fileName);
     65  }
     66}
Note: See TracChangeset for help on using the changeset viewer.