wscout::gui::Trace Class Reference

Scrollable list of packets. More...

#include <wscout_gui_trace.hh>

List of all members.

Public Types

enum  {
  set_position_update_delay = 0, scroll_contents_by_update_delay = 20, packet_spacing = 4, trace_vmargin = packet_spacing,
  trace_hmargin = 8
}

Public Slots

void setPosition (int p=0)
virtual void update ()

Signals

void traceChanged ()
void positionChanged (int)

Public Member Functions

 Trace (pcap::Trace *trace=0, QWidget *parent=0)
void setTrace (pcap::Trace *trace=0)
const pcap::Tracetrace () const
int position () const
int lastPosition () const
QString positionString (int pos=-1) const

Protected Member Functions

Qt overrided functions
virtual void keyPressEvent (QKeyEvent *)
virtual void mouseMoveEvent (QMouseEvent *)
virtual void mousePressEvent (QMouseEvent *)
virtual void resizeEvent (QResizeEvent *)
virtual void scrollContentsBy (int, int)

Properties

int position

Classes

struct  selection


Detailed Description

Scrollable list of packets.

Member Enumeration Documentation

anonymous enum

Enumerator:
set_position_update_delay  Delay before updating after a call to setPosition().
scroll_contents_by_update_delay  Delay before updating after the scrollbar has been moved.
packet_spacing  Space between packets.
trace_vmargin  Vertical margins (top and bottom).
trace_hmargin  Horizontal margins (left and right).


Constructor & Destructor Documentation

wscout::gui::Trace::Trace ( pcap::Trace trace = 0,
QWidget *  parent = 0 
) [explicit]

Build a trace from a pcap::Trace instance.


Member Function Documentation

void wscout::gui::Trace::setTrace ( pcap::Trace trace = 0  ) 

Change the underlying pcap::Trace instance.

const pcap::Trace * wscout::gui::Trace::trace (  )  const

Retrieve the underlying pcap::Trace instance.

int wscout::gui::Trace::position (  )  const

Current position in the underlying pcap::Trace instance.

int wscout::gui::Trace::lastPosition (  )  const

Last position in the underlying pcap::Trace instance.

QString wscout::gui::Trace::positionString ( int  pos = -1  )  const

Get a summary of a given position as a string.

This summary consists of the current position, the last position, and the ratio of the two.

e.g.

 42 / 84 (50%) 

Parameters:
[in] pos The position to summarize. By default the current position.

void wscout::gui::Trace::traceChanged (  )  [signal]

The underlying pcap::Trace instance changed.

void wscout::gui::Trace::positionChanged ( int   )  [signal]

The current position changed.

void wscout::gui::Trace::setPosition ( int  p = 0  )  [slot]

Change the current position.

void wscout::gui::Trace::update (  )  [virtual, slot]

Update the widget's content.


Property Documentation

int wscout::gui::Trace::position [read, write]

Position in the underlying pcap::Trace instance.


The documentation for this class was generated from the following files:
Generated on Wed Sep 12 16:02:50 2007 for WScout by  doxygen 1.5.3