- Timestamp:
- May 27, 2006, 12:50:32 PM (19 years ago)
- Location:
- branches/gui/src/lib
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/Makefile.am
r7819 r7899 28 28 util/file.cc \ 29 29 util/directory.cc \ 30 util/timer.cc \ 30 31 \ 31 32 data/data_tank.cc … … 49 50 util/file.h \ 50 51 util/directory.h \ 52 util/timer.h \ 51 53 \ 52 54 util/loading/resource_manager.h \ -
branches/gui/src/lib/gui/gl_gui/glgui_handler.cc
r7895 r7899 61 61 void GLGuiHandler::activateCursor() 62 62 { 63 this->cursor = new GLGuiCursor(); 63 if (this->cursor == NULL) 64 this->cursor = new GLGuiCursor(); 64 65 this->cursor->show(); 65 66 } … … 101 102 if (event.bPressed) 102 103 { 104 if (GLGuiWidget::focused()->clickable()) 103 105 GLGuiWidget::focused()->click(); 104 106 } 105 107 else 106 GLGuiWidget::focused()->release(); 108 { 109 if (GLGuiWidget::focused()->clickable()) 110 GLGuiWidget::focused()->release(); 111 } 107 112 } 108 113 } -
branches/gui/src/lib/gui/gl_gui/glgui_widget.h
r7896 r7899 13 13 #include "glincl.h" 14 14 #include "signal_connector.h" 15 #include <vector> 15 16 16 17 // FORWARD DECLARATION … … 97 98 98 99 100 DeclareSignal(testSignal, ()); 99 101 100 102 protected: -
branches/gui/src/lib/gui/gl_gui/signal_connector.h
r7855 r7899 11 11 namespace OrxGui 12 12 { 13 14 #define DeclareSignal(name, params) \ 15 public: \ 16 void signal_ ##connect ##name(const SignalConnector& connector) { \ 17 name ## connected.push_back(connector); \ 18 }\ 19 private: \ 20 void signal_ ## name params { \ 21 for (unsigned int i = 0; i < name ## connected . size(); i++) \ 22 name ## connected[i] ("TEST"); \ 23 }\ 24 std::vector<SignalConnector> name ## connected 25 13 26 //! A class for Conncting Signals to Objects, inside of the GUI 14 27 class SignalConnector
Note: See TracChangeset
for help on using the changeset viewer.