Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

GtkStatsWindow Class Reference

This is the base class for a family of windows that are associated with one particular stats client. More...

#include <gtkStatsWindow.h>

Inheritance diagram for GtkStatsWindow:

BasicGtkWindow GtkStatsPianoWindow GtkStatsStripWindow List of all members.

Public Member Functions

 GtkStatsWindow (GtkStatsMonitor *monitor)
virtual bool destruct ()
 Call this to remove the window, etc.

virtual void update_title ()
 Sets the title bar appropriately, once the client's information is known.

virtual void mark_dead ()
 Called when the client's connection has been lost, this should update the window in some obvious way to indicate that the window is no longer live.

virtual void new_collector ()
 Called when a new collector has become known, in case the window cares.

virtual void idle ()
void setup ()
 Call this after initializing the window.


Protected Member Functions

virtual void setup_menu ()
void menu_open_strip_chart ()
 Open up a new strip-chart style window for the main thread.

void menu_open_piano_roll ()
 Open up a new piano-roll style window for the main thread.

virtual void menu_new_window ()
void menu_close_window ()
void menu_close_all_windows ()
void menu_disconnect ()
void delete_self ()

Static Protected Member Functions

gint static_delete (BasicGtkWindow *window)

Protected Attributes

PointerTo< GtkStatsMonitor_monitor
Gtk::VBox * _main_box
Gtk::MenuBar * _menu
Gtk::Menu * _file_menu

Detailed Description

This is the base class for a family of windows that are associated with one particular stats client.

Each window keeps a pointer back to the GtkStatsMonitor object, which in turn knows about all of the windows; when the last window is closed, the monitor object goes away and ends the session.

Definition at line 50 of file gtkStatsWindow.h.


Constructor & Destructor Documentation

GtkStatsWindow::GtkStatsWindow GtkStatsMonitor monitor  ) 
 

Definition at line 38 of file gtkStatsWindow.cxx.

References _main_box, and _menu.


Member Function Documentation

void BasicGtkWindow::delete_self  )  [protected, inherited]
 

Definition at line 133 of file basicGtkWindow.cxx.

References BasicGtkWindow::_state, and BasicGtkWindow::S_ready.

bool GtkStatsWindow::destruct  )  [virtual]
 

Call this to remove the window, etc.

It's not tied directly to the real destructor because that seems to just lead to trouble. This returns true if it actually destructed, or false if it had already destructed previously and did nothing this time.

Reimplemented from BasicGtkWindow.

Definition at line 58 of file gtkStatsWindow.cxx.

Referenced by GtkStatsMonitor::GtkStatsMonitor(), and menu_open_strip_chart().

void GtkStatsWindow::idle  )  [virtual]
 

Reimplemented in GtkStatsPianoWindow, and GtkStatsStripWindow.

Definition at line 128 of file gtkStatsWindow.cxx.

References _file_menu.

Referenced by GtkStatsPianoWindow::mark_dead().

void GtkStatsWindow::mark_dead  )  [virtual]
 

Called when the client's connection has been lost, this should update the window in some obvious way to indicate that the window is no longer live.

Reimplemented in GtkStatsPianoWindow, and GtkStatsStripWindow.

Definition at line 102 of file gtkStatsWindow.cxx.

References _monitor, and new_collector().

void GtkStatsWindow::menu_close_all_windows  )  [protected]
 

Definition at line 236 of file gtkStatsWindow.cxx.

void GtkStatsWindow::menu_close_window  )  [protected]
 

Definition at line 224 of file gtkStatsWindow.cxx.

void GtkStatsWindow::menu_disconnect  )  [protected]
 

Definition at line 248 of file gtkStatsWindow.cxx.

void GtkStatsWindow::menu_new_window  )  [protected, virtual]
 

Reimplemented in GtkStatsPianoWindow, and GtkStatsStripWindow.

Definition at line 213 of file gtkStatsWindow.cxx.

void GtkStatsWindow::menu_open_piano_roll  )  [protected]
 

Open up a new piano-roll style window for the main thread.

Definition at line 201 of file gtkStatsWindow.cxx.

References _monitor.

Referenced by new_collector().

void GtkStatsWindow::menu_open_strip_chart  )  [protected]
 

Open up a new strip-chart style window for the main thread.

Definition at line 186 of file gtkStatsWindow.cxx.

References destruct().

Referenced by new_collector().

void GtkStatsWindow::new_collector  )  [virtual]
 

Called when a new collector has become known, in case the window cares.

Reimplemented in GtkStatsStripWindow.

Definition at line 117 of file gtkStatsWindow.cxx.

References _file_menu, menu_open_piano_roll(), and menu_open_strip_chart().

Referenced by mark_dead().

void BasicGtkWindow::setup  )  [inherited]
 

Call this after initializing the window.

Definition at line 69 of file basicGtkWindow.cxx.

References BasicGtkWindow::_destroyed, GtkBase::_gtk, BasicGtkWindow::_state, BasicGtkWindow::S_gone, and BasicGtkWindow::S_virgin.

void GtkStatsWindow::setup_menu  )  [protected, virtual]
 

Reimplemented in GtkStatsPianoWindow, and GtkStatsStripWindow.

Definition at line 142 of file gtkStatsWindow.cxx.

References _file_menu, _main_box, and _menu.

Referenced by GtkStatsStripWindow::idle().

gint BasicGtkWindow::static_delete BasicGtkWindow window  )  [static, protected, inherited]
 

void GtkStatsWindow::update_title  )  [virtual]
 

Sets the title bar appropriately, once the client's information is known.

Definition at line 78 of file gtkStatsWindow.cxx.


Member Data Documentation

Gtk::Menu* GtkStatsWindow::_file_menu [protected]
 

Definition at line 75 of file gtkStatsWindow.h.

Referenced by idle(), new_collector(), and setup_menu().

Gtk::VBox* GtkStatsWindow::_main_box [protected]
 

Definition at line 73 of file gtkStatsWindow.h.

Referenced by GtkStatsWindow(), and setup_menu().

Gtk::MenuBar* GtkStatsWindow::_menu [protected]
 

Definition at line 74 of file gtkStatsWindow.h.

Referenced by GtkStatsWindow(), setup_menu(), GtkStatsStripWindow::setup_menu(), and GtkStatsPianoWindow::setup_menu().

PointerTo< GtkStatsMonitor > GtkStatsWindow::_monitor [protected]
 

Definition at line 71 of file gtkStatsWindow.h.

Referenced by GtkStatsStripWindow::layout_window(), mark_dead(), GtkStatsStripWindow::mark_dead(), GtkStatsStripWindow::menu_hscale(), and menu_open_piano_roll().


The documentation for this class was generated from the following files:
Generated on Fri May 2 03:27:16 2003 for Panda-Tool by doxygen1.3