Changeset 9330 in orxonox.OLD for branches/proxy/src/util/network_stats_widget.h
- Timestamp:
- Jul 18, 2006, 8:02:10 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/util/network_stats_widget.h
r9329 r9330 1 1 /*! 2 * @file glgui_energywidget.h2 * @file network_stats_widget.h 3 3 * @brief Definition of an EnergyWidget, that displays a bar and a Text 4 4 */ 5 5 6 #ifndef _ GLGUI_ENERGY_WIDGET_H7 #define _ GLGUI_ENERGY_WIDGET_H6 #ifndef _NETWORK_STATS_WIDGET_H 7 #define _NETWORK_STATS_WIDGET_H 8 8 9 9 #include "glgui_box.h" … … 11 11 #include "glgui_text.h" 12 12 13 #include "network/ip.h" 14 15 13 16 namespace OrxGui 14 17 { 15 18 16 //! A class for ...17 class GLGuiEnergyWidget : public GLGuiBox19 //! A class to display network Statistics. 20 class NetworkStatsWidget : public GLGuiBox 18 21 { 19 22 20 23 public: 21 GLGuiEnergyWidget();22 virtual ~ GLGuiEnergyWidget();24 NetworkStatsWidget(); 25 virtual ~NetworkStatsWidget(); 23 26 24 void setDisplayedName(const std::string& name); 27 void setUpstream(unsigned int upstream); 28 void setDownstream(unsigned int upstream); 29 25 30 void setMaximum(float max); 26 31 void setValue(float value); 32 33 34 //void rebuildConnectedHosts(std::vector<hosts> hosts); 27 35 28 36 protected: … … 32 40 33 41 private: 34 GLGuiText _name; 35 GLGuiText _valueText; 36 GLGuiBar _bar; 42 IP _ip; 43 GLGuiText _ipText; 37 44 45 GLGuiText _upstreamText; 46 GLGuiText _downstreamText; 47 48 std::vector<GLGuiText> _connectedHosts; 49 50 GLGuiText _serverIP; 51 52 53 GLGuiText _valueText; 54 GLGuiBar _bar; 38 55 }; 39 56 } 40 #endif /* _ GLGUI_ENERGY_WIDGET_H */57 #endif /* _NETWORK_STATS_WIDGET_H */
Note: See TracChangeset
for help on using the changeset viewer.