Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/proxy: merged the proxy.old back again, and it seems to work.

Merged with command
svn merge -r9247:HEAD https://svn.orxonox.net/orxonox/branches/proxy.old .

no conflicts

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