Last change
on this file since 7897 was
7868,
checked in by bensch, 19 years ago
|
trunk: merge Check in the Event-changes:
r7867 | bensch | 2006-05-26 13:19:46 +0200 (Fri, 26 May 2006) | 1 line
Events better subscribed
r7866 | bensch | 2006-05-26 13:11:10 +0200 (Fri, 26 May 2006) | 1 line
Events are subscribed at the EventListener, and not the EventHandler
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Benjamin Grauer |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_GUI |
---|
17 | |
---|
18 | #include "glgui_handler.h" |
---|
19 | #include "event_handler.h" |
---|
20 | |
---|
21 | #include "glgui_mainwidget.h" |
---|
22 | |
---|
23 | namespace OrxGui |
---|
24 | { |
---|
25 | |
---|
26 | /** |
---|
27 | * standard constructor |
---|
28 | */ |
---|
29 | GLGuiHandler::GLGuiHandler () |
---|
30 | { |
---|
31 | this->setClassID(CL_GLGUI_HANDLER, "GLGuiHandler"); |
---|
32 | this->setName("GLGuiHandler"); |
---|
33 | |
---|
34 | //this->subscribeEvent() |
---|
35 | |
---|
36 | } |
---|
37 | |
---|
38 | /** |
---|
39 | * the singleton reference to this class |
---|
40 | */ |
---|
41 | GLGuiHandler* GLGuiHandler::singletonRef = NULL; |
---|
42 | |
---|
43 | /** |
---|
44 | @brief standard deconstructor |
---|
45 | */ |
---|
46 | GLGuiHandler::~GLGuiHandler () |
---|
47 | { |
---|
48 | GLGuiHandler::singletonRef = NULL; |
---|
49 | } |
---|
50 | |
---|
51 | void GLGuiHandler::activate() |
---|
52 | { |
---|
53 | EventHandler::getInstance()->pushState(ES_MENU); |
---|
54 | |
---|
55 | } |
---|
56 | |
---|
57 | void GLGuiHandler::deactivate() |
---|
58 | { |
---|
59 | EventHandler::getInstance()->popState(); |
---|
60 | |
---|
61 | } |
---|
62 | |
---|
63 | |
---|
64 | void GLGuiHandler::process(const Event &event) |
---|
65 | { |
---|
66 | |
---|
67 | |
---|
68 | } |
---|
69 | |
---|
70 | void GLGuiHandler::draw() |
---|
71 | { |
---|
72 | // GLGuiMainWidget::getInstance()->draw2D(E2D_LAYER_TOP); |
---|
73 | } |
---|
74 | |
---|
75 | |
---|
76 | void GLGuiHandler::tick(float dt) |
---|
77 | { |
---|
78 | } |
---|
79 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.