Changeset 9554 in orxonox.OLD for branches/proxy/src/lib
- Timestamp:
- Jul 28, 2006, 12:07:51 PM (18 years ago)
- Location:
- branches/proxy/src/lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/BuildLibs.am
r9552 r9554 3 3 $(LIB_PREFIX)/util/libORXlibutil.a \ 4 4 $(LIB_PREFIX)/shell/libORXshell.a \ 5 $(LIB_PREFIX)/event/libORXevent.a \ 5 6 $(LIB_PREFIX)/gui/qt/libORXqtgui.a \ 6 7 $(LIB_PREFIX)/gui/gl/libORXglgui.a \ … … 11 12 $(LIB_PREFIX)/graphics/importer/libtc.a \ 12 13 $(LIB_PREFIX)/sound/libORXsound.a \ 13 $(LIB_PREFIX)/event/libORXevent.a \14 14 $(LIB_PREFIX)/particles/libORXparticles.a \ 15 15 $(LIB_PREFIX)/collision_detection/libORXcd.a \ -
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.cc
r9549 r9554 28 28 GLGuiFixedpositionBox::GLGuiFixedpositionBox (OrxGui::Position position, OrxGui::Orientation orientation) 29 29 : GLGuiBox(orientation) 30 {} 30 { 31 this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE); 32 } 31 33 32 34 … … 45 47 { 46 48 case OrxGui::Center: 47 this->setAbsCoor2D(GLGuiHandler::getInstance()->resolution() - this->getSize2D() / 2.0);49 this->setAbsCoor2D(GLGuiHandler::getInstance()->resolution()/2.0 - this->getSize2D() / 2.0); 48 50 break; 49 51 default: … … 56 58 } 57 59 60 void GLGuiFixedpositionBox::process(const Event& event) 61 { 62 switch(event.type) 63 { 64 case EV_VIDEO_RESIZE: 65 this->resize(); 66 break; 67 68 } 69 70 } 71 72 58 73 } -
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.h
r9549 r9554 8 8 9 9 #include "glgui_box.h" 10 #include "event_listener.h" 10 11 11 12 namespace OrxGui … … 15 16 * 16 17 */ 17 class GLGuiFixedpositionBox : public OrxGui::GLGuiBox 18 class GLGuiFixedpositionBox : public OrxGui::GLGuiBox, EventListener 18 19 { 19 20 … … 26 27 protected: 27 28 virtual void resize(); 29 virtual void process(const Event& event); //!< from eventListener 28 30 29 31 private: -
branches/proxy/src/lib/gui/gl/glgui_handler.cc
r9546 r9554 44 44 this->setName("GLGuiHandler"); 45 45 46 this->_resolution = Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY()); 46 47 47 48 EventHandler::getInstance()->withUNICODE(ES_MENU, true ); … … 91 92 void GLGuiHandler::activate() 92 93 { 93 this->_resolution = Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY());94 94 //EventHandler::getInstance()->pushState(ES_MENU); 95 95 -
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9494 r9554 211 211 212 212 this->box->showAll(); 213 this->box->setAbsCoor2D(300, 40);213 //this->box->setAbsCoor2D(300, 40); 214 214 } 215 215 else -
branches/proxy/src/lib/network/monitor/network_stats_widget.cc
r9552 r9554 147 147 */ 148 148 NetworkStatsWidget::NetworkStatsWidget(const NetworkMonitor* monitor) 149 : GLGuiFixedpositionBox(OrxGui::Center, OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 1))149 : OrxGui::GLGuiFixedpositionBox(OrxGui::Center, OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 1)) 150 150 { 151 151 this->_monitor = monitor;
Note: See TracChangeset
for help on using the changeset viewer.