- Timestamp:
- Oct 16, 2005, 1:37:41 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/defs/functor_list.h
r5332 r5391 9 9 any later version. 10 10 */ 11 12 11 13 12 /*! … … 105 104 106 105 #ifdef FUNCTOR_LIST 106 107 107 FUNCTOR_LIST(0)(); 108 108 //! makes functions with one string … … 152 152 FUNCTOR_LIST(2)(l_UINT, l_LONG); 153 153 FUNCTOR_LIST(2)(l_STRING, l_UINT); 154 155 154 156 #endif /* FUNCTOR_LIST */ -
trunk/src/lib/coord/p_node.h
r5387 r5391 1 1 /*! 2 @file p_node.h 3 * Definition of a parenting node 4 5 parenting is how coordinates are handled in orxonox, meaning, that all coordinates 6 are representet relative to another parent node. this nodes build a parenting 7 tree of one-sided references (from up to down referenced). 8 Every node manages itself a list of childrens (of whos it is parent - easy...) 9 10 absCoordinate, absDirection have to be recalculated as soon as there was a change in 11 place or ortientation. this is only the case if 12 o bDirChanged is true (so changed) AND timeStamp != now 13 o bCoorChanged is true (so moved) AND timeStamp != now 14 this conditions make it cheaper to recalculate the tree (reduces redundant work). 15 16 remember: if you have to change the coordinates or the directions, use the functions 17 that are defined to execute this operation - otherwhise there will be big problems... 18 */ 2 * @file p_node.h 3 * @brief Definition of a parenting node 4 * 5 * parenting is how coordinates are handled in orxonox, meaning, that all coordinates 6 * are representet relative to another parent node. this nodes build a parenting 7 * tree of one-sided references (from up to down referenced). 8 * Every node manages itself a list of childrens (of whos it is parent - easy...). 9 * 10 * absCoordinate, absDirection have to be recalculated as soon as there was a change in 11 * place or ortientation. this is only the case if 12 * o bDirChanged is true (so changed) AND timeStamp != now 13 * o bCoorChanged is true (so moved) AND timeStamp != now 14 * this conditions make it cheaper to recalculate the tree (reduces redundant work). 15 */ 19 16 20 17 -
trunk/src/lib/event/event.h
r5366 r5391 1 /* 2 orxonox - the future of 3D-vertical-scrollers 3 4 Copyright (C) 2004 orx 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 ### File Specific: 12 main-programmer: Patrick Boenzli 13 co-programmer: ... 14 15 Benjamin Grauer: added SDL_ResizeEvent resize (for the GraphicsEngine) 16 */ 17 1 18 /*! 2 19 * @file event.h -
trunk/src/lib/gui/gl_gui/glgui_box.cc
r5364 r5391 23 23 * standard constructor 24 24 */ 25 GLGuiBox::GLGuiBox ( )25 GLGuiBox::GLGuiBox (GLGuiBoxType type) 26 26 { 27 27 this->init(); 28 28 29 this->setType (type); 29 30 } 30 31 -
trunk/src/lib/gui/gl_gui/glgui_box.h
r5364 r5391 12 12 // FORWARD DECLARATION 13 13 14 typedef enum 15 { 16 GLGuiBox_H, 17 GLGuiBox_V, 18 } GLGuiBoxType; 19 14 20 //! This is BOX part of the openglGUI class 15 21 /** … … 19 25 20 26 public: 21 GLGuiBox( );27 GLGuiBox(GLGuiBoxType type = GLGuiBox_H); 22 28 virtual ~GLGuiBox(); 23 29 24 30 void init(); 31 void setType(GLGuiBoxType type) { this->type = type; }; 25 32 26 33 virtual void draw(); 27 34 28 35 private: 36 GLGuiBoxType type; 29 37 30 38 }; -
trunk/src/lib/gui/gl_gui/glgui_checkbutton.h
r5366 r5391 24 24 void init(); 25 25 26 bool isActive() { return this->bActive; }; 27 void setActivity(bool bActive); 28 26 29 virtual void draw(); 27 30 28 31 private: 32 bool bActive; 29 33 30 34 }; -
trunk/src/lib/gui/gl_gui/glgui_container.h
r5364 r5391 25 25 void init(); 26 26 27 void add(GLGuiWidget* widget); 28 29 void setBorderWidth(float borderwidth); 30 27 31 void hideAll(); 28 32 void showAll(); 33 29 34 30 35 virtual void draw(); -
trunk/src/lib/gui/gl_gui/glgui_handler.cc
r5388 r5391 46 46 void GLGuiHandler::activate() 47 47 { 48 // EventHandler::getInstance()->setState(ES_MENU);48 EventHandler::getInstance()->pushState(ES_MENU); 49 49 50 50 } … … 52 52 void GLGuiHandler::deactivate() 53 53 { 54 EventHandler::getInstance()->popState(); 54 55 55 56 } -
trunk/src/lib/gui/gl_gui/glgui_menu.h
r5366 r5391 11 11 12 12 // FORWARD DECLARATION 13 13 template<class T> class tList; 14 14 //! This is Menu part of the openglGUI class 15 15 /** … … 24 24 void init(); 25 25 26 void addItem(const char* itemName); 27 void removeItem(const char* itemName); 28 void removeItem(unsigned int itemNumber); 29 void selectItem(const char* itemName); 30 void selectItem(unsigned int itemNumber); 31 26 32 virtual void draw(); 27 33 28 34 private: 35 tList<char>* itemList; 29 36 30 37 }; -
trunk/src/lib/gui/gl_gui/glgui_widget.cc
r5387 r5391 39 39 40 40 41 bool GLGuiWidget::focusOverWidget(float x, float y) 42 { 43 if (this->getAbsCoor2D().x < x && this->getAbsCoor2D().x+ this->getSizeX2D() > x && 44 this->getAbsCoor2D().y < y && this->getAbsCoor2D().y+ this->getSizeX2D() > y) 45 return true; 46 else 47 return false; 48 } 49 50 41 51 /** 42 52 * initializes the GUI-element -
trunk/src/lib/gui/gl_gui/glgui_widget.h
r5387 r5391 1 1 /*! 2 * @file glgui_widget.h3 * The gl_widget of the openglGUI4 */2 * @file glgui_widget.h 3 * The gl_widget of the openglGUI 4 */ 5 5 6 6 #ifndef _GLGUI_WIDGET_H … … 9 9 #include "element_2d.h" 10 10 #include "glincl.h" 11 #include "event.h" 11 12 12 13 // FORWARD DECLARATION 13 14 class Material; 15 class Signal; //!< @todo create this!! 16 17 typedef enum 18 { 19 GLGuiSignal_click = 0, 20 GLGuiSignal_release = 1, 21 GLGuiSignal_rollOn = 2, 22 GLGuiSignal_rollOff = 3, 23 GLGuiSignal_open = 4, 24 GLGuiSignal_close = 5, 25 GLGuiSignal_destroy = 6, 26 27 GLGuiSignalCount = 7, 28 } GLGuiSignalType; 14 29 15 30 //! if the Element should be visible by default. … … 30 45 void hide(); 31 46 47 void connectSignal(GLGuiSignalType signalType, Signal* signal); 48 void disconnectSignal(GLGuiSignalType); 49 bool focusOverWidget(float x, float y); 50 51 // if something was clickt on the GUI-widget. 52 virtual void click(const Event& event) {}; 53 virtual void release(const Event& event) {}; 54 55 virtual void receiveFocus() {}; 56 virtual void removeFocus() {}; 32 57 33 58 virtual void update() = 0; … … 40 65 GLuint frontModel; 41 66 67 Signal* widgetSignals[GLGuiSignalCount]; 68 42 69 private: 43 70 bool focusable; //!< If this widget can receive focus. -
trunk/src/lib/shell/shell_command.h
r5329 r5391 2 2 * @file shell_command.h 3 3 * Definition of a on-screen-shell 4 * 5 * @todo also take Static functions 6 */ 4 */ 7 5 8 6 #ifndef _SHELL_COMMAND_H
Note: See TracChangeset
for help on using the changeset viewer.