source: src/UIElements/Qt4/QtUIFactory.hpp@ 88bb6b

Last change on this file since 88bb6b was 462201, checked in by Michael Ankele <ankele@…>, 13 years ago

UIFactory::getUIName() added

  • Property mode set to 100644
File size: 797 bytes
Line 
1/*
2 * QtUIFactory.hpp
3 *
4 * Created on: Jan 14, 2010
5 * Author: crueger
6 */
7
8#ifndef QTUIFACTORY_HPP_
9#define QTUIFACTORY_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
17#include "UIElements/UIFactory.hpp"
18
19class QApplication;
20
21class QtUIFactory : public UIFactory
22{
23 friend class UIFactory;
24
25public:
26 virtual ~QtUIFactory();
27
28 virtual Dialog* makeDialog();
29 virtual MainWindow* makeMainWindow();
30
31 struct description : public UIFactory::factoryDescription {
32 description();
33 virtual ~description();
34
35 virtual UIFactory* makeFactory();
36 };
37 virtual std::string getUIName(){ return "Qt4"; }
38
39protected:
40 QtUIFactory();
41
42private:
43 // faked command line arguments
44 int argc;
45 char **argv;
46 QApplication *app;
47};
48
49#endif /* QTUIFACTORY_HPP_ */
Note: See TracBrowser for help on using the repository browser.