Changeset 9439 in orxonox.OLD for branches/proxy/src/lib/network/monitor
- Timestamp:
- Jul 24, 2006, 5:26:34 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network/monitor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9438 r9439 33 33 #include "network_stats_widget.h" 34 34 35 SHELL_COMMAND(gui, NetworkMonitor, toggleGUI); 35 SHELL_COMMAND(gui, NetworkMonitor, toggleGUI) 36 ->setAlias("ProxyGui"); 36 37 SHELL_COMMAND(debug, NetworkMonitor, debug); 37 38 … … 204 205 this->box = new OrxGui::GLGuiBox(OrxGui::Vertical); 205 206 { 206 NetworkStatsWidget* netStats = new NetworkStatsWidget( );207 NetworkStatsWidget* netStats = new NetworkStatsWidget(this); 207 208 this->box->pack(netStats); 208 209 -
branches/proxy/src/lib/network/monitor/network_stats_widget.cc
r9438 r9439 139 139 * @brief standard constructor 140 140 */ 141 NetworkStatsWidget::NetworkStatsWidget ()141 NetworkStatsWidget::NetworkStatsWidget(const NetworkMonitor* monitor) 142 142 : GLGuiBox(OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 0)) 143 143 { 144 // this->setClassID(CL_PROTO_ID, "NetworkStatsWidget");144 this->_monitor = monitor; 145 145 146 146 /* … … 196 196 } 197 197 198 199 void NetworkStatsWidget::tick(float dt) 200 { 201 202 203 } 204 198 205 void NetworkStatsWidget::resize() 199 206 { -
branches/proxy/src/lib/network/monitor/network_stats_widget.h
r9438 r9439 13 13 #include "network/ip.h" 14 14 15 class NetworkMonitor; 15 16 16 17 … … 73 74 { 74 75 public: 75 NetworkStatsWidget( );76 NetworkStatsWidget(const NetworkMonitor* monitor); 76 77 virtual ~NetworkStatsWidget(); 77 78 … … 90 91 void setValue(float value); 91 92 93 virtual void tick(float dt); 94 92 95 protected: 93 96 virtual void resize(); … … 96 99 97 100 private: 101 const NetworkMonitor* _monitor; 102 98 103 HostWidget _thisHost; 99 104
Note: See TracChangeset
for help on using the changeset viewer.