Changeset 9869 in orxonox.OLD for trunk/src/lib/gui
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- Location:
- trunk/src/lib/gui
- Files:
-
- 47 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_bar.cc
r8991 r9869 23 23 { 24 24 25 ObjectListDefinition(GLGuiBar); 25 26 /** 26 27 * @brief standard constructor … … 44 45 void GLGuiBar::init() 45 46 { 46 this-> setClassID(CL_GLGUI_BAR, "GLGuiBar");47 this->registerObject(this, GLGuiBar::_objectList); 47 48 48 49 this->setFrontColor(_changedValueColor, true); -
trunk/src/lib/gui/gl/glgui_bar.h
r8991 r9869 21 21 class GLGuiBar : public GLGuiWidget 22 22 { 23 23 ObjectListDeclaration(GLGuiBar); 24 24 public: 25 25 GLGuiBar(); -
trunk/src/lib/gui/gl/glgui_box.cc
r9656 r9869 22 22 namespace OrxGui 23 23 { 24 ObjectListDefinition(GLGuiBox); 24 25 /** 25 26 * standard constructor … … 52 53 void GLGuiBox::init() 53 54 { 54 this-> setClassID(CL_GLGUI_BOX, "GLGuiBox");55 this->registerObject(this, GLGuiBox::_objectList); 55 56 } 56 57 … … 149 150 while (itC != this->_children.end()) 150 151 { 151 if ((*itC)->isA( CL_GLGUI_CONTAINER))152 if ((*itC)->isA(GLGuiContainer::staticClassID())) 152 153 static_cast<GLGuiContainer*>(*itC)->showAll(); 153 154 else … … 164 165 while (itC != this->_children.end()) 165 166 { 166 if ((*itC)->isA( CL_GLGUI_CONTAINER))167 if ((*itC)->isA(GLGuiContainer::staticClassID())) 167 168 static_cast<GLGuiContainer*>(*itC)->hideAll(); 168 169 else -
trunk/src/lib/gui/gl/glgui_box.h
r9656 r9869 19 19 class GLGuiBox : public GLGuiContainer 20 20 { 21 21 ObjectListDeclaration(GLGuiBox); 22 22 public: 23 23 GLGuiBox(OrxGui::Orientation orientation = OrxGui::Vertical); -
trunk/src/lib/gui/gl/glgui_button.cc
r9406 r9869 23 23 namespace OrxGui 24 24 { 25 ObjectListDefinition(GLGuiButton); 25 26 /** 26 27 * standard constructor … … 50 51 void GLGuiButton::init() 51 52 { 52 this-> setClassID(CL_GLGUI_BUTTON, "GLGuiButton");53 this->registerObject(this, GLGuiButton::_objectList); 53 54 54 55 this->setSelectable(true); -
trunk/src/lib/gui/gl/glgui_button.h
r9406 r9869 31 31 class GLGuiButton : public GLGuiWidget 32 32 { 33 33 ObjectListDeclaration(GLGuiButton); 34 34 public: 35 35 GLGuiButton(const std::string& label); -
trunk/src/lib/gui/gl/glgui_checkbutton.cc
r9406 r9869 22 22 namespace OrxGui 23 23 { 24 24 ObjectListDefinition(GLGuiCheckButton); 25 25 26 26 /** … … 49 49 void GLGuiCheckButton::init() 50 50 { 51 this-> setClassID(CL_GLGUI_CHECKBUTTON, "GLGuiCheckButton");51 this->registerObject(this, GLGuiCheckButton::_objectList); 52 52 } 53 53 -
trunk/src/lib/gui/gl/glgui_checkbutton.h
r9406 r9869 21 21 class GLGuiCheckButton : public GLGuiButton 22 22 { 23 23 ObjectListDeclaration(GLGuiCheckButton); 24 24 public: 25 25 GLGuiCheckButton(const std::string& label = "", bool active = false); -
trunk/src/lib/gui/gl/glgui_colorselector.h
r8145 r9869 21 21 class GLGui : public GLGui 22 22 { 23 23 ObjectListDeclaration(GLGuiColorSelector); 24 24 public: 25 25 GLGui(); -
trunk/src/lib/gui/gl/glgui_container.cc
r9656 r9869 20 20 namespace OrxGui 21 21 { 22 22 ObjectListDefinition(GLGuiContainer); 23 23 /** 24 24 * standard constructor … … 41 41 void GLGuiContainer::init() 42 42 { 43 this-> setClassID(CL_GLGUI_CONTAINER, "GLGuiContainer");43 this->registerObject(this, GLGuiContainer::_objectList); 44 44 45 45 this->setBackgroundTexture("gui_container_background.png"); -
trunk/src/lib/gui/gl/glgui_container.h
r9656 r9869 20 20 class GLGuiContainer : public GLGuiWidget 21 21 { 22 22 ObjectListDeclaration(GLGuiContainer); 23 23 public: 24 24 GLGuiContainer(); -
trunk/src/lib/gui/gl/glgui_cursor.cc
r8619 r9869 23 23 namespace OrxGui 24 24 { 25 25 ObjectListDefinition(GLGuiCursor); 26 26 /** 27 27 * standard constructor … … 55 55 void GLGuiCursor::init() 56 56 { 57 this-> setClassID(CL_GLGUI_CURSOR, "GLGuiCursor");57 this->registerObject(this, GLGuiCursor::_objectList); 58 58 59 59 this->setBackgroundColor(Color(1.0, 1.0, 1.0, 1.0)); -
trunk/src/lib/gui/gl/glgui_cursor.h
r8324 r9869 26 26 class GLGuiCursor : public GLGuiWidget, public EventListener 27 27 { 28 28 ObjectListDeclaration(GLGuiCursor); 29 29 public: 30 30 GLGuiCursor(); -
trunk/src/lib/gui/gl/glgui_fixedposition_box.cc
r9656 r9869 23 23 namespace OrxGui 24 24 { 25 ObjectListDefinition(GLGuiFixedpositionBox); 25 26 /** 26 27 * standard constructor … … 29 30 : GLGuiBox(orientation) 30 31 { 32 this->registerObject(this, GLGuiFixedpositionBox::_objectList); 33 31 34 this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE); 32 35 this->setPosition(position); -
trunk/src/lib/gui/gl/glgui_fixedposition_box.h
r9656 r9869 21 21 class GLGuiFixedpositionBox : public OrxGui::GLGuiBox, EventListener 22 22 { 23 23 ObjectListDeclaration(GLGuiFixedpositionBox); 24 24 public: 25 25 GLGuiFixedpositionBox(OrxGui::Position position = OrxGui::Center, OrxGui::Orientation orientation = OrxGui::Vertical); -
trunk/src/lib/gui/gl/glgui_frame.cc
r9406 r9869 21 21 namespace OrxGui 22 22 { 23 23 ObjectListDefinition(GLGuiFrame); 24 24 /** 25 25 * standard constructor … … 44 44 void GLGuiFrame::init() 45 45 { 46 this-> setClassID(CL_GLGUI_FRAME, "GLGuiFrame");46 this->registerObject(this, GLGuiFrame::_objectList); 47 47 this->child = NULL; 48 48 } … … 71 71 if (this->child != NULL) 72 72 { 73 if (this->child->isA( CL_GLGUI_CONTAINER))73 if (this->child->isA(GLGuiContainer::staticClassID())) 74 74 static_cast<GLGuiContainer*>(this->child)->showAll(); 75 75 else … … 83 83 if (this->child != NULL) 84 84 { 85 if (this->child->isA( CL_GLGUI_CONTAINER))85 if (this->child->isA(GLGuiContainer::staticClassID())) 86 86 static_cast<GLGuiContainer*>(this->child)->hideAll(); 87 87 else -
trunk/src/lib/gui/gl/glgui_frame.h
r8145 r9869 20 20 class GLGuiFrame : public GLGuiContainer 21 21 { 22 22 ObjectListDeclaration(GLGuiFrame); 23 23 public: 24 24 GLGuiFrame(); -
trunk/src/lib/gui/gl/glgui_handler.cc
r9656 r9869 23 23 #include "glgui_cursor.h" 24 24 25 #include "class_list.h" 25 #include "loading/resource_manager.h" 26 26 27 #include <cassert> 27 28 … … 31 32 /// TAKE THIS OUT OF HERE. 32 33 #include "graphics_engine.h" 33 #include "loading/resource_manager.h"34 34 35 35 namespace OrxGui 36 36 { 37 37 ObjectListDefinition(GLGuiHandler); 38 38 /** 39 39 * standard constructor … … 41 41 GLGuiHandler::GLGuiHandler () 42 42 { 43 this-> setClassID(CL_GLGUI_HANDLER, "GLGuiHandler");43 this->registerObject(this, GLGuiHandler::_objectList); 44 44 this->setName("GLGuiHandler"); 45 45 … … 77 77 this->_cursor->setMaxBorders(Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY())); 78 78 79 _cursor->loadTextureSequence(Resource Manager::getInstance()->getDataDir() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49);79 _cursor->loadTextureSequence(Resources::ResourceManager::getInstance()->mainGlobalPath().name() + "/" + "maps/reap_mouse/reap_mouse_##.png", 1, 49); 80 80 81 81 } … … 117 117 { 118 118 // retrieve Objects. 119 const std::list<BaseObject*>* objects = ClassList::getList(CL_GLGUI_WIDGET); 120 121 if (objects) 122 { 123 std::list<BaseObject*>::const_iterator it ; 124 std::list<BaseObject*>::const_iterator currentIt = objects->end(); 119 ObjectList<GLGuiWidget>::const_iterator it, currentIt; 120 currentIt = GLGuiWidget::objectList().end(); 121 122 if (GLGuiWidget::selected() != NULL) 123 { 124 it = std::find(GLGuiWidget::objectList().begin(), GLGuiWidget::objectList().end(), GLGuiWidget::selected()); 125 if (it != GLGuiWidget::objectList().end()) 126 { 127 currentIt = it; 128 it++; 129 } 130 } 131 else 132 { 133 it = GLGuiWidget::objectList().begin(); 134 } 135 136 bool cycledOnce = false; 137 138 for (; it != currentIt; ++it) 139 { 140 if (it == GLGuiWidget::objectList().end() && !cycledOnce) 141 { 142 it = GLGuiWidget::objectList().begin(); 143 cycledOnce = true; 144 } 145 146 if ((*it)->selectable() && (*it)->isVisible()) 147 { 148 (*it)->select(); 149 return; 150 } 151 } 152 153 } 154 155 void GLGuiHandler::selectPrevious() 156 { 157 ObjectList<GLGuiWidget>::const_iterator it, currentIt; 158 currentIt = GLGuiWidget::objectList().begin(); 125 159 126 160 if (GLGuiWidget::selected() != NULL) 127 161 { 128 it = std::find(objects->begin(), objects->end(), GLGuiWidget::selected()); 129 if (it != objects->end()) 130 { 131 currentIt = it; 132 it++; 133 } 134 } 135 else 136 { 137 it = objects->begin(); 138 } 139 140 bool cycledOnce = false; 141 142 for (; it != currentIt; ++it) 143 { 144 if (it == objects->end() && !cycledOnce) 145 { 146 it = objects->begin(); 147 cycledOnce = true; 148 } 149 150 if (dynamic_cast<GLGuiWidget*>(*it)->selectable() && dynamic_cast<GLGuiWidget*>(*it)->isVisible()) 151 { 152 dynamic_cast<GLGuiWidget*>(*it)->select(); 153 return; 154 } 155 } 156 157 } 158 else 159 { 160 PRINTF(0)("NO GUI-ELEMENTS EXISTING\n"); 161 } 162 } 163 164 void GLGuiHandler::selectPrevious() 165 { 166 // retrieve Objects. 167 const std::list<BaseObject*>* objects = ClassList::getList(CL_GLGUI_WIDGET); 168 169 if (objects) 170 { 171 std::list<BaseObject*>::const_iterator it ; 172 std::list<BaseObject*>::const_iterator currentIt = objects->begin(); 173 174 if (GLGuiWidget::selected() != NULL) 175 { 176 it = std::find(objects->begin(), objects->end(), GLGuiWidget::selected()); 177 if (it != objects->end()) 162 it = std::find(GLGuiWidget::objectList().begin(), GLGuiWidget::objectList().end(), GLGuiWidget::selected()); 163 if (it != GLGuiWidget::objectList().end()) 178 164 { 179 165 currentIt = it; … … 183 169 else 184 170 { 185 it = objects->end();171 it = GLGuiWidget::objectList().end(); 186 172 } 187 173 … … 190 176 for (; it != currentIt; --it) 191 177 { 192 if (it == objects->end() && !cycledOnce)178 if (it == GLGuiWidget::objectList().end() && !cycledOnce) 193 179 { 194 180 --it ; … … 196 182 } 197 183 198 if ( dynamic_cast<GLGuiWidget*>(*it)->selectable() && dynamic_cast<GLGuiWidget*>(*it)->isVisible())199 { 200 dynamic_cast<GLGuiWidget*>(*it)->select();184 if ((*it)->selectable() && (*it)->isVisible()) 185 { 186 (*it)->select(); 201 187 return; 202 188 } 203 189 } 204 190 205 }206 else207 {208 PRINTF(0)("NO GUI-ELEMENTS EXISTING\n");209 }210 191 } 211 192 … … 217 198 { 218 199 case EV_MOUSE_MOTION: 219 220 200 this->checkFocus(); 201 break; 221 202 222 203 case EV_MOUSE_BUTTON_LEFT: 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 204 if (GLGuiWidget::mouseFocused() != NULL && event.bPressed) 205 { 206 // if clickable select the Widget. 207 if (GLGuiWidget::mouseFocused()->clickable()) 208 { 209 Vector2D cursorPos = (this->_cursor != NULL) ? this->_cursor->getAbsCoor2D() : Vector2D(event.x, event.y); 210 GLGuiWidget::mouseFocused()->select(); 211 GLGuiWidget::mouseFocused()->click(cursorPos - GLGuiWidget::mouseFocused()->getAbsCoor2D()); 212 } 213 } 214 else if (GLGuiWidget::selected() != NULL && !event.bPressed) 215 { 216 if (GLGuiWidget::selected()->clickable()) 217 { 218 Vector2D cursorPos = (this->_cursor != NULL) ? this->_cursor->getAbsCoor2D() : Vector2D(event.x, event.y); 219 GLGuiWidget::selected()->release(cursorPos - GLGuiWidget::selected()->getAbsCoor2D()); 220 } 221 } 222 223 break; 243 224 case EV_LEAVE_STATE: 244 245 246 247 248 249 225 if (GLGuiWidget::selected() != NULL) 226 GLGuiWidget::selected()->unselect(); 227 228 if (GLGuiWidget::mouseFocused() != NULL) 229 GLGuiWidget::mouseFocused()->breakMouseFocus(); 230 break; 250 231 251 232 case EV_VIDEO_RESIZE: 252 253 254 255 233 if (this->_cursor != NULL) 234 this->_cursor->setMaxBorders(Vector2D(event.resize.w, event.resize.h)); 235 this->_resolution = Vector2D(event.resize.w, event.resize.h); 236 break; 256 237 257 238 case SDLK_TAB: 258 259 260 261 262 263 264 265 239 if (event.bPressed) 240 { 241 if (EventHandler::getInstance()->isPressed(SDLK_LSHIFT) || EventHandler::getInstance()->isPressed(SDLK_RSHIFT)) 242 this->selectPrevious(); 243 else 244 this->selectNext(); 245 } 246 break; 266 247 } 267 248 … … 304 285 { 305 286 // CHECK THE COLLISIONS. 306 const std::list<BaseObject*>* objects = ClassList::getList(CL_GLGUI_WIDGET);307 308 if (objects != NULL && this->_cursor != NULL)309 { 310 for (std::list<BaseObject*>::const_iterator it = objects->begin(); it != objects->end();it++)311 { 312 GLGuiWidget* widget = dynamic_cast<GLGuiWidget*>(*it);287 if (this->_cursor != NULL) 288 { 289 for (ObjectList<GLGuiWidget>::const_iterator it = GLGuiWidget::objectList().begin(); 290 it != GLGuiWidget::objectList().end(); 291 it++) 292 { 293 GLGuiWidget* widget = (*it); 313 294 314 295 if (widget->isVisible() && -
trunk/src/lib/gui/gl/glgui_handler.h
r9656 r9869 19 19 class GLGuiHandler : public EventListener 20 20 { 21 21 ObjectListDeclaration(GLGuiHandler); 22 22 public: 23 23 /** @returns a Pointer to the only object of this Class */ -
trunk/src/lib/gui/gl/glgui_image.cc
r8619 r9869 22 22 namespace OrxGui 23 23 { 24 24 ObjectListDefinition(GLGuiImage); 25 25 /** 26 26 * standard constructor … … 45 45 void GLGuiImage::init() 46 46 { 47 this-> setClassID(CL_GLGUI_IMAGE, "GLGuiImage");47 this->registerObject(this, GLGuiImage::_objectList); 48 48 49 49 this->setForegroundColor(Color(1,1,1,1)); -
trunk/src/lib/gui/gl/glgui_image.h
r9406 r9869 21 21 class GLGuiImage : public GLGuiWidget 22 22 { 23 23 ObjectListDeclaration(GLGuiImage); 24 24 public: 25 25 GLGuiImage(); -
trunk/src/lib/gui/gl/glgui_inputline.cc
r9406 r9869 20 20 namespace OrxGui 21 21 { 22 ObjectListDefinition(GLGuiInputLine); 22 23 /** 23 24 * @brief standard constructor … … 44 45 void GLGuiInputLine::init() 45 46 { 46 this-> setClassID(CL_GLGUI_INPUTLINE, "GLGuiInputLine");47 this->registerObject(this, GLGuiInputLine::_objectList); 47 48 48 49 this->setFocusable(true); -
trunk/src/lib/gui/gl/glgui_inputline.h
r9406 r9869 25 25 class GLGuiInputLine : public OrxGui::GLGuiWidget 26 26 { 27 27 ObjectListDeclaration(GLGuiInputLine); 28 28 public: 29 29 GLGuiInputLine(); -
trunk/src/lib/gui/gl/glgui_mainwidget.cc
r8145 r9869 20 20 namespace OrxGui 21 21 { 22 22 ObjectListDefinition(GLGuiMainWidget); 23 23 24 24 /** … … 27 27 GLGuiMainWidget::GLGuiMainWidget() 28 28 { 29 this-> setClassID(CL_GLGUI_MAIN_WIDGET, "GLGuiMainWidget");29 this->registerObject(this, GLGuiMainWidget::_objectList); 30 30 this->setName("GLGuiMainWidget"); 31 31 } -
trunk/src/lib/gui/gl/glgui_mainwidget.h
r8145 r9869 15 15 class GLGuiMainWidget : public GLGuiWidget 16 16 { 17 17 ObjectListDeclaration(GLGuiMainWidget); 18 18 public: 19 19 virtual ~GLGuiMainWidget(void); -
trunk/src/lib/gui/gl/glgui_menu.cc
r8145 r9869 20 20 namespace OrxGui 21 21 { 22 22 ObjectListDefinition(GLGuiMenu); 23 23 /** 24 24 * standard constructor -
trunk/src/lib/gui/gl/glgui_menu.h
r8145 r9869 19 19 class GLGuiMenu : public GLGuiMenu 20 20 { 21 21 ObjectListDeclaration(GLGuiMenu); 22 22 public: 23 23 GLGuiMenu(); -
trunk/src/lib/gui/gl/glgui_pushbutton.cc
r8717 r9869 23 23 namespace OrxGui 24 24 { 25 25 ObjectListDefinition(GLGuiPushButton); 26 26 /** 27 27 * @brief standard constructor … … 58 58 void GLGuiPushButton::init() 59 59 { 60 this-> setClassID(CL_GLGUI_PUSHBUTTON, "GLGuiPushButton");60 this->registerObject(this, GLGuiPushButton::_objectList); 61 61 } 62 62 -
trunk/src/lib/gui/gl/glgui_pushbutton.h
r8717 r9869 21 21 class GLGuiPushButton : public GLGuiButton 22 22 { 23 23 ObjectListDeclaration(GLGuiPushButton); 24 24 public: 25 25 GLGuiPushButton(const std::string& label = ""); -
trunk/src/lib/gui/gl/glgui_slider.cc
r9406 r9869 23 23 namespace OrxGui 24 24 { 25 25 ObjectListDefinition(GLGuiSlider); 26 26 /** 27 27 * @brief standard constructor … … 46 46 { 47 47 48 this-> setClassID(CL_GLGUI_SLIDER, "GLGuiSlider");48 this->registerObject(this, GLGuiSlider::_objectList); 49 49 50 50 this->setClickable(true); -
trunk/src/lib/gui/gl/glgui_slider.h
r9406 r9869 21 21 class GLGuiSlider : public GLGuiWidget 22 22 { 23 23 ObjectListDeclaration(GLGuiSlider); 24 24 public: 25 25 GLGuiSlider(); -
trunk/src/lib/gui/gl/glgui_table.cc
r8717 r9869 23 23 namespace OrxGui 24 24 { 25 ObjectListDefinition(GLGuiTable); 25 26 /** 26 27 * @brief standard constructor … … 47 48 void GLGuiTable::init() 48 49 { 49 this-> setClassID(CL_GLGUI_TABLE, "GLGuiTable");50 this->registerObject(this, GLGuiTable::_objectList); 50 51 51 52 this->setBorderTop(10); -
trunk/src/lib/gui/gl/glgui_table.h
r8717 r9869 25 25 class GLGuiTable : public OrxGui::GLGuiWidget 26 26 { 27 27 ObjectListDeclaration(GLGuiTable); 28 28 public: 29 29 GLGuiTable(unsigned int rows, unsigned int columns); -
trunk/src/lib/gui/gl/glgui_text.cc
r9656 r9869 22 22 namespace OrxGui 23 23 { 24 ObjectListDefinition(GLGuiText); 24 25 /** 25 26 * standard constructor … … 43 44 void GLGuiText::init() 44 45 { 45 this-> setClassID(CL_GLGUI_TEXT, "GLGuiText");46 this->registerObject(this, GLGuiText::_objectList); 46 47 47 48 this->_text.setParent2D(this); -
trunk/src/lib/gui/gl/glgui_text.h
r9656 r9869 20 20 class GLGuiText : public GLGuiWidget 21 21 { 22 22 ObjectListDeclaration(GLGuiText); 23 23 public: 24 24 GLGuiText(); -
trunk/src/lib/gui/gl/glgui_textfield.cc
r9406 r9869 22 22 namespace OrxGui 23 23 { 24 ObjectListDefinition(GLGuiTextfield); 24 25 /** 25 26 * standard constructor … … 43 44 void GLGuiTextfield::init() 44 45 { 45 this-> setClassID(CL_GLGUI_TEXTFIELD, "GLGuiTextfield");46 this->registerObject(this, GLGuiTextfield::_objectList); 46 47 47 48 this->_text.setParent2D(this); -
trunk/src/lib/gui/gl/glgui_textfield.h
r9406 r9869 20 20 class GLGuiTextfield : public GLGuiWidget 21 21 { 22 22 ObjectListDeclaration(GLGuiTextfield); 23 23 public: 24 24 GLGuiTextfield(); -
trunk/src/lib/gui/gl/glgui_widget.cc
r9656 r9869 25 25 26 26 #include "loading/load_param.h" 27 28 /// TODO TAKE THIS OUT OF HERE29 27 #include "loading/resource_manager.h" 30 28 31 29 namespace OrxGui 32 30 { 33 31 ObjectListDefinition(GLGuiWidget); 34 32 /** 35 33 * @brief standard constructor … … 95 93 void GLGuiWidget::init() 96 94 { 97 this-> setClassID(CL_GLGUI_WIDGET, "GLGuiWidget");95 this->registerObject(this, GLGuiWidget::_objectList); 98 96 99 97 this->_focusable = false; … … 104 102 105 103 if(GLGuiWidget::_defaultFont == NULL) 106 GLGuiWidget::_defaultFont = new Font(Resource Manager::getInstance()->getDataDir() + "/fonts/final_frontier.ttf", 20);104 GLGuiWidget::_defaultFont = new Font(Resources::ResourceManager::getInstance()->mainGlobalPath().name() + "/fonts/final_frontier.ttf", 20); 107 105 108 106 this->_font = *GLGuiWidget::_defaultFont; -
trunk/src/lib/gui/gl/glgui_widget.h
r9656 r9869 21 21 namespace OrxGui 22 22 { 23 24 23 class GLGuiCursor; 25 24 … … 31 30 class GLGuiWidget : public Element2D 32 31 { 32 ObjectListDeclaration(GLGuiWidget); 33 33 public: 34 34 GLGuiWidget(GLGuiWidget* parent = NULL); -
trunk/src/lib/gui/gl/glgui_window.cc
r8145 r9869 20 20 namespace OrxGui 21 21 { 22 22 ObjectListDefinition(GLGuiWindow); 23 23 /** 24 24 * standard constructor … … 43 43 void GLGuiWindow::init() 44 44 { 45 this-> setClassID(CL_GLGUI_WINDOW, "GLGuiWindow");45 this->registerObject(this, GLGuiWindow::_objectList); 46 46 47 47 } -
trunk/src/lib/gui/gl/glgui_window.h
r8145 r9869 20 20 class GLGuiWindow : public GLGuiContainer 21 21 { 22 22 ObjectListDeclaration(GLGuiWindow); 23 23 public: 24 24 GLGuiWindow(); -
trunk/src/lib/gui/gl/glmenu/glmenu_imagescreen.cc
r9406 r9869 24 24 #include "util/loading/factory.h" 25 25 #include "util/loading/load_param.h" 26 27 CREATE_FACTORY(GLMenuImageScreen, CL_GLMENU_IMAGE_SCREEN); 28 26 #include "debug.h" 27 28 #include "class_id_DEPRECATED.h" 29 ObjectListDefinitionID(GLMenuImageScreen, CL_GLMENU_IMAGE_SCREEN); 30 CREATE_FACTORY(GLMenuImageScreen); 29 31 30 32 /** … … 33 35 GLMenuImageScreen::GLMenuImageScreen(const TiXmlElement* root) 34 36 { 35 this-> setClassID(CL_GLMENU_IMAGE_SCREEN, "GLMenuImageScreen");37 this->registerObject(this, GLMenuImageScreen::_objectList); 36 38 this->setName("GLMenuLoadScreen"); 37 39 // Select Our VU Meter Background Texture … … 58 60 { 59 61 LoadParam(root, "BackgroundImage", this, GLMenuImageScreen, setBackgroundImage) 60 62 .describe("sets the image to load onto the loadscreen"); 61 63 62 64 LoadParam(root, "BackgroundPS", this, GLMenuImageScreen, setPosScale) 63 65 .describe("The Position and Scale of the Background Image in %(0-1.0). PosX, PosY, SizeX, SizeY"); 64 66 65 67 LoadParam(root, "BarImage", this, GLMenuImageScreen, setBarImage) 66 68 .describe("sets the image of the LoadingBar"); 67 69 68 70 LoadParam(root, "BarPS", this, GLMenuImageScreen, setBarPosScale) 69 71 .describe("The Position and Scale of the Loading Bar in %(0-1.0). PosX, PosY, SizeX, SizeY"); 70 72 71 73 LoadParam(root, "ElementCount", this, GLMenuImageScreen, setMaximum) 72 74 .describe("The Count of elements to load into the bar (this is only a maximum value)"); 73 75 } 74 76 -
trunk/src/lib/gui/gl/glmenu/glmenu_imagescreen.h
r8145 r9869 15 15 class GLMenuImageScreen : public BaseObject 16 16 { 17 17 ObjectListDeclaration(GLMenuImageScreen); 18 18 public: 19 19 GLMenuImageScreen (const TiXmlElement* root = NULL); … … 33 33 void setMaximum (int maxValue); 34 34 /** @returns the maximum of countable steps*/ 35 inline int GLMenuImageScreen::getMaximum() const { return this->maxValue; };35 inline int getMaximum() const { return this->maxValue; }; 36 36 37 37 void setValue (int currentValue); -
trunk/src/lib/gui/gl/specials/glgui_notifier.cc
r8619 r9869 23 23 namespace OrxGui 24 24 { 25 25 ObjectListDefinition(GLGuiNotifier); 26 26 /** 27 27 * @brief standard constructor … … 29 29 GLGuiNotifier::GLGuiNotifier () 30 30 { 31 this-> setClassID(CL_GLGUI_NOTIFIER, "GLGuiNotifier");31 this->registerObject(this, GLGuiNotifier::_objectList); 32 32 33 33 // Element2D and generals -
trunk/src/lib/gui/gl/specials/glgui_notifier.h
r8619 r9869 24 24 class GLGuiNotifier : public GLGuiWidget 25 25 { 26 ObjectListDeclaration(GLGuiNotifier); 26 27 public: 27 28 GLGuiNotifier(); … … 67 68 MultiLineText* text; 68 69 69 } DisplayLine; 70 } 71 DisplayLine; 70 72 71 73 -
trunk/src/lib/gui/gui.cc
r7661 r9869 18 18 #include "gui.h" 19 19 #include "gui_saveable.h" 20 #include "p references.h"20 #include "parser/preferences/preferences.h" 21 21 22 22 namespace OrxGui -
trunk/src/lib/gui/gui_saveable.cc
r9406 r9869 18 18 #include "gui_saveable.h" 19 19 #include "gui.h" 20 #include "p references.h"20 #include "parser/preferences/preferences.h" 21 21 22 22 #include "debug.h"
Note: See TracChangeset
for help on using the changeset viewer.