Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9547 in orxonox.OLD


Ignore:
Timestamp:
Jul 28, 2006, 11:23:52 AM (18 years ago)
Author:
bensch
Message:

orxonox/proxy: linking problem, trying another tardis

Location:
branches/proxy/src/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.cc

    r9546 r9547  
    2626  */
    2727  GLGuiFixedpositionBox::GLGuiFixedpositionBox (OrxGui::Position position, OrxGui::Orientation orientation)
    28       GLGuiBox(orientation)
    29   {
    30   }
     28      : GLGuiBox(orientation)
     29  {}
    3130
    3231
     
    3837
    3938
     39
    4040  void GLGuiFixedpositionBox::setPosition(OrxGui::Position position)
    4141  {
    4242    this->_position = position;
    43     this->resize;
     43    this->resize();
    4444  }
    4545
     
    4949    GLGuiBox::resize();
    5050
    51     switch (this->position)
     51    switch (this->_position)
    5252    {
    5353      case OrxGui::Center:
    54         this->setAbsCoor2D(GuiHandler::getInstance()->resolution() - this->getSize2D() / 2.0);
     54        this->setAbsCoor2D(GLGuiHandler::getInstance()->resolution() - this->getSize2D() / 2.0);
    5555        break;
     56      default:
     57        printf("not done mode yet!!\n");
    5658
    5759    }
  • branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.h

    r9546 r9547  
    77#define _GLGUI_FIXEDPOSITION_BOX_H
    88
    9 #include "glgui_container.h"
    10 #include "glgui_defs.h"
     9#include "glgui_box.h"
    1110
    1211namespace OrxGui
     
    1615   *
    1716   */
    18   class GLGuiFixedpositionBox : public GLGuiBox
     17  class GLGuiFixedpositionBox : public OrxGui::GLGuiBox
    1918  {
    2019
     
    2322    virtual ~GLGuiFixedpositionBox();
    2423
    25     inline OrxGui::Position position() const { return _position; };
     24    inline OrxGui::Position position() const { return this->_position; };
    2625    void setPosition(OrxGui::Position);
    2726
  • branches/proxy/src/lib/network/monitor/network_stats_widget.cc

    r9546 r9547  
    147147 */
    148148NetworkStatsWidget::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))
    150150{
    151151  this->_monitor = monitor;
  • branches/proxy/src/lib/network/monitor/network_stats_widget.h

    r9546 r9547  
    77#define _NETWORK_STATS_WIDGET_H
    88
    9 #include "glgui_box.h"
     9#include "glgui_fixedposition_box.h"
    1010#include "glgui_bar.h"
    1111#include "glgui_text.h"
     
    7171
    7272//! A class to display network Statistics.
    73 class NetworkStatsWidget : public OrxGui::GLGuiBox
     73class NetworkStatsWidget : public OrxGui::GLGuiFixedpositionBox
    7474{
    7575  public:
Note: See TracChangeset for help on using the changeset viewer.