Changeset 5059 in ntrip
- Timestamp:
- Mar 28, 2013, 7:40:12 PM (12 years ago)
- Location:
- trunk/GnssCenter
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/inpedit/inpedit.cpp
r5051 r5059 27 27 // Constructor 28 28 //////////////////////////////////////////////////////////////////////////// 29 t_inpEdit::t_inpEdit() : QTabWidget() , t_pluginInterface(){29 t_inpEdit::t_inpEdit() : QTabWidget() { 30 30 } 31 31 -
trunk/GnssCenter/inpedit/inpedit.h
r5055 r5059 10 10 class t_panel; 11 11 12 class t_inpEdit : public QTabWidget , public t_pluginInterface{12 class t_inpEdit : public QTabWidget { 13 13 public: 14 14 t_inpEdit(); 15 15 ~t_inpEdit(); 16 virtual bool expectInputFile() const {return true;} 17 virtual void setInputFile(const QString&); 18 virtual void show() {QTabWidget::show();} 16 void setInputFile(const QString&); 19 17 private: 20 18 void readFile(); … … 27 25 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface) 28 26 public: 29 virtual t_pluginInterface* create() {return new t_inpEdit();}27 virtual QWidget* create() {return new t_inpEdit();} 30 28 virtual QString getName() const {return QString("Edit Input");} 31 29 }; -
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 }; -
trunk/GnssCenter/svgmap/svgmap.cpp
r5053 r5059 36 36 // Constructor 37 37 ///////////////////////////////////////////////////////////////////////////// 38 t_svgMap::t_svgMap() : QDialog() , t_pluginInterface(){38 t_svgMap::t_svgMap() : QDialog() { 39 39 40 40 // Map in Scalable Vector Graphics (svg) Format -
trunk/GnssCenter/svgmap/svgmap.h
r5055 r5059 11 11 namespace GnssCenter { 12 12 13 class t_svgMap : public QDialog , public t_pluginInterface{13 class t_svgMap : public QDialog { 14 14 Q_OBJECT 15 15 public: 16 16 t_svgMap(); 17 17 ~t_svgMap(); 18 virtual bool expectInputFile() const {return false;}19 virtual void setInputFile(const QString&) {}20 virtual void show() {QDialog::show();}21 18 22 19 public slots: … … 49 46 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface) 50 47 public: 51 virtual t_pluginInterface* create() {return new t_svgMap();}48 virtual QWidget* create() {return new t_svgMap();} 52 49 virtual QString getName() const {return QString("Map");} 53 50 };
Note:
See TracChangeset
for help on using the changeset viewer.