Changeset 5059 in ntrip


Ignore:
Timestamp:
Mar 28, 2013, 7:40:12 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/GnssCenter
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/inpedit/inpedit.cpp

    r5051 r5059  
    2727// Constructor
    2828////////////////////////////////////////////////////////////////////////////
    29 t_inpEdit::t_inpEdit() : QTabWidget(), t_pluginInterface() {
     29t_inpEdit::t_inpEdit() : QTabWidget() {
    3030}
    3131
  • trunk/GnssCenter/inpedit/inpedit.h

    r5055 r5059  
    1010class t_panel;
    1111
    12 class t_inpEdit : public QTabWidget, public t_pluginInterface {
     12class t_inpEdit : public QTabWidget {
    1313 public:
    1414  t_inpEdit();
    1515  ~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&);
    1917 private:
    2018  void readFile();
     
    2725 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
    2826 public:
    29   virtual t_pluginInterface* create() {return new t_inpEdit();}
     27  virtual QWidget* create() {return new t_inpEdit();}
    3028  virtual QString getName() const {return QString("Edit Input");}
    3129};
  • trunk/GnssCenter/main/mainwin.cpp

    r5058 r5059  
    136136  t_pluginAction* action = dynamic_cast<t_pluginAction*>(sender());
    137137  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();
    141141}
    142142
  • trunk/GnssCenter/main/plugininterface.h

    r5055 r5059  
    22#define GnssCenter_PLUGININTERFACE_H
    33
     4#include <QtGui>
    45#include <QtPlugin>
    56
    67namespace GnssCenter {
    78
    8 class t_pluginInterface {
    9  public:
    10   virtual void show() = 0;
    11 };
    12 
    139class t_pluginFactoryInterface {
    1410 public:
    15   virtual t_pluginInterface* create() = 0;
     11  virtual QWidget* create() = 0;
    1612  virtual QString getName() const = 0;
    1713};
  • trunk/GnssCenter/svgmap/svgmap.cpp

    r5053 r5059  
    3636// Constructor
    3737/////////////////////////////////////////////////////////////////////////////
    38 t_svgMap::t_svgMap() : QDialog(), t_pluginInterface() {
     38t_svgMap::t_svgMap() : QDialog() {
    3939
    4040  // Map in Scalable Vector Graphics (svg) Format
  • trunk/GnssCenter/svgmap/svgmap.h

    r5055 r5059  
    1111namespace GnssCenter {
    1212
    13 class t_svgMap : public QDialog, public t_pluginInterface {
     13class t_svgMap : public QDialog {
    1414 Q_OBJECT
    1515 public:
    1616  t_svgMap();
    1717  ~t_svgMap();
    18   virtual bool expectInputFile() const {return false;}
    19   virtual void setInputFile(const QString&) {}
    20   virtual void show() {QDialog::show();}   
    2118
    2219 public slots:
     
    4946 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
    5047 public:
    51   virtual t_pluginInterface* create() {return new t_svgMap();}
     48  virtual QWidget* create() {return new t_svgMap();}
    5249  virtual QString getName() const {return QString("Map");}
    5350};
Note: See TracChangeset for help on using the changeset viewer.