Changeset 5056 in ntrip
- Timestamp:
- Mar 28, 2013, 7:19:11 PM (12 years ago)
- Location:
- trunk/GnssCenter/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/main/mainwin.cpp
r5055 r5056 44 44 QPluginLoader loader(pluginsDir.absoluteFilePath(fileName)); 45 45 QObject* object = loader.instance(); 46 qDebug() << pluginsDir.absoluteFilePath(fileName) << object;47 46 if (object) { 48 47 t_pluginFactoryInterface* plugin = qobject_cast<t_pluginFactoryInterface*>(object); 49 qDebug() << "Plugin: " << plugin;50 48 if (plugin) { 51 for (int ii = 1; ii <= 2; ii++) { 52 t_pluginInterface* widget = plugin->create(); 53 widget->show(); 54 } 49 t_pluginAction* action = new t_pluginAction(this, plugin); 50 _menuPlugins->addAction(action); 51 connect(action, SIGNAL(triggered()), SLOT(slotStartPlugin())); 55 52 } 56 53 } … … 83 80 // Create Actions 84 81 // -------------- 85 _actFontSel = new QAction(tr("Select &Font"),this);86 connect( _actFontSel, SIGNAL(triggered()), SLOT(slotFontSel()));82 QAction* actFontSel = new QAction(tr("Select &Font"),this); 83 connect(actFontSel, SIGNAL(triggered()), SLOT(slotFontSel())); 87 84 88 _actSaveOpt = new QAction(tr("&Save && Reread Configuration"),this);89 connect( _actSaveOpt, SIGNAL(triggered()), SLOT(slotSaveOptions()));85 QAction* actSaveOpt = new QAction(tr("&Save && Reread Configuration"),this); 86 connect(actSaveOpt, SIGNAL(triggered()), SLOT(slotSaveOptions())); 90 87 91 _actQuit = new QAction(tr("&Quit"),this);92 connect( _actQuit, SIGNAL(triggered()), SLOT(close()));88 QAction* actQuit = new QAction(tr("&Quit"),this); 89 connect(actQuit, SIGNAL(triggered()), SLOT(close())); 93 90 94 _actHelp = new QAction(tr("&Help Contents"),this);95 connect( _actHelp, SIGNAL(triggered()), SLOT(slotHelp()));91 QAction* actHelp = new QAction(tr("&Help Contents"),this); 92 connect(actHelp, SIGNAL(triggered()), SLOT(slotHelp())); 96 93 97 _actAbout = new QAction(tr("&About"),this);98 connect( _actAbout, SIGNAL(triggered()), SLOT(slotAbout()));94 QAction* actAbout = new QAction(tr("&About"),this); 95 connect(actAbout, SIGNAL(triggered()), SLOT(slotAbout())); 99 96 100 97 // Create Menu 101 98 // ----------- 102 99 _menuFile = menuBar()->addMenu(tr("&File")); 103 _menuFile->addAction( _actFontSel);100 _menuFile->addAction(actFontSel); 104 101 _menuFile->addSeparator(); 105 _menuFile->addAction( _actSaveOpt);102 _menuFile->addAction(actSaveOpt); 106 103 _menuFile->addSeparator(); 107 _menuFile->addAction( _actQuit);104 _menuFile->addAction(actQuit); 108 105 109 106 _menuPlugins = menuBar()->addMenu(tr("&Plugins")); 110 107 111 108 _menuHlp = menuBar()->addMenu(tr("&Help")); 112 _menuHlp->addAction( _actHelp);113 _menuHlp->addAction( _actAbout);109 _menuHlp->addAction(actHelp); 110 _menuHlp->addAction(actAbout); 114 111 } 115 112 … … 136 133 //////////////////////////////////////////////////////////////////////////// 137 134 void t_mainWin::slotStartPlugin() { 135 qDebug() << "slotStartPlugin" << sender(); 138 136 // t_svgMap* svgMap = new t_svgMap(); 139 137 // QMdiSubWindow* win = _mdi->addSubWindow(svgMap); -
trunk/GnssCenter/main/mainwin.h
r5055 r5056 44 44 QMenu* _menuHlp; 45 45 46 QAction* _actFontSel;47 QAction* _actSaveOpt;48 QAction* _actQuit;49 QAction* _actHelp;50 QAction* _actAbout;51 52 46 QToolBar* _fileToolBar; 53 47 QToolBar* _editToolBar;
Note:
See TracChangeset
for help on using the changeset viewer.