Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/util/network_stats_widget.h @ 9330

Last change on this file since 9330 was 9330, checked in by bensch, 18 years ago

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

File size: 1.1 KB
RevLine 
[4838]1/*!
[9330]2 * @file network_stats_widget.h
[8972]3 * @brief Definition of an EnergyWidget, that displays a bar and a Text
[3245]4*/
[1853]5
[9330]6#ifndef _NETWORK_STATS_WIDGET_H
7#define _NETWORK_STATS_WIDGET_H
[1853]8
[8974]9#include "glgui_box.h"
[8972]10#include "glgui_bar.h"
11#include "glgui_text.h"
[1853]12
[9330]13#include "network/ip.h"
14
15
[8972]16namespace OrxGui
17{
[3543]18
[9330]19  //! A class to display network Statistics.
20  class NetworkStatsWidget : public GLGuiBox
[8972]21  {
[3543]22
[8973]23  public:
[9330]24    NetworkStatsWidget();
25    virtual ~NetworkStatsWidget();
[2036]26
[9330]27    void setUpstream(unsigned int upstream);
28    void setDownstream(unsigned int upstream);
29
[8974]30    void setMaximum(float max);
31    void setValue(float value);
32
[9330]33
34    //void rebuildConnectedHosts(std::vector<hosts> hosts);
35
[8973]36  protected:
[8981]37    virtual void resize();
[8975]38    virtual void showing();
39    virtual void hiding();
[1853]40
[8973]41  private:
[9330]42    IP                     _ip;
43    GLGuiText              _ipText;
[1853]44
[9330]45    GLGuiText              _upstreamText;
46    GLGuiText              _downstreamText;
47
48    std::vector<GLGuiText> _connectedHosts;
49
50    GLGuiText              _serverIP;
51
52
53    GLGuiText              _valueText;
54    GLGuiBar               _bar;
[8972]55  };
56}
[9330]57#endif /* _NETWORK_STATS_WIDGET_H */
Note: See TracBrowser for help on using the repository browser.