Changeset 9385 in orxonox.OLD for branches/proxy/src/util
- Timestamp:
- Jul 21, 2006, 1:09:19 PM (18 years ago)
- Location:
- branches/proxy/src/util
- Files:
-
- 2 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"); -
branches/proxy/src/util/network_stats_widget.h
r9383 r9385 53 53 bool removeClient(const std::string& name, const IP& ip); 54 54 55 void setClientNameWidths(float width); 56 55 57 56 58 protected: … … 63 65 64 66 std::vector<HostWidget*> _clients; 67 float _clientNameWidth; 65 68 }; 66 69 … … 92 95 93 96 private: 94 IP _ip; 95 GLGuiText _ipText; 97 HostWidget _thisHost; 96 98 97 99 GLGuiText _upstreamText; 98 100 GLGuiText _downstreamText; 99 101 100 std::vector< GLGuiText> _connectedHosts;102 std::vector<HostWidget*>_connectedProxies; 101 103 102 104 GLGuiText _serverIP;
Note: See TracChangeset
for help on using the changeset viewer.