Changeset 8672 in orxonox.OLD for branches/gui/src
- Timestamp:
- Jun 21, 2006, 2:59:55 PM (18 years ago)
- Location:
- branches/gui/src/lib/gui/gl
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_button.cc
r8667 r8672 51 51 { 52 52 this->setClassID(CL_GLGUI_BUTTON, "GLGuiButton"); 53 54 this->setSelectable(true); 53 55 this->setFocusable(true); 54 56 this->setClickable(true); -
branches/gui/src/lib/gui/gl/glgui_handler.cc
r8671 r8672 24 24 #include "class_list.h" 25 25 26 #include "debug.h" 27 26 28 #include <cassert> 27 29 … … 100 102 void GLGuiHandler::selectNext() 101 103 { 104 printf("searching next Widget\n"); 105 // retrieve Objects. 102 106 const std::list<BaseObject*>* objects = ClassList::getList(CL_GLGUI_WIDGET); 107 103 108 if (objects) 104 109 { 105 110 std::list<BaseObject*>::const_iterator it ; 106 std::list<BaseObject*>::const_iterator currentIt = objects-> begin();111 std::list<BaseObject*>::const_iterator currentIt = objects->end(); 107 112 108 113 if (GLGuiWidget::selected() != NULL) 109 114 { 110 111 115 it = std::find(objects->begin(), objects->end(), GLGuiWidget::selected()); 112 116 if (it != objects->end()) … … 115 119 it++; 116 120 } 117 if (it == objects->end()) 121 } 122 else 123 { 124 it = objects->begin(); 125 } 126 127 bool cycledOnce = false; 128 129 for (; it != currentIt; ++it) 130 { 131 if (it == objects->end() && !cycledOnce) 132 { 118 133 it = objects->begin(); 119 } 120 else 121 { 122 it = objects->begin(); 123 } 124 125 for (; it != objects->end() && currentIt != it; ++it) 126 { 134 cycledOnce = true; 135 } 136 127 137 if (dynamic_cast<GLGuiWidget*>(*it)->selectable()) 128 138 { … … 132 142 } 133 143 144 } 145 else 146 { 147 PRINTF(0)("NO GUI-ELEMENTS EXISTING\n"); 134 148 } 135 149 } -
branches/gui/src/lib/gui/gl/glgui_inputline.cc
r8653 r8672 48 48 this->setFocusable(true); 49 49 this->setClickable(true); 50 this->setSelectable(true); 50 51 51 52 this->_clearOnEnter = false; -
branches/gui/src/lib/gui/gl/glgui_slider.cc
r8669 r8672 48 48 this->setClassID(CL_GLGUI_SLIDER, "GLGuiSlider"); 49 49 50 this->setClickable( ); 51 this->setFocusable( ); 50 this->setClickable(true); 51 this->setFocusable(true); 52 this->setSelectable(true); 52 53 53 54 this->_value = 0.0; -
branches/gui/src/lib/gui/gl/glgui_widget.cc
r8670 r8672 93 93 this->_focusable = false; 94 94 this->_clickable = false; 95 this->_selectable = false; 95 96 this->_pushed = false; 96 97 this->_state = OrxGui::Normal; 97 this->_pushed = false;98 98 99 99
Note: See TracChangeset
for help on using the changeset viewer.