Changeset 9547 in orxonox.OLD
- Timestamp:
- Jul 28, 2006, 11:23:52 AM (18 years ago)
- Location:
- branches/proxy/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.cc
r9546 r9547 26 26 */ 27 27 GLGuiFixedpositionBox::GLGuiFixedpositionBox (OrxGui::Position position, OrxGui::Orientation orientation) 28 GLGuiBox(orientation) 29 { 30 } 28 : GLGuiBox(orientation) 29 {} 31 30 32 31 … … 38 37 39 38 39 40 40 void GLGuiFixedpositionBox::setPosition(OrxGui::Position position) 41 41 { 42 42 this->_position = position; 43 this->resize ;43 this->resize(); 44 44 } 45 45 … … 49 49 GLGuiBox::resize(); 50 50 51 switch (this-> position)51 switch (this->_position) 52 52 { 53 53 case OrxGui::Center: 54 this->setAbsCoor2D(G uiHandler::getInstance()->resolution() - this->getSize2D() / 2.0);54 this->setAbsCoor2D(GLGuiHandler::getInstance()->resolution() - this->getSize2D() / 2.0); 55 55 break; 56 default: 57 printf("not done mode yet!!\n"); 56 58 57 59 } -
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.h
r9546 r9547 7 7 #define _GLGUI_FIXEDPOSITION_BOX_H 8 8 9 #include "glgui_container.h" 10 #include "glgui_defs.h" 9 #include "glgui_box.h" 11 10 12 11 namespace OrxGui … … 16 15 * 17 16 */ 18 class GLGuiFixedpositionBox : public GLGuiBox17 class GLGuiFixedpositionBox : public OrxGui::GLGuiBox 19 18 { 20 19 … … 23 22 virtual ~GLGuiFixedpositionBox(); 24 23 25 inline OrxGui::Position position() const { return _position; };24 inline OrxGui::Position position() const { return this->_position; }; 26 25 void setPosition(OrxGui::Position); 27 26 -
branches/proxy/src/lib/network/monitor/network_stats_widget.cc
r9546 r9547 147 147 */ 148 148 NetworkStatsWidget::NetworkStatsWidget(const NetworkMonitor* monitor) 149 : GLGuiBox(OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 1))149 : GLGuiFixedpositionBox(OrxGui::Center, OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 1)) 150 150 { 151 151 this->_monitor = monitor; -
branches/proxy/src/lib/network/monitor/network_stats_widget.h
r9546 r9547 7 7 #define _NETWORK_STATS_WIDGET_H 8 8 9 #include "glgui_ box.h"9 #include "glgui_fixedposition_box.h" 10 10 #include "glgui_bar.h" 11 11 #include "glgui_text.h" … … 71 71 72 72 //! A class to display network Statistics. 73 class NetworkStatsWidget : public OrxGui::GLGui Box73 class NetworkStatsWidget : public OrxGui::GLGuiFixedpositionBox 74 74 { 75 75 public:
Note: See TracChangeset
for help on using the changeset viewer.