source:
src/UIElements/Qt4/QtUIFactory.hpp@
6ef48c
| Last change on this file since 6ef48c was 462201, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 797 bytes | |
| Rev | Line | |
|---|---|---|
| [ea94a8] | 1 | /* |
| [4cf323d] | 2 | * QtUIFactory.hpp |
| [ea94a8] | 3 | * |
| 4 | * Created on: Jan 14, 2010 | |
| 5 | * Author: crueger | |
| 6 | */ | |
| 7 | ||
| 8 | #ifndef QTUIFACTORY_HPP_ | |
| 9 | #define QTUIFACTORY_HPP_ | |
| 10 | ||
| [56f73b] | 11 | // include config.h |
| 12 | #ifdef HAVE_CONFIG_H | |
| 13 | #include <config.h> | |
| 14 | #endif | |
| 15 | ||
| 16 | ||
| [ea94a8] | 17 | #include "UIElements/UIFactory.hpp" |
| 18 | ||
| [8f67e2] | 19 | class QApplication; |
| 20 | ||
| [4cf323d] | 21 | class QtUIFactory : public UIFactory |
| [ea94a8] | 22 | { |
| 23 | friend class UIFactory; | |
| 24 | ||
| 25 | public: | |
| [4cf323d] | 26 | virtual ~QtUIFactory(); |
| [ea94a8] | 27 | |
| 28 | virtual Dialog* makeDialog(); | |
| [257c77] | 29 | virtual MainWindow* makeMainWindow(); |
| [ea94a8] | 30 | |
| [82b71a] | 31 | struct description : public UIFactory::factoryDescription { |
| 32 | description(); | |
| 33 | virtual ~description(); | |
| 34 | ||
| 35 | virtual UIFactory* makeFactory(); | |
| 36 | }; | |
| [462201] | 37 | virtual std::string getUIName(){ return "Qt4"; } |
| [82b71a] | 38 | |
| [ea94a8] | 39 | protected: |
| [4cf323d] | 40 | QtUIFactory(); |
| [8f67e2] | 41 | |
| 42 | private: | |
| [6a661c] | 43 | // faked command line arguments |
| 44 | int argc; | |
| 45 | char **argv; | |
| [8f67e2] | 46 | QApplication *app; |
| [ea94a8] | 47 | }; |
| 48 | ||
| 49 | #endif /* QTUIFACTORY_HPP_ */ |
Note:
See TracBrowser
for help on using the repository browser.
