Changeset 1487 in ntrip


Ignore:
Timestamp:
Jan 17, 2009, 6:09:02 PM (15 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1472 r1487  
    8888  _actSaveOpt = new QAction(tr("&Save && Activate Options"),this);
    8989  connect(_actSaveOpt, SIGNAL(triggered()), SLOT(slotSaveOptions()));
     90
     91  _actResetOpt = new QAction(tr("&Reset Options"),this);
     92  connect(_actResetOpt, SIGNAL(triggered()), SLOT(slotResetOptions()));
    9093
    9194  _actQuit  = new QAction(tr("&Quit"),this);
     
    851854  }
    852855  delete mountPoints;
     856}
     857
     858// Reset Options
     859////////////////////////////////////////////////////////////////////////////
     860void bncWindow::slotResetOptions() {
     861  int iRet = QMessageBox::question(this, "Reset", "Delete saved options?",
     862                                   QMessageBox::Yes, QMessageBox::No,
     863                                   QMessageBox::NoButton);
     864  if (iRet == QMessageBox::Yes) {
     865  QSettings settings;
     866  settings.remove("");
     867  }
    853868}
    854869
     
    10901105  _menuFile->addAction(_actSaveOpt);
    10911106  _menuFile->addSeparator();
     1107  _menuFile->addAction(_actResetOpt);
     1108  _menuFile->addSeparator();
    10921109  _menuFile->addAction(_actQuit);
    10931110
  • trunk/BNC/bncwindow.h

    r1439 r1487  
    6868    void slotFontSel();
    6969    void slotSaveOptions();
     70    void slotResetOptions();
    7071    void slotAddMountPoints();
    7172    void slotGetData();
     
    9192    QAction*   _actFontSel;
    9293    QAction*   _actSaveOpt;
     94    QAction*   _actResetOpt;
    9395    QAction*   _actQuit;
    9496    QAction*   _actGetData;
Note: See TracChangeset for help on using the changeset viewer.