Changeset 9385 in orxonox.OLD for branches/proxy/src/util/network_stats_widget.cc
- Timestamp:
- Jul 21, 2006, 1:09:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/util/network_stats_widget.cc
r9383 r9385 52 52 : _proxyWidget(proxyName, ip) 53 53 { 54 this->_clientNameWidth = 100.0f; 54 55 this->pack(&_proxyWidget); 55 56 } … … 58 59 { 59 60 HostWidget* newClient = new HostWidget(name, ip); 61 newClient->setNameWidth(this->_clientNameWidth); 60 62 61 63 this->pack(newClient); … … 112 114 113 115 116 void ProxyWidget::setClientNameWidths(float width) 117 { 118 this->_clientNameWidth = width; 119 for (unsigned int i = 0; i < this->_clients.size(); ++i) 120 this->_clients[i]->setNameWidth(width); 121 } 122 114 123 void ProxyWidget::hiding() 115 124 { … … 135 144 */ 136 145 NetworkStatsWidget::NetworkStatsWidget () 137 : GLGuiBox(Vertical)146 : GLGuiBox(Vertical), _thisHost("myName", IP(127, 0, 0 , 0)) 138 147 { 139 148 // this->setClassID(CL_PROTO_ID, "NetworkStatsWidget");
Note: See TracChangeset
for help on using the changeset viewer.