Changeset 9691 in orxonox.OLD for branches/new_class_id/src/lib/network/monitor
- Timestamp:
- Aug 22, 2006, 11:45:21 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/network/monitor
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/network/monitor/connection_monitor.cc
r9690 r9691 31 31 { 32 32 /* set the class id for the base object and add ist to class list*/ 33 this-> setClassID(CL_CONNECTION_MONITOR, "ConnectionMonitor");33 this->registerObject(this, ConnectionMonitor::_objectList); 34 34 35 35 this->userId = userId; -
branches/new_class_id/src/lib/network/monitor/network_monitor.cc
r9690 r9691 46 46 : Synchronizeable() 47 47 { 48 this-> setClassID(CL_NETWORK_MONITOR, "NetworkMonitor");48 this->registerObject(this, NetworkMonitor::_objectList); 49 49 50 50 this->networkStream = networkStream; -
branches/new_class_id/src/lib/network/monitor/network_stats_widget.cc
r9690 r9691 274 274 NetworkStatsWidget* NetworkStatsWidget::_statsWidget = NULL; 275 275 276 #include "class_list.h"277 278 276 void NetworkStatsWidget::toggleGUI() 279 277 { 280 BaseObject* bo = NULL; 281 const std::list<BaseObject*>* ls = ClassList::getList(CL_NETWORK_MONITOR); 282 if (ls != NULL && !ls->empty()) 283 bo = ls->front(); 284 285 if (bo != NULL && NetworkStatsWidget::_statsWidget == NULL) 286 { 287 NetworkStatsWidget::_statsWidget = new NetworkStatsWidget(dynamic_cast<NetworkMonitor*> (bo)); 278 NetworkMonitor* monitor; 279 if (!NetworkMonitor::objectList().empty()) 280 monitor = NetworkMonitor::objectList().front(); 281 282 if (monitor != NULL && NetworkStatsWidget::_statsWidget == NULL) 283 { 284 NetworkStatsWidget::_statsWidget = new NetworkStatsWidget(monitor); 288 285 NetworkStatsWidget::_statsWidget->showAll(); 289 286 } -
branches/new_class_id/src/lib/network/monitor/network_stats_widget.h
r9690 r9691 20 20 class HostWidget : public OrxGui::GLGuiBox 21 21 { 22 NewObjectListDeclaration(HostWidget);23 22 public: 24 23 HostWidget(const std::string& name, const IP& ip); … … 82 81 class NetworkStatsWidget : public OrxGui::GLGuiFixedpositionBox 83 82 { 83 NewObjectListDeclaration(NetworkStatsWidget); 84 84 public: 85 85 static void toggleGUI();
Note: See TracChangeset
for help on using the changeset viewer.