source: molecuilder/src/UIElements/UIFactory.hpp@ 5bf941

Last change on this file since 5bf941 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
11class MainWindow;
12class Dialog;
13
14class MoleculeListClass;
15class config;
16class periodentafel;
17
18struct menuPopulaters;
19
20class UIFactory
21{
22
23public:
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
31protected:
32 UIFactory();
33
34// singleton stuff
35private:
36 static UIFactory *theFactory;
37
38public:
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.