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

GtkStatsPianoWindow Class Reference

A window that contains a GtkStatsPianoRoll. More...

#include <gtkStatsPianoWindow.h>

Inheritance diagram for GtkStatsPianoWindow:

GtkStatsWindow BasicGtkWindow List of all members.

Public Member Functions

 GtkStatsPianoWindow (GtkStatsMonitor *monitor, int thread_index, int chart_xsize, int chart_ysize)
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 idle ()
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 new_collector ()
 Called when a new collector has become known, in case the window cares.

void setup ()
 Call this after initializing the window.


Protected Member Functions

virtual void setup_menu ()
virtual void menu_new_window ()
void menu_hscale (float hz)
 Selects a new horizontal scale for the piano roll.

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.

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

Private Member Functions

void layout_window (int chart_xsize, int chart_ysize)

Private Attributes

int _thread_index
GtkStatsPianoRoll_chart

Detailed Description

A window that contains a GtkStatsPianoRoll.

Definition at line 39 of file gtkStatsPianoWindow.h.


Constructor & Destructor Documentation

GtkStatsPianoWindow::GtkStatsPianoWindow GtkStatsMonitor monitor,
int  thread_index,
int  chart_xsize,
int  chart_ysize
 

Definition at line 36 of file gtkStatsPianoWindow.cxx.


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, inherited]
 

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 GtkStatsWindow::menu_open_strip_chart().

void GtkStatsPianoWindow::idle  )  [virtual]
 

Reimplemented from GtkStatsWindow.

Definition at line 73 of file gtkStatsPianoWindow.cxx.

void GtkStatsPianoWindow::layout_window int  chart_xsize,
int  chart_ysize
[private]
 

Definition at line 159 of file gtkStatsPianoWindow.cxx.

References _chart.

void GtkStatsPianoWindow::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 from GtkStatsWindow.

Definition at line 60 of file gtkStatsPianoWindow.cxx.

References _chart, GtkStatsWindow::idle(), and PStatPianoRoll::update().

void GtkStatsWindow::menu_close_all_windows  )  [protected, inherited]
 

Definition at line 236 of file gtkStatsWindow.cxx.

void GtkStatsWindow::menu_close_window  )  [protected, inherited]
 

Definition at line 224 of file gtkStatsWindow.cxx.

void GtkStatsWindow::menu_disconnect  )  [protected, inherited]
 

Definition at line 248 of file gtkStatsWindow.cxx.

void GtkStatsPianoWindow::menu_hscale float  hz  )  [protected]
 

Selects a new horizontal scale for the piano roll.

This is done from the menu called "Scale".

The units is in Hz.

Definition at line 147 of file gtkStatsPianoWindow.cxx.

References _chart.

void GtkStatsPianoWindow::menu_new_window  )  [protected, virtual]
 

Reimplemented from GtkStatsWindow.

Definition at line 127 of file gtkStatsPianoWindow.cxx.

void GtkStatsWindow::menu_open_piano_roll  )  [protected, inherited]
 

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

Definition at line 201 of file gtkStatsWindow.cxx.

References GtkStatsWindow::_monitor.

Referenced by GtkStatsWindow::new_collector().

void GtkStatsWindow::menu_open_strip_chart  )  [protected, inherited]
 

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

Definition at line 186 of file gtkStatsWindow.cxx.

References GtkStatsWindow::destruct().

Referenced by GtkStatsWindow::new_collector().

void GtkStatsWindow::new_collector  )  [virtual, inherited]
 

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 GtkStatsWindow::_file_menu, GtkStatsWindow::menu_open_piano_roll(), and GtkStatsWindow::menu_open_strip_chart().

Referenced by GtkStatsWindow::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 GtkStatsPianoWindow::setup_menu  )  [protected, virtual]
 

Reimplemented from GtkStatsWindow.

Definition at line 86 of file gtkStatsPianoWindow.cxx.

References GtkStatsWindow::_menu.

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

void GtkStatsWindow::update_title  )  [virtual, inherited]
 

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

Definition at line 78 of file gtkStatsWindow.cxx.


Member Data Documentation

GtkStatsPianoRoll* GtkStatsPianoWindow::_chart [private]
 

Definition at line 58 of file gtkStatsPianoWindow.h.

Referenced by layout_window(), mark_dead(), and menu_hscale().

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

Definition at line 75 of file gtkStatsWindow.h.

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

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

Definition at line 73 of file gtkStatsWindow.h.

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

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

Definition at line 74 of file gtkStatsWindow.h.

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

PointerTo< GtkStatsMonitor > GtkStatsWindow::_monitor [protected, inherited]
 

Definition at line 71 of file gtkStatsWindow.h.

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

int GtkStatsPianoWindow::_thread_index [private]
 

Definition at line 56 of file gtkStatsPianoWindow.h.


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