Panda3D
|
A pulldown menu of charts available for a particular thread. More...
#include "gtkStatsChartMenu.h"
Public Member Functions | |
GtkStatsChartMenu (GtkStatsMonitor *monitor, int thread_index) | |
void | add_to_menu_bar (GtkWidget *menu_bar, int position) |
Adds the menu to the end of the indicated menu bar. More... | |
void | check_update () |
Checks to see if the menu needs to be updated (e.g. More... | |
void | do_update () |
Unconditionally updates the menu with the latest data from the client. More... | |
GtkWidget * | get_menu_widget () |
Returns the gtk widget for this particular menu. More... | |
A pulldown menu of charts available for a particular thread.
Definition at line 31 of file gtkStatsChartMenu.h.
void GtkStatsChartMenu::add_to_menu_bar | ( | GtkWidget * | menu_bar, |
int | position | ||
) |
Adds the menu to the end of the indicated menu bar.
Definition at line 59 of file gtkStatsChartMenu.cxx.
References check_update(), and PStatClientData::get_thread_name().
Referenced by get_menu_widget(), and GtkStatsMonitor::new_thread().
void GtkStatsChartMenu::check_update | ( | ) |
Checks to see if the menu needs to be updated (e.g.
because of new data from the client), and updates it if necessary.
Definition at line 84 of file gtkStatsChartMenu.cxx.
References do_update(), and PStatView::get_level_index().
Referenced by add_to_menu_bar().
void GtkStatsChartMenu::do_update | ( | ) |
Unconditionally updates the menu with the latest data from the client.
Definition at line 98 of file gtkStatsChartMenu.cxx.
References PStatViewLevel::get_child(), PStatViewLevel::get_collector(), PStatClientData::get_collector_has_level(), PStatClientData::get_collector_name(), PStatView::get_level_index(), PStatViewLevel::get_num_children(), PStatClientData::get_num_toplevel_collectors(), PStatView::get_top_level(), PStatClientData::get_toplevel_collector(), PStatClientData::has_collector(), GtkStatsMonitor::open_piano_roll(), and GtkStatsMonitor::open_strip_chart().
Referenced by check_update().
GtkWidget * GtkStatsChartMenu::get_menu_widget | ( | ) |
Returns the gtk widget for this particular menu.
Definition at line 49 of file gtkStatsChartMenu.cxx.
References add_to_menu_bar().