Changeset 5059 in ntrip for trunk/GnssCenter/main
- Timestamp:
- Mar 28, 2013, 7:40:12 PM (12 years ago)
- Location:
- trunk/GnssCenter/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/main/mainwin.cpp
r5058 r5059 136 136 t_pluginAction* action = dynamic_cast<t_pluginAction*>(sender()); 137 137 qDebug() << "Action" << action; 138 t_pluginInterface* widget = action->_factIface->create();139 // QMdiSubWindow* win = _mdi->addSubWindow(svgMap);140 widget->show();138 QWidget* widget = action->_factIface->create(); 139 QMdiSubWindow* subWindow = _mdi->addSubWindow((QWidget*) widget); 140 subWindow->show(); 141 141 } 142 142 -
trunk/GnssCenter/main/plugininterface.h
r5055 r5059 2 2 #define GnssCenter_PLUGININTERFACE_H 3 3 4 #include <QtGui> 4 5 #include <QtPlugin> 5 6 6 7 namespace GnssCenter { 7 8 8 class t_pluginInterface {9 public:10 virtual void show() = 0;11 };12 13 9 class t_pluginFactoryInterface { 14 10 public: 15 virtual t_pluginInterface* create() = 0;11 virtual QWidget* create() = 0; 16 12 virtual QString getName() const = 0; 17 13 };
Note:
See TracChangeset
for help on using the changeset viewer.