Changeset 5690 in orxonox.OLD for trunk/src/lib/gui/gl_gui
- Timestamp:
- Nov 22, 2005, 12:15:36 AM (19 years ago)
- Location:
- trunk/src/lib/gui/gl_gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_widget.cc
r5406 r5690 76 76 * @param signal the name of the Signal 77 77 */ 78 void GLGuiWidget::connectSignal(GLGuiSignalType signalType, Signal*signal)78 void GLGuiWidget::connectSignal(GLGuiSignalType signalType, const Executor& signal) 79 79 { 80 if (signal == NULL || signalType >= GLGuiSignalCount)80 if (signalType >= GLGuiSignalCount) 81 81 return; 82 82 … … 84 84 PRINTF(2)("Already connected a Signal to %s (%s) type %s... overwriting\n"); 85 85 86 this->widgetSignals[signalType] = signal ;86 this->widgetSignals[signalType] = signal.clone(); 87 87 } 88 88 -
trunk/src/lib/gui/gl_gui/glgui_widget.h
r5456 r5690 8 8 9 9 #include "element_2d.h" 10 #include "event.h" 11 10 12 #include "glincl.h" 11 #include "e vent.h"13 #include "executor/executor.h" 12 14 13 15 // FORWARD DECLARATION 14 16 class Material; 15 class Signal; //!< @todo create this!!16 17 17 18 typedef enum … … 49 50 void hide() {}; 50 51 51 void connectSignal(GLGuiSignalType signalType, Signal*signal);52 void connectSignal(GLGuiSignalType signalType, const Executor& signal); 52 53 void disconnectSignal(GLGuiSignalType signalType); 53 54 bool focusOverWidget(float x, float y); … … 71 72 72 73 private: 73 Signal*widgetSignals[GLGuiSignalCount];74 Executor* widgetSignals[GLGuiSignalCount]; 74 75 75 76 bool focusable; //!< If this widget can receive focus.
Note: See TracChangeset
for help on using the changeset viewer.