|
Last change
on this file since d97af9 was d97af9, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Seperated building of mainWindow and contained Menus
- Moved code to build Menus to builder.cpp
- Moved WindowGeneration code to constructor
|
-
Property mode
set to
100644
|
|
File size:
750 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * UIFactory.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Jan 5, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef UIFACTORY_HPP_
|
|---|
| 9 | #define UIFACTORY_HPP_
|
|---|
| 10 |
|
|---|
| 11 | class MainWindow;
|
|---|
| 12 | class Dialog;
|
|---|
| 13 |
|
|---|
| 14 | class MoleculeListClass;
|
|---|
| 15 | class config;
|
|---|
| 16 | class periodentafel;
|
|---|
| 17 |
|
|---|
| 18 | struct menuPopulaters;
|
|---|
| 19 |
|
|---|
| 20 | class UIFactory
|
|---|
| 21 | {
|
|---|
| 22 |
|
|---|
| 23 | public:
|
|---|
| 24 | enum InterfaceTypes {Text};
|
|---|
| 25 | virtual ~UIFactory();
|
|---|
| 26 |
|
|---|
| 27 | // methods for creating UIElements
|
|---|
| 28 | virtual MainWindow* makeMainWindow(menuPopulaters,MoleculeListClass *, config *, periodentafel *, char *)=0;
|
|---|
| 29 | virtual Dialog* makeDialog()=0;
|
|---|
| 30 |
|
|---|
| 31 | protected:
|
|---|
| 32 | UIFactory();
|
|---|
| 33 |
|
|---|
| 34 | // singleton stuff
|
|---|
| 35 | private:
|
|---|
| 36 | static UIFactory *theFactory;
|
|---|
| 37 |
|
|---|
| 38 | public:
|
|---|
| 39 | static void makeUserInterface(InterfaceTypes type);
|
|---|
| 40 | static UIFactory* get();
|
|---|
| 41 | static void purgeInstance();
|
|---|
| 42 | };
|
|---|
| 43 |
|
|---|
| 44 | #endif /* UIFACTORY_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.