Changeset 9438 in orxonox.OLD for branches/proxy/src/lib/network/monitor/network_stats_widget.cc
- Timestamp:
- Jul 24, 2006, 5:07:55 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_stats_widget.cc
r9437 r9438 19 19 20 20 #include "multi_type.h" 21 22 #include "shell_command.h"23 //#include "network_monitor.h"24 25 SHELL_COMMAND(gui, NetworkStatsWidget, gui);26 27 21 28 22 HostWidget::HostWidget(const std::string& name, const IP& ip) … … 142 136 //======================================================// 143 137 144 145 void NetworkStatsWidget::gui()146 {147 printf("YEAH\n");148 }149 150 151 138 /** 152 139 * @brief standard constructor … … 157 144 // this->setClassID(CL_PROTO_ID, "NetworkStatsWidget"); 158 145 146 /* 159 147 this->_bar.setSize2D(100, 30); 160 148 this->pack(&this->_valueText); … … 173 161 this->_bar.setForegroundColor(Color(.5, .5, .5, 1)); 174 162 this->_bar.setChangedValueColor(Color::black); 163 */ 164 this->pack(&this->_thisHost); 165 166 this->pack(&this->_upstreamText); 167 this->pack(&this->_downstreamText); 168 169 this->pack(&this->_serverIP); 175 170 } 176 171 … … 185 180 void NetworkStatsWidget::setMaximum(float max) 186 181 { 187 this->_bar.setMaximum(max);182 // this->_bar.setMaximum(max); 188 183 } 189 184 … … 192 187 MultiType val(value); 193 188 val.setType(MT_INT); 194 189 /* 195 190 196 191 this->_bar.setValue(value); … … 198 193 this->_bar.setFrontColor(Color(1,1,1,1), true); 199 194 this->_valueText.setText(val.getString()); 195 */ 200 196 } 201 197 … … 208 204 void NetworkStatsWidget::showing() 209 205 { 210 this->_valueText.show();211 this->_bar.show();212 206 } 213 207 214 208 void NetworkStatsWidget::hiding() 215 209 { 216 this->_valueText.hide(); 217 this->_bar.hide(); 218 } 210 }
Note: See TracChangeset
for help on using the changeset viewer.