Line | |
---|
1 | #ifndef GnssCenter_INPEDIT_H
|
---|
2 | #define GnssCenter_INPEDIT_H
|
---|
3 |
|
---|
4 | #include <QtGui>
|
---|
5 | #include "plugininterface.h"
|
---|
6 |
|
---|
7 | namespace GnssCenter {
|
---|
8 |
|
---|
9 | class t_keyword;
|
---|
10 | class t_panel;
|
---|
11 |
|
---|
12 | class t_inpEdit : public QTabWidget, public t_pluginInterface {
|
---|
13 | public:
|
---|
14 | t_inpEdit();
|
---|
15 | ~t_inpEdit();
|
---|
16 | virtual bool expectInputFile() const {return true;}
|
---|
17 | virtual void setInputFile(const QString&);
|
---|
18 | virtual void show() {QTabWidget::show();}
|
---|
19 | private:
|
---|
20 | void readFile();
|
---|
21 | QString _fileName;
|
---|
22 | QMap<QString, t_keyword*> _keywords;
|
---|
23 | };
|
---|
24 |
|
---|
25 | class t_inpEditFactory : public QObject, public t_pluginFactoryInterface {
|
---|
26 | Q_OBJECT
|
---|
27 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
|
---|
28 | public:
|
---|
29 | virtual t_pluginInterface* create() {return new t_inpEdit();}
|
---|
30 | virtual QString getName() const {return QString("Edit Input");}
|
---|
31 | };
|
---|
32 |
|
---|
33 | } // namespace GnssCenter
|
---|
34 |
|
---|
35 | #endif
|
---|
36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.