#include <gtkStatsStripWindow.h>
Inheritance diagram for GtkStatsStripWindow:
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 () |
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. | |
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. | |
void | setup () |
Call this after initializing the window. | |
Protected Member Functions | |
virtual void | setup_menu () |
void | setup_scale_menu () |
Sets up the options on the scale menu. | |
virtual void | menu_new_window () |
void | menu_hscale (float wpm) |
Selects a new horizontal scale for the strip chart. | |
void | menu_vscale (float max_height) |
Selects a new vertical scale for the strip chart. | |
void | menu_auto_vscale () |
Selects a suitable vertical scale based on the data already visible in the chart. | |
void | menu_show_levels (int collector_index) |
Shows the level values known for the indicated collector. | |
void | open_subchart (int collector_index) |
This is called in response to the collector_picked signal from the strip chart, which is generated when the user double-clicks on a band of color or a label. | |
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) |
string | get_title_text () |
Returns the text suitable for the title label on the top line. | |
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 |
Definition at line 41 of file gtkStatsStripWindow.h.
|
Definition at line 43 of file gtkStatsStripWindow.cxx. References _setup_scale_menu, _title_unknown, layout_window(), new_collector(), and setup_menu(). Referenced by menu_hscale(). |
|
Definition at line 133 of file basicGtkWindow.cxx. References BasicGtkWindow::_state, and BasicGtkWindow::S_ready. |
|
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(). |
|
Returns the text suitable for the title label on the top line.
Definition at line 476 of file gtkStatsStripWindow.cxx. |
|
Reimplemented from GtkStatsWindow. Definition at line 149 of file gtkStatsStripWindow.cxx. References menu_hscale(), and GtkStatsWindow::setup_menu(). |
|
Definition at line 407 of file gtkStatsStripWindow.cxx. References _collector_index, PStatCollectorDef::_level_units, GtkStatsWindow::_monitor, PStatCollectorDef::_name, _thread_index, _title_unknown, PStatClientData::get_collector_def(), PStatClientData::get_thread_name(), PStatClientData::has_collector(), and PStatClientData::has_thread(). Referenced by GtkStatsStripWindow(). |
|
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 75 of file gtkStatsStripWindow.cxx. References GtkStatsWindow::_monitor, PStatClientData::get_collector_def(), PStatClientData::get_collector_has_level(), PStatClientData::get_num_collectors(), and PStatClientData::has_collector(). |
|
Selects a suitable vertical scale based on the data already visible in the chart.
Definition at line 353 of file gtkStatsStripWindow.cxx. References _collector_index, _thread_index, and _title_label. |
|
Definition at line 236 of file gtkStatsWindow.cxx. |
|
Definition at line 224 of file gtkStatsWindow.cxx. |
|
Definition at line 248 of file gtkStatsWindow.cxx. |
|
Selects a new horizontal scale for the strip chart. This is done from the menu called "Speed", since changing the horizontal scale most obviously affects the scrolling speed. The units is in chart width per minute. Definition at line 317 of file gtkStatsStripWindow.cxx. References _chart, GtkStatsWindow::_monitor, _thread_index, PStatGraph::get_xsize(), PStatGraph::get_ysize(), and GtkStatsStripWindow(). Referenced by idle(). |
|
Reimplemented from GtkStatsWindow. Definition at line 292 of file gtkStatsStripWindow.cxx. References _chart, and PStatStripChart::set_vertical_scale(). |
|
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(). |
|
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(). |
|
Shows the level values known for the indicated collector.
Definition at line 368 of file gtkStatsStripWindow.cxx. References _collector_index, and _frame_rate_label. |
|
Selects a new vertical scale for the strip chart. This is done from the menu called "Scale". The units is in seconds, or whatever the units of choice are. Definition at line 338 of file gtkStatsStripWindow.cxx. |
|
Called when a new collector has become known. For the GtkStatsStripWindow, this forces a rebuild of the menu that selects the collectors available for picking levels. Reimplemented from GtkStatsWindow. Definition at line 97 of file gtkStatsStripWindow.cxx. References PStatCollectorDef::_parent_index, and PStatClientData::get_collector_def(). Referenced by GtkStatsStripWindow(). |
|
This is called in response to the collector_picked signal from the strip chart, which is generated when the user double-clicks on a band of color or a label. This opens up a new window focusing just on the indicated collector. Definition at line 393 of file gtkStatsStripWindow.cxx. References _chart. |
|
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. |
|
Reimplemented from GtkStatsWindow. Definition at line 174 of file gtkStatsStripWindow.cxx. References _levels_menu, GtkStatsWindow::_menu, and _scale_menu. Referenced by GtkStatsStripWindow(). |
|
Sets up the options on the scale menu. We can't do this until we have initialized the _chart member and we have gotten our first collector_index. Definition at line 223 of file gtkStatsStripWindow.cxx. |
|
|
|
Sets the title bar appropriately, once the client's information is known.
Definition at line 78 of file gtkStatsWindow.cxx. |
|
Definition at line 74 of file gtkStatsStripWindow.h. Referenced by menu_hscale(), menu_new_window(), and open_subchart(). |
|
Definition at line 67 of file gtkStatsStripWindow.h. Referenced by layout_window(), menu_auto_vscale(), and menu_show_levels(). |
|
Definition at line 75 of file gtkStatsWindow.h. Referenced by GtkStatsWindow::idle(), GtkStatsWindow::new_collector(), and GtkStatsWindow::setup_menu(). |
|
Definition at line 73 of file gtkStatsStripWindow.h. Referenced by menu_show_levels(). |
|
Definition at line 77 of file gtkStatsStripWindow.h. Referenced by setup_menu(). |
|
Definition at line 73 of file gtkStatsWindow.h. Referenced by GtkStatsWindow::GtkStatsWindow(), and GtkStatsWindow::setup_menu(). |
|
Definition at line 74 of file gtkStatsWindow.h. Referenced by GtkStatsWindow::GtkStatsWindow(), GtkStatsWindow::setup_menu(), setup_menu(), and GtkStatsPianoWindow::setup_menu(). |
|
Definition at line 71 of file gtkStatsWindow.h. Referenced by layout_window(), GtkStatsWindow::mark_dead(), mark_dead(), menu_hscale(), and GtkStatsWindow::menu_open_piano_roll(). |
|
Definition at line 76 of file gtkStatsStripWindow.h. Referenced by setup_menu(). |
|
Definition at line 70 of file gtkStatsStripWindow.h. Referenced by GtkStatsStripWindow(). |
|
Definition at line 68 of file gtkStatsStripWindow.h. |
|
Definition at line 66 of file gtkStatsStripWindow.h. Referenced by layout_window(), menu_auto_vscale(), and menu_hscale(). |
|
Definition at line 72 of file gtkStatsStripWindow.h. Referenced by menu_auto_vscale(). |
|
Definition at line 69 of file gtkStatsStripWindow.h. Referenced by GtkStatsStripWindow(), and layout_window(). |