Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 24, 2006, 5:07:55 PM (18 years ago)
Author:
bensch
Message:

more gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/monitor/network_stats_widget.cc

    r9437 r9438  
    1919
    2020#include "multi_type.h"
    21 
    22 #include "shell_command.h"
    23 //#include "network_monitor.h"
    24 
    25 SHELL_COMMAND(gui, NetworkStatsWidget, gui);
    26 
    2721
    2822HostWidget::HostWidget(const std::string& name, const IP& ip)
     
    142136//======================================================//
    143137
    144 
    145 void NetworkStatsWidget::gui()
    146 {
    147   printf("YEAH\n");
    148 }
    149 
    150 
    151138/**
    152139 * @brief standard constructor
     
    157144  //   this->setClassID(CL_PROTO_ID, "NetworkStatsWidget");
    158145
     146  /*
    159147  this->_bar.setSize2D(100, 30);
    160148  this->pack(&this->_valueText);
     
    173161  this->_bar.setForegroundColor(Color(.5, .5, .5, 1));
    174162  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);
    175170}
    176171
     
    185180void NetworkStatsWidget::setMaximum(float max)
    186181{
    187   this->_bar.setMaximum(max);
     182 // this->_bar.setMaximum(max);
    188183}
    189184
     
    192187  MultiType val(value);
    193188  val.setType(MT_INT);
    194 
     189  /*
    195190
    196191  this->_bar.setValue(value);
     
    198193  this->_bar.setFrontColor(Color(1,1,1,1), true);
    199194  this->_valueText.setText(val.getString());
     195  */
    200196}
    201197
     
    208204void NetworkStatsWidget::showing()
    209205{
    210   this->_valueText.show();
    211   this->_bar.show();
    212206}
    213207
    214208void NetworkStatsWidget::hiding()
    215209{
    216   this->_valueText.hide();
    217   this->_bar.hide();
    218 }
     210}
Note: See TracChangeset for help on using the changeset viewer.