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

GtkStatsStripWindow Class Reference

#include <gtkStatsStripWindow.h>

Inheritance diagram for GtkStatsStripWindow:

GtkStatsWindow BasicGtkWindow List of all members.

Public Member Functions

 GtkStatsStripWindow (GtkStatsMonitor *monitor, int thread_index, int collector_index, bool show_level, int chart_xsize, int chart_ysize)
virtual void mark_dead ()
virtual void new_collector ()
virtual void idle ()

Protected Member Functions

virtual void setup_menu ()
void setup_scale_menu ()
virtual void menu_new_window ()
void menu_hscale (float wpm)
void menu_vscale (float max_height)
void menu_auto_vscale ()
void menu_show_levels (int collector_index)
void open_subchart (int collector_index)

Private Member Functions

void layout_window (int chart_xsize, int chart_ysize)
string get_title_text ()

Private Attributes

int _thread_index
int _collector_index
bool _show_level
bool _title_unknown
bool _setup_scale_menu
Gtk::Label * _title_label
Gtk::Label * _frame_rate_label
GtkStatsStripChart_chart
Gtk::Menu * _scale_menu
Gtk::Menu * _levels_menu

Constructor & Destructor Documentation

GtkStatsStripWindow::GtkStatsStripWindow GtkStatsMonitor monitor,
int  thread_index,
int  collector_index,
bool  show_level,
int  chart_xsize,
int  chart_ysize
 

Definition at line 38 of file gtkStatsStripWindow.cxx.

References _setup_scale_menu, _title_unknown, layout_window(), new_collector(), and setup_menu().

Referenced by menu_new_window(), menu_show_levels(), and open_subchart().


Member Function Documentation

string GtkStatsStripWindow::get_title_text  )  [private]
 

Definition at line 411 of file gtkStatsStripWindow.cxx.

References _collector_index, PStatCollectorDef::_level_units, PStatCollectorDef::_name, _thread_index, _title_unknown, PStatClientData::get_collector_def(), PStatClientData::get_thread_name(), PStatClientData::has_collector(), and PStatClientData::has_thread().

Referenced by idle(), and layout_window().

void GtkStatsStripWindow::idle  )  [virtual]
 

Reimplemented from GtkStatsWindow.

Definition at line 130 of file gtkStatsStripWindow.cxx.

References _chart, _frame_rate_label, _title_label, buffer, PStatThreadData::get_frame_rate(), PStatView::get_thread_data(), get_title_text(), PStatStripChart::get_view(), GtkStatsWindow::idle(), PStatThreadData::is_empty(), and PStatStripChart::update().

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

Definition at line 346 of file gtkStatsStripWindow.cxx.

References _chart, _collector_index, _frame_rate_label, GtkStatsWindow::_main_box, _thread_index, _title_label, GtkStatsStripChart::collector_picked, GtkStatsStripChart::get_guide(), GtkStatsStripChart::get_labels(), get_title_text(), and open_subchart().

Referenced by GtkStatsStripWindow().

void GtkStatsStripWindow::mark_dead  )  [virtual]
 

Reimplemented from GtkStatsWindow.

Definition at line 65 of file gtkStatsStripWindow.cxx.

References _chart, GtkStatsStripChart::mark_dead(), and GtkStatsWindow::mark_dead().

void GtkStatsStripWindow::menu_auto_vscale  )  [protected]
 

Definition at line 306 of file gtkStatsStripWindow.cxx.

References _chart, and PStatStripChart::set_auto_vertical_scale().

Referenced by setup_menu().

void GtkStatsStripWindow::menu_hscale float  wpm  )  [protected]
 

Definition at line 281 of file gtkStatsStripWindow.cxx.

References _chart, and PStatStripChart::set_horizontal_scale().

Referenced by setup_menu().

void GtkStatsStripWindow::menu_new_window  )  [protected, virtual]
 

Reimplemented from GtkStatsWindow.

Definition at line 264 of file gtkStatsStripWindow.cxx.

References _chart, _collector_index, _show_level, _thread_index, PStatGraph::get_xsize(), PStatGraph::get_ysize(), and GtkStatsStripWindow().

void GtkStatsStripWindow::menu_show_levels int  collector_index  )  [protected]
 

Definition at line 317 of file gtkStatsStripWindow.cxx.

References _chart, _thread_index, PStatGraph::get_xsize(), PStatGraph::get_ysize(), and GtkStatsStripWindow().

Referenced by new_collector().

