Changeset 7855 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.cc
- Timestamp:
- May 25, 2006, 3:42:18 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_widget.cc
r7779 r7855 58 58 this->frontModel = 0; 59 59 60 this->widgetSignals.resize( GLGuiSignalCount, NULL);60 this->widgetSignals.resize(SignalCount, SignalConnector()); 61 61 } 62 62 … … 64 64 bool GLGuiWidget::focusOverWidget(float x, float y) 65 65 { 66 if (this->getAbsCoor2D().x < x && this->getAbsCoor2D().x + this->getSizeX2D() > x &&67 this->getAbsCoor2D().y < y && this->getAbsCoor2D().y + this->getSizeX2D() > y)66 if (this->getAbsCoor2D().x < x && this->getAbsCoor2D().x + this->getSizeX2D() > x && 67 this->getAbsCoor2D().y < y && this->getAbsCoor2D().y + this->getSizeY2D() > y) 68 68 return true; 69 69 else … … 76 76 * @param signal the name of the Signal 77 77 */ 78 void GLGuiWidget::connectSignal( GLGuiSignalType signalType, BaseObject*, const Executor* signal)78 void GLGuiWidget::connectSignal(SignalType signalType, BaseObject* object, const Executor* signal) 79 79 { 80 if (signalType >= GLGuiSignalCount)80 if (signalType >= this->widgetSignals.size()) 81 81 return; 82 82 83 if (this->widgetSignals[signalType] != NULL)84 PRINTF(2)("Already connected a Signal to '%s::%s' type %s... overwriting\n", this->getClassName(), this->getName(), "TEST");83 // if (this->widgetSignals[signalType] != NULL) 84 // PRINTF(2)("Already connected a Signal to '%s::%s' type %s... overwriting\n", this->getClassName(), this->getName(), "TEST"); 85 85 86 //this->widgetSignals[signalType] =;86 this->widgetSignals[signalType] = SignalConnector(object, signal); 87 87 } 88 88 … … 91 91 * @param signalType the type of Signal to remove. 92 92 */ 93 void GLGuiWidget::disconnectSignal( GLGuiSignalType signalType)93 void GLGuiWidget::disconnectSignal(SignalType signalType) 94 94 { 95 if (signalType > GLGuiSignalCount)95 if (signalType >= this->widgetSignals.size()) 96 96 return; 97 97 98 this->widgetSignals[signalType] = NULL;98 this->widgetSignals[signalType] = SignalConnector(); 99 99 } 100 100
Note: See TracChangeset
for help on using the changeset viewer.