Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 18, 2006, 8:02:10 PM (19 years ago)
Author:
bensch
Message:

orxonox/proxy added network_stats_widget to display the network statistics on the fly

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/util/network_stats_widget.h

    r9329 r9330  
    11/*!
    2  * @file glgui_energywidget.h
     2 * @file network_stats_widget.h
    33 * @brief Definition of an EnergyWidget, that displays a bar and a Text
    44*/
    55
    6 #ifndef _GLGUI_ENERGY_WIDGET_H
    7 #define _GLGUI_ENERGY_WIDGET_H
     6#ifndef _NETWORK_STATS_WIDGET_H
     7#define _NETWORK_STATS_WIDGET_H
    88
    99#include "glgui_box.h"
     
    1111#include "glgui_text.h"
    1212
     13#include "network/ip.h"
     14
     15
    1316namespace OrxGui
    1417{
    1518
    16   //! A class for ...
    17   class GLGuiEnergyWidget : public GLGuiBox
     19  //! A class to display network Statistics.
     20  class NetworkStatsWidget : public GLGuiBox
    1821  {
    1922
    2023  public:
    21     GLGuiEnergyWidget();
    22     virtual ~GLGuiEnergyWidget();
     24    NetworkStatsWidget();
     25    virtual ~NetworkStatsWidget();
    2326
    24     void setDisplayedName(const std::string& name);
     27    void setUpstream(unsigned int upstream);
     28    void setDownstream(unsigned int upstream);
     29
    2530    void setMaximum(float max);
    2631    void setValue(float value);
     32
     33
     34    //void rebuildConnectedHosts(std::vector<hosts> hosts);
    2735
    2836  protected:
     
    3240
    3341  private:
    34     GLGuiText               _name;
    35     GLGuiText               _valueText;
    36     GLGuiBar                _bar;
     42    IP                     _ip;
     43    GLGuiText              _ipText;
    3744
     45    GLGuiText              _upstreamText;
     46    GLGuiText              _downstreamText;
     47
     48    std::vector<GLGuiText> _connectedHosts;
     49
     50    GLGuiText              _serverIP;
     51
     52
     53    GLGuiText              _valueText;
     54    GLGuiBar               _bar;
    3855  };
    3956}
    40 #endif /* _GLGUI_ENERGY_WIDGET_H */
     57#endif /* _NETWORK_STATS_WIDGET_H */
Note: See TracChangeset for help on using the changeset viewer.