void GtkStatsStripWindow::menu_vscale float  max_height  )  [protected]
 

Definition at line 295 of file gtkStatsStripWindow.cxx.

References _chart, and PStatStripChart::set_vertical_scale().

Referenced by setup_scale_menu().

void GtkStatsStripWindow::new_collector  )  [virtual]
 

Reimplemented from GtkStatsWindow.

Definition at line 80 of file gtkStatsStripWindow.cxx.

References _levels_menu, PStatCollectorDef::_parent_index, PStatClientData::get_collector_def(), PStatClientData::get_collector_has_level(), PStatClientData::get_collector_name(), PStatClientData::get_num_collectors(), PStatClientData::has_collector(), menu_show_levels(), and setup_scale_menu().

Referenced by GtkStatsStripWindow().

void GtkStatsStripWindow::open_subchart int  collector_index  )  [protected]
 

Definition at line 334 of file gtkStatsStripWindow.cxx.

References _chart, _show_level, _thread_index, PStatGraph::get_xsize(), PStatGraph::get_ysize(), and GtkStatsStripWindow().

Referenced by layout_window().

void GtkStatsStripWindow::setup_menu  )  [protected, virtual]
 

Reimplemented from GtkStatsWindow.

Definition at line 153 of file gtkStatsStripWindow.cxx.

References _levels_menu, GtkStatsWindow::_menu, _scale_menu, menu_auto_vscale(), menu_hscale(), and GtkStatsWindow::setup_menu().

Referenced by GtkStatsStripWindow().

void GtkStatsStripWindow::setup_scale_menu  )  [protected]
 

Definition at line 197 of file gtkStatsStripWindow.cxx.

References _chart, _collector_index, PStatCollectorDef::_level_units, _scale_menu, _setup_scale_menu, _show_level, PStatCollectorDef::_suggested_scale, PStatGraph::format_number(), PStatGraph::GBU_hz, PStatGraph::GBU_ms, PStatGraph::GBU_named, PStatGraph::GBU_show_units, PStatClientData::get_collector_def(), PStatGraph::get_target_frame_rate(), PStatClientData::has_collector(), menu_vscale(), scale, PStatGraph::set_guide_bar_unit_name(), and PStatGraph::set_guide_bar_units().

Referenced by new_collector().


Member Data Documentation

GtkStatsStripChart* GtkStatsStripWindow::_chart [private]
 

Definition at line 67 of file gtkStatsStripWindow.h.

Referenced by idle(), layout_window(), mark_dead(), menu_auto_vscale(), menu_hscale(), menu_new_window(), menu_show_levels(), menu_vscale(), open_subchart(), and setup_scale_menu().

int GtkStatsStripWindow::_collector_index [private]
 

Definition at line 60 of file gtkStatsStripWindow.h.

Referenced by get_title_text(), layout_window(), menu_new_window(), and setup_scale_menu().

Gtk::Label* GtkStatsStripWindow::_frame_rate_label [private]
 

Definition at line 66 of file gtkStatsStripWindow.h.

Referenced by idle(), and layout_window().

Gtk::Menu* GtkStatsStripWindow::_levels_menu [private]
 

Definition at line 70 of file gtkStatsStripWindow.h.

Referenced by new_collector(), and setup_menu().

Gtk::Menu* GtkStatsStripWindow::_scale_menu [private]
 

Definition at line 69 of file gtkStatsStripWindow.h.

Referenced by setup_menu(), and setup_scale_menu().

bool GtkStatsStripWindow::_setup_scale_menu [private]
 

Definition at line 63 of file gtkStatsStripWindow.h.

Referenced by GtkStatsStripWindow(), and setup_scale_menu().

bool GtkStatsStripWindow::_show_level [private]
 

Definition at line 61 of file gtkStatsStripWindow.h.

Referenced by menu_new_window(), open_subchart(), and setup_scale_menu().

int GtkStatsStripWindow::_thread_index [private]
 

Definition at line 59 of file gtkStatsStripWindow.h.

Referenced by get_title_text(), layout_window(), menu_new_window(), menu_show_levels(), and open_subchart().

Gtk::Label* GtkStatsStripWindow::_title_label [private]
 

Definition at line 65 of file gtkStatsStripWindow.h.

Referenced by idle(), and layout_window().

bool GtkStatsStripWindow::_title_unknown [private]
 

Definition at line 62 of file gtkStatsStripWindow.h.

Referenced by get_title_text(), and GtkStatsStripWindow().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:01:08 2003 for Panda-Tool by doxygen1.3