Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8991 in orxonox.OLD for trunk/src/lib/gui/gl


Ignore:
Timestamp:
Jul 1, 2006, 8:16:09 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: added a Radar class, to display radar as Widget

Location:
trunk/src/lib/gui/gl
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl/glgui_bar.cc

    r8984 r8991  
    4646    this->setClassID(CL_GLGUI_BAR, "GLGuiBar");
    4747
    48     this->setFrontColor(Color(1,1,1));
     48    this->setFrontColor(_changedValueColor, true);
    4949
    5050    this->setSize2D(50, 10);
     
    8787  }
    8888
     89  void GLGuiBar::setChangedValueColor(const Color& color)
     90  {
     91    this->_changedValueColor = color;
     92  }
     93
     94
    8995  void GLGuiBar::resize()
    9096  {
  • trunk/src/lib/gui/gl/glgui_bar.h

    r8986 r8991  
    3131    void setRange(float minimum, float maximum);
    3232
     33    void setChangedValueColor(const Color& color);
     34
    3335    float value() const { return this->_value; };
    3436    float minimum() const { return this->_minimum; };
     
    5153    float         _minimum;
    5254    float         _maximum;
     55
     56    Color         _changedValueColor;
    5357  };
    5458}
  • trunk/src/lib/gui/gl/glgui_text.cc

    r8980 r8991  
    5252    this->_text.setColor(foregroundColor());
    5353    this->_text.setVisibility(false);
     54    this->_changedTextColor = Color::white;
    5455    this->resize();
    5556  }
     
    111112  {
    112113    this->resize();
    113     this->setFrontColor(Color(1,1,1,1), true);
     114    this->setFrontColor(_changedTextColor, true);
    114115    emit(this->textChanged(this->_text.text()));
    115116  }
    116117
    117 
     118  void GLGuiText::setChangedTextColor(const Color& color)
     119  {
     120    this->_changedTextColor = color;
     121  }
    118122
    119123  /**
  • trunk/src/lib/gui/gl/glgui_text.h

    r8980 r8991  
    3131    void clear();
    3232
     33    void setChangedTextColor(const Color& color);
     34
    3335    void setDotsPosition(LimitedWidthText::DotsPosition dotsPosition) { this->_text.setDotsPosition(dotsPosition); };
    3436
     
    5355  private:
    5456    LimitedWidthText    _text;
     57
     58    Color               _changedTextColor;
    5559  };
    5660}
Note: See TracChangeset for help on using the changeset viewer.