Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9439 in orxonox.OLD for branches/proxy/src/lib


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

more gui

Location:
branches/proxy/src/lib/network/monitor
Files:
3 edited

Legend:

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

    r9438 r9439  
    3333#include "network_stats_widget.h"
    3434
    35 SHELL_COMMAND(gui, NetworkMonitor, toggleGUI);
     35SHELL_COMMAND(gui, NetworkMonitor, toggleGUI)
     36 ->setAlias("ProxyGui");
    3637SHELL_COMMAND(debug, NetworkMonitor, debug);
    3738
     
    204205    this->box = new OrxGui::GLGuiBox(OrxGui::Vertical);
    205206    {
    206       NetworkStatsWidget* netStats = new NetworkStatsWidget();
     207      NetworkStatsWidget* netStats = new NetworkStatsWidget(this);
    207208      this->box->pack(netStats);
    208209
  • branches/proxy/src/lib/network/monitor/network_stats_widget.cc

    r9438 r9439  
    139139 * @brief standard constructor
    140140 */
    141 NetworkStatsWidget::NetworkStatsWidget ()
     141NetworkStatsWidget::NetworkStatsWidget(const NetworkMonitor* monitor)
    142142  : GLGuiBox(OrxGui::Vertical), _thisHost("myName", IP(127, 0, 0 , 0))
    143143{
    144   //   this->setClassID(CL_PROTO_ID, "NetworkStatsWidget");
     144  this->_monitor = monitor;
    145145
    146146  /*
     
    196196}
    197197
     198
     199void NetworkStatsWidget::tick(float dt)
     200{
     201
     202
     203}
     204
    198205void NetworkStatsWidget::resize()
    199206{
  • branches/proxy/src/lib/network/monitor/network_stats_widget.h

    r9438 r9439  
    1313#include "network/ip.h"
    1414
     15class NetworkMonitor;
    1516
    1617
     
    7374{
    7475  public:
    75     NetworkStatsWidget();
     76    NetworkStatsWidget(const NetworkMonitor* monitor);
    7677    virtual ~NetworkStatsWidget();
    7778
     
    9091    void setValue(float value);
    9192
     93    virtual void tick(float dt);
     94
    9295  protected:
    9396    virtual void resize();
     
    9699
    97100  private:
     101    const NetworkMonitor*  _monitor;
     102
    98103    HostWidget             _thisHost;
    99104
Note: See TracChangeset for help on using the changeset viewer.