Changeset 9689 in orxonox.OLD for branches/new_class_id/src/lib
- Timestamp:
- Aug 22, 2006, 3:35:18 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/gui/gl
- Files:
-
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/gui/gl/glgui_bar.cc
r8991 r9689 23 23 { 24 24 25 NewObjectListDefinition(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); -
branches/new_class_id/src/lib/gui/gl/glgui_bar.h
r8991 r9689 21 21 class GLGuiBar : public GLGuiWidget 22 22 { 23 23 NewObjectListDeclaration(GLGuiBar); 24 24 public: 25 25 GLGuiBar(); -
branches/new_class_id/src/lib/gui/gl/glgui_box.cc
r9656 r9689 22 22 namespace OrxGui 23 23 { 24 NewObjectListDefinition(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::classID())) 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::classID())) 167 168 static_cast<GLGuiContainer*>(*itC)->hideAll(); 168 169 else -
branches/new_class_id/src/lib/gui/gl/glgui_box.h
r9656 r9689 19 19 class GLGuiBox : public GLGuiContainer 20 20 { 21 21 NewObjectListDeclaration(GLGuiBox); 22 22 public: 23 23 GLGuiBox(OrxGui::Orientation orientation = OrxGui::Vertical); -
branches/new_class_id/src/lib/gui/gl/glgui_button.cc
r9406 r9689 23 23 namespace OrxGui 24 24 { 25 NewObjectListDefinition(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); -
branches/new_class_id/src/lib/gui/gl/glgui_button.h
r9406 r9689 31 31 class GLGuiButton : public GLGuiWidget 32 32 { 33 33 NewObjectListDeclaration(GLGuiButton); 34 34 public: 35 35 GLGuiButton(const std::string& label); -
branches/new_class_id/src/lib/gui/gl/glgui_checkbutton.cc
r9406 r9689 22 22 namespace OrxGui 23 23 { 24 24 NewObjectListDefinition(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 -
branches/new_class_id/src/lib/gui/gl/glgui_checkbutton.h
r9406 r9689 21 21 class GLGuiCheckButton : public GLGuiButton 22 22 { 23 23 NewObjectListDeclaration(GLGuiCheckButton); 24 24 public: 25 25 GLGuiCheckButton(const std::string& label = "", bool active = false); -
branches/new_class_id/src/lib/gui/gl/glgui_colorselector.h
r8145 r9689 21 21 class GLGui : public GLGui 22 22 { 23 23 NewObjectListDeclaration(GLGuiColorSelector); 24 24 public: 25 25 GLGui(); -
branches/new_class_id/src/lib/gui/gl/glgui_container.cc
r9656 r9689 20 20 namespace OrxGui 21 21 { 22 22 NewObjectListDefinition(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"); -
branches/new_class_id/src/lib/gui/gl/glgui_container.h
r9656 r9689 20 20 class GLGuiContainer : public GLGuiWidget 21 21 { 22 22 NewObjectListDeclaration(GLGuiContainer); 23 23 public: 24 24 GLGuiContainer(); -
branches/new_class_id/src/lib/gui/gl/glgui_cursor.cc
r8619 r9689 23 23 namespace OrxGui 24 24 { 25 25 NewObjectListDefinition(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)); -
branches/new_class_id/src/lib/gui/gl/glgui_cursor.h
r8324 r9689 26 26 class GLGuiCursor : public GLGuiWidget, public EventListener 27 27 { 28 28 NewObjectListDeclaration(GLGuiCursor); 29 29 public: 30 30 GLGuiCursor(); -
branches/new_class_id/src/lib/gui/gl/glgui_fixedposition_box.cc
r9656 r9689 23 23 namespace OrxGui 24 24 { 25 NewObjectListDefinition(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); -
branches/new_class_id/src/lib/gui/gl/glgui_fixedposition_box.h
r9656 r9689 21 21 class GLGuiFixedpositionBox : public OrxGui::GLGuiBox, EventListener 22 22 { 23 23 NewObjectListDeclaration(GLGuiFixedpositionBox); 24 24 public: 25 25 GLGuiFixedpositionBox(OrxGui::Position position = OrxGui::Center, OrxGui::Orientation orientation = OrxGui::Vertical); -
branches/new_class_id/src/lib/gui/gl/glgui_frame.cc
r9406 r9689 21 21 namespace OrxGui 22 22 { 23 23 NewObjectListDefinition(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::classID())) 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::classID())) 86 86 static_cast<GLGuiContainer*>(this->child)->hideAll(); 87 87 else -
branches/new_class_id/src/lib/gui/gl/glgui_frame.h
r8145 r9689 20 20 class GLGuiFrame : public GLGuiContainer 21 21 { 22 22 NewObjectListDeclaration(GLGuiFrame); 23 23 public: 24 24 GLGuiFrame(); -
branches/new_class_id/src/lib/gui/gl/glgui_handler.cc
r9656 r9689 23 23 #include "glgui_cursor.h" 24 24 25 #include "class_list.h"26 25 #include <cassert> 27 26 … … 35 34 namespace OrxGui 36 35 { 37 36 NewObjectListDefinition(GLGuiHandler); 38 37 /** 39 38 * standard constructor … … 41 40 GLGuiHandler::GLGuiHandler () 42 41 { 43 this-> setClassID(CL_GLGUI_HANDLER, "GLGuiHandler");42 this->registerObject(this, GLGuiHandler::_objectList); 44 43 this->setName("GLGuiHandler"); 45 44 … … 117 116 { 118 117 // 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(); 118 NewObjectList<GLGuiWidget>::const_iterator it, currentIt; 119 currentIt = GLGuiWidget::objectList().end(); 120 121 if (GLGuiWidget::selected() != NULL) 122 { 123 it = std::find(GLGuiWidget::objectList().begin(), GLGuiWidget::objectList().end(), GLGuiWidget::selected()); 124 if (it != GLGuiWidget::objectList().end()) 125 { 126 currentIt = it; 127 it++; 128 } 129 } 130 else 131 { 132 it = GLGuiWidget::objectList().begin(); 133 } 134 135 bool cycledOnce = false; 136 137 for (; it != currentIt; ++it) 138 { 139 if (it == GLGuiWidget::objectList().end() && !cycledOnce) 140 { 141 it = GLGuiWidget::objectList().begin(); 142 cycledOnce = true; 143 } 144 145 if ((*it)->selectable() && (*it)->isVisible()) 146 { 147 (*it)->select(); 148 return; 149 } 150 } 151 152 } 153 154 void GLGuiHandler::selectPrevious() 155 { 156 NewObjectList<GLGuiWidget>::const_iterator it, currentIt; 157 currentIt = GLGuiWidget::objectList().begin(); 125 158 126 159 if (GLGuiWidget::selected() != NULL) 127 160 { 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()) 161 it = std::find(GLGuiWidget::objectList().begin(), GLGuiWidget::objectList().end(), GLGuiWidget::selected()); 162 if (it != GLGuiWidget::objectList().end()) 178 163 { 179 164 currentIt = it; … … 183 168 else 184 169 { 185 it = objects->end();170 it = GLGuiWidget::objectList().end(); 186 171 } 187 172 … … 190 175 for (; it != currentIt; --it) 191 176 { 192 if (it == objects->end() && !cycledOnce)177 if (it == GLGuiWidget::objectList().end() && !cycledOnce) 193 178 { 194 179 --it ; … … 196 181 } 197 182 198 if ( dynamic_cast<GLGuiWidget*>(*it)->selectable() && dynamic_cast<GLGuiWidget*>(*it)->isVisible())199 { 200 dynamic_cast<GLGuiWidget*>(*it)->select();183 if ((*it)->selectable() && (*it)->isVisible()) 184 { 185 (*it)->select(); 201 186 return; 202 187 } 203 188 } 204 189 205 }206 else207 {208 PRINTF(0)("NO GUI-ELEMENTS EXISTING\n");209 }210 190 } 211 191 … … 217 197 { 218 198 case EV_MOUSE_MOTION: 219 220 199 this->checkFocus(); 200 break; 221 201 222 202 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 203 if (GLGuiWidget::mouseFocused() != NULL && event.bPressed) 204 { 205 // if clickable select the Widget. 206 if (GLGuiWidget::mouseFocused()->clickable()) 207 { 208 Vector2D cursorPos = (this->_cursor != NULL) ? this->_cursor->getAbsCoor2D() : Vector2D(event.x, event.y); 209 GLGuiWidget::mouseFocused()->select(); 210 GLGuiWidget::mouseFocused()->click(cursorPos - GLGuiWidget::mouseFocused()->getAbsCoor2D()); 211 } 212 } 213 else if (GLGuiWidget::selected() != NULL && !event.bPressed) 214 { 215 if (GLGuiWidget::selected()->clickable()) 216 { 217 Vector2D cursorPos = (this->_cursor != NULL) ? this->_cursor->getAbsCoor2D() : Vector2D(event.x, event.y); 218 GLGuiWidget::selected()->release(cursorPos - GLGuiWidget::selected()->getAbsCoor2D()); 219 } 220 } 221 222 break; 243 223 case EV_LEAVE_STATE: 244 245 246 247 248 249 224 if (GLGuiWidget::selected() != NULL) 225 GLGuiWidget::selected()->unselect(); 226 227 if (GLGuiWidget::mouseFocused() != NULL) 228 GLGuiWidget::mouseFocused()->breakMouseFocus(); 229 break; 250 230 251 231 case EV_VIDEO_RESIZE: 252 253 254 255 232 if (this->_cursor != NULL) 233 this->_cursor->setMaxBorders(Vector2D(event.resize.w, event.resize.h)); 234 this->_resolution = Vector2D(event.resize.w, event.resize.h); 235 break; 256 236 257 237 case SDLK_TAB: 258 259 260 261 262 263 264 265 238 if (event.bPressed) 239 { 240 if (EventHandler::getInstance()->isPressed(SDLK_LSHIFT) || EventHandler::getInstance()->isPressed(SDLK_RSHIFT)) 241 this->selectPrevious(); 242 else 243 this->selectNext(); 244 } 245 break; 266 246 } 267 247 … … 304 284 { 305 285 // 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);286 if (this->_cursor != NULL) 287 { 288 for (NewObjectList<GLGuiWidget>::const_iterator it = GLGuiWidget::objectList().begin(); 289 it != GLGuiWidget::objectList().end(); 290 it++) 291 { 292 GLGuiWidget* widget = (*it); 313 293 314 294 if (widget->isVisible() && -
branches/new_class_id/src/lib/gui/gl/glgui_handler.h
r9656 r9689 19 19 class GLGuiHandler : public EventListener 20 20 { 21 21 NewObjectListDeclaration(GLGuiHandler); 22 22 public: 23 23 /** @returns a Pointer to the only object of this Class */ -
branches/new_class_id/src/lib/gui/gl/glgui_image.cc
r8619 r9689 22 22 namespace OrxGui 23 23 { 24 24 NewObjectListDefinition(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)); -
branches/new_class_id/src/lib/gui/gl/glgui_image.h
r9406 r9689 21 21 class GLGuiImage : public GLGuiWidget 22 22 { 23 23 NewObjectListDeclaration(GLGuiImage); 24 24 public: 25 25 GLGuiImage(); -
branches/new_class_id/src/lib/gui/gl/glgui_inputline.cc
r9406 r9689 20 20 namespace OrxGui 21 21 { 22 NewObjectListDefinition(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); -
branches/new_class_id/src/lib/gui/gl/glgui_inputline.h
r9406 r9689 25 25 class GLGuiInputLine : public OrxGui::GLGuiWidget 26 26 { 27 27 NewObjectListDeclaration(GLGuiInputLine); 28 28 public: 29 29 GLGuiInputLine(); -
branches/new_class_id/src/lib/gui/gl/glgui_mainwidget.cc
r8145 r9689 20 20 namespace OrxGui 21 21 { 22 22 NewObjectListDefinition(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 } -
branches/new_class_id/src/lib/gui/gl/glgui_mainwidget.h
r8145 r9689 15 15 class GLGuiMainWidget : public GLGuiWidget 16 16 { 17 17 NewObjectListDeclaration(GLGuiMainWidget); 18 18 public: 19 19 virtual ~GLGuiMainWidget(void); -
branches/new_class_id/src/lib/gui/gl/glgui_menu.cc
r8145 r9689 20 20 namespace OrxGui 21 21 { 22 22 NewObjectListDefinition(GLGuiMenu); 23 23 /** 24 24 * standard constructor -
branches/new_class_id/src/lib/gui/gl/glgui_menu.h
r8145 r9689 19 19 class GLGuiMenu : public GLGuiMenu 20 20 { 21 21 NewObjectListDeclaration(GLGuiMenu); 22 22 public: 23 23 GLGuiMenu(); -
branches/new_class_id/src/lib/gui/gl/glgui_pushbutton.cc
r8717 r9689 23 23 namespace OrxGui 24 24 { 25 25 NewObjectListDefinition(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 -
branches/new_class_id/src/lib/gui/gl/glgui_pushbutton.h
r8717 r9689 21 21 class GLGuiPushButton : public GLGuiButton 22 22 { 23 23 NewObjectListDeclaration(GLGuiPushButton); 24 24 public: 25 25 GLGuiPushButton(const std::string& label = ""); -
branches/new_class_id/src/lib/gui/gl/glgui_slider.cc
r9406 r9689 23 23 namespace OrxGui 24 24 { 25 25 NewObjectListDefinition(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); -
branches/new_class_id/src/lib/gui/gl/glgui_slider.h
r9406 r9689 21 21 class GLGuiSlider : public GLGuiWidget 22 22 { 23 23 NewObjectListDeclaration(GLGuiSlider); 24 24 public: 25 25 GLGuiSlider(); -
branches/new_class_id/src/lib/gui/gl/glgui_table.cc
r8717 r9689 23 23 namespace OrxGui 24 24 { 25 NewObjectListDefinition(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); -
branches/new_class_id/src/lib/gui/gl/glgui_table.h
r8717 r9689 25 25 class GLGuiTable : public OrxGui::GLGuiWidget 26 26 { 27 27 NewObjectListDeclaration(GLGuiTable); 28 28 public: 29 29 GLGuiTable(unsigned int rows, unsigned int columns); -
branches/new_class_id/src/lib/gui/gl/glgui_text.cc
r9656 r9689 22 22 namespace OrxGui 23 23 { 24 NewObjectListDefinition(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); -
branches/new_class_id/src/lib/gui/gl/glgui_text.h
r9656 r9689 20 20 class GLGuiText : public GLGuiWidget 21 21 { 22 22 NewObjectListDeclaration(GLGuiText); 23 23 public: 24 24 GLGuiText(); -
branches/new_class_id/src/lib/gui/gl/glgui_textfield.cc
r9406 r9689 22 22 namespace OrxGui 23 23 { 24 NewObjectListDefinition(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); -
branches/new_class_id/src/lib/gui/gl/glgui_textfield.h
r9406 r9689 20 20 class GLGuiTextfield : public GLGuiWidget 21 21 { 22 22 NewObjectListDeclaration(GLGuiTextfield); 23 23 public: 24 24 GLGuiTextfield(); -
branches/new_class_id/src/lib/gui/gl/glgui_widget.cc
r9656 r9689 31 31 namespace OrxGui 32 32 { 33 33 NewObjectListDefinition(GLGuiWidget); 34 34 /** 35 35 * @brief standard constructor … … 95 95 void GLGuiWidget::init() 96 96 { 97 this-> setClassID(CL_GLGUI_WIDGET, "GLGuiWidget");97 this->registerObject(this, GLGuiWidget::_objectList); 98 98 99 99 this->_focusable = false; -
branches/new_class_id/src/lib/gui/gl/glgui_widget.h
r9656 r9689 21 21 namespace OrxGui 22 22 { 23 24 23 class GLGuiCursor; 25 24 … … 31 30 class GLGuiWidget : public Element2D 32 31 { 32 NewObjectListDeclaration(GLGuiWidget); 33 33 public: 34 34 GLGuiWidget(GLGuiWidget* parent = NULL); -
branches/new_class_id/src/lib/gui/gl/glgui_window.cc
r8145 r9689 20 20 namespace OrxGui 21 21 { 22 22 NewObjectListDefinition(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 } -
branches/new_class_id/src/lib/gui/gl/glgui_window.h
r8145 r9689 20 20 class GLGuiWindow : public GLGuiContainer 21 21 { 22 22 NewObjectListDeclaration(GLGuiWindow); 23 23 public: 24 24 GLGuiWindow(); -
branches/new_class_id/src/lib/gui/gl/glmenu/glmenu_imagescreen.cc
r9406 r9689 25 25 #include "util/loading/load_param.h" 26 26 27 #include "class_id.h" 27 28 CREATE_FACTORY(GLMenuImageScreen, CL_GLMENU_IMAGE_SCREEN); 28 29 NewObjectListDefinitionID(GLMenuImageScreen, CL_GLMENU_IMAGE_SCREEN); 29 30 30 31 /** … … 33 34 GLMenuImageScreen::GLMenuImageScreen(const TiXmlElement* root) 34 35 { 35 this-> setClassID(CL_GLMENU_IMAGE_SCREEN, "GLMenuImageScreen");36 this->registerObject(this, GLMenuImageScreen::_objectList); 36 37 this->setName("GLMenuLoadScreen"); 37 38 // Select Our VU Meter Background Texture … … 58 59 { 59 60 LoadParam(root, "BackgroundImage", this, GLMenuImageScreen, setBackgroundImage) 60 61 .describe("sets the image to load onto the loadscreen"); 61 62 62 63 LoadParam(root, "BackgroundPS", this, GLMenuImageScreen, setPosScale) 63 64 .describe("The Position and Scale of the Background Image in %(0-1.0). PosX, PosY, SizeX, SizeY"); 64 65 65 66 LoadParam(root, "BarImage", this, GLMenuImageScreen, setBarImage) 66 67 .describe("sets the image of the LoadingBar"); 67 68 68 69 LoadParam(root, "BarPS", this, GLMenuImageScreen, setBarPosScale) 69 70 .describe("The Position and Scale of the Loading Bar in %(0-1.0). PosX, PosY, SizeX, SizeY"); 70 71 71 72 LoadParam(root, "ElementCount", this, GLMenuImageScreen, setMaximum) 72 73 .describe("The Count of elements to load into the bar (this is only a maximum value)"); 73 74 } 74 75 -
branches/new_class_id/src/lib/gui/gl/glmenu/glmenu_imagescreen.h
r8145 r9689 15 15 class GLMenuImageScreen : public BaseObject 16 16 { 17 17 NewObjectListDeclaration(GLMenuImageScreen); 18 18 public: 19 19 GLMenuImageScreen (const TiXmlElement* root = NULL); -
branches/new_class_id/src/lib/gui/gl/specials/glgui_notifier.cc
r8619 r9689 23 23 namespace OrxGui 24 24 { 25 25 NewObjectListDefinition(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 -
branches/new_class_id/src/lib/gui/gl/specials/glgui_notifier.h
r8619 r9689 24 24 class GLGuiNotifier : public GLGuiWidget 25 25 { 26 NewObjectListDeclaration(GLGuiNotifier); 26 27 public: 27 28 GLGuiNotifier(); … … 67 68 MultiLineText* text; 68 69 69 } DisplayLine; 70 } 71 DisplayLine; 70 72 71 73
Note: See TracChangeset
for help on using the changeset viewer.