Changeset 5055 in ntrip for trunk/GnssCenter/main
- Timestamp:
- Mar 28, 2013, 7:11:20 PM (12 years ago)
- Location:
- trunk/GnssCenter/main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/main/mainwin.cpp
r5054 r5055 19 19 #include "settings.h" 20 20 #include "mdiarea.h" 21 #include "plugininterface.h"22 21 23 22 using namespace std; … … 31 30 _mdi = new t_mdiArea(0); 32 31 setCentralWidget(_mdi); 32 33 createMenu(); 34 createToolBar(); 35 createStatusBar(); 33 36 34 37 // Handle Plugins … … 54 57 } 55 58 56 createMenu();57 createToolBar();58 createStatusBar();59 59 } 60 60 … … 92 92 connect(_actQuit, SIGNAL(triggered()), SLOT(close())); 93 93 94 _actEditInput = new QAction(tr("&Edit Input File"),this);95 connect(_actEditInput, SIGNAL(triggered()), SLOT(slotEditInput()));96 97 _actMap = new QAction(tr("Show &Map"),this);98 connect(_actMap, SIGNAL(triggered()), SLOT(slotMap()));99 100 94 _actHelp = new QAction(tr("&Help Contents"),this); 101 95 connect(_actHelp, SIGNAL(triggered()), SLOT(slotHelp())); … … 113 107 _menuFile->addAction(_actQuit); 114 108 115 _menuNew = menuBar()->addMenu(tr("&New")); 116 _menuNew->addAction(_actEditInput); 117 _menuNew->addAction(_actMap); 109 _menuPlugins = menuBar()->addMenu(tr("&Plugins")); 118 110 119 111 _menuHlp = menuBar()->addMenu(tr("&Help")); … … 141 133 } 142 134 143 // Edit RTNet Input File135 // 144 136 //////////////////////////////////////////////////////////////////////////// 145 void t_mainWin::slotEditInput() { 146 // QString fileName = QFileDialog::getOpenFileName(this); 147 // if (!fileName.isEmpty()) { 148 // t_inpEdit* inpEdit = new t_inpEdit(); 149 // inpEdit->setInputFile(fileName); 150 // QMdiSubWindow* win = _mdi->addSubWindow(inpEdit); 151 // win->show(); 152 // } 153 } 154 155 // Edit RTNet Input File 156 //////////////////////////////////////////////////////////////////////////// 157 void t_mainWin::slotMap() { 137 void t_mainWin::slotStartPlugin() { 158 138 // t_svgMap* svgMap = new t_svgMap(); 159 139 // QMdiSubWindow* win = _mdi->addSubWindow(svgMap); -
trunk/GnssCenter/main/mainwin.h
r5001 r5055 3 3 4 4 #include <QtGui> 5 #include "plugininterface.h" 5 6 6 7 namespace GnssCenter { 7 8 8 9 class t_mdiArea; 10 11 class t_pluginAction : public QAction { 12 public: 13 t_pluginAction(QObject* parent, t_pluginFactoryInterface* factIface) : 14 QAction(factIface->getName(), parent), _factIface(factIface) {} 15 t_pluginFactoryInterface* _factIface; 16 }; 9 17 10 18 class t_mainWin : public QMainWindow { … … 18 26 void slotFontSel(); 19 27 void slotSaveOptions(); 20 void slotEditInput(); 21 void slotMap(); 28 void slotStartPlugin(); 22 29 void slotHelp(); 23 30 void slotAbout(); … … 34 41 35 42 QMenu* _menuFile; 36 QMenu* _menu New;43 QMenu* _menuPlugins; 37 44 QMenu* _menuHlp; 38 45 … … 40 47 QAction* _actSaveOpt; 41 48 QAction* _actQuit; 42 QAction* _actEditInput;43 QAction* _actMap;44 49 QAction* _actHelp; 45 50 QAction* _actAbout; -
trunk/GnssCenter/main/plugininterface.h
r5052 r5055 14 14 public: 15 15 virtual t_pluginInterface* create() = 0; 16 virtual QString getName() const = 0; 16 17 }; 17 18
Note:
See TracChangeset
for help on using the changeset viewer.