Panda3D
winStatsChartMenu.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file winStatsChartMenu.h
10  * @author drose
11  * @date 2004-01-08
12  */
13 
14 #ifndef WINSTATSCHARTMENU_H
15 #define WINSTATSCHARTMENU_H
16 
17 #include "pandatoolbase.h"
18 
19 #include <windows.h>
20 
21 class WinStatsMonitor;
22 class PStatView;
23 class PStatViewLevel;
24 
25 /**
26  * A pulldown menu of charts available for a particular thread.
27  */
29 public:
30  WinStatsChartMenu(WinStatsMonitor *monitor, int thread_index);
32 
33  HMENU get_menu_handle();
34  void add_to_menu_bar(HMENU menu_bar, int before_menu_id);
35 
36  void check_update();
37  void do_update();
38 
39 private:
40  void add_view(HMENU parent_menu, const PStatViewLevel *view_level,
41  bool show_level);
42 
43  WinStatsMonitor *_monitor;
44  int _thread_index;
45 
46  int _last_level_index;
47  HMENU _menu;
48 };
49 
50 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void check_update()
Checks to see if the menu needs to be updated (e.g.
This is a single level value, or band of color, within a View.
A View boils down the frame data to a linear list of times spent in a number of different Collectors,...
Definition: pStatView.h:31
A pulldown menu of charts available for a particular thread.
void do_update()
Unconditionally updates the menu with the latest data from the client.
void add_to_menu_bar(HMENU menu_bar, int before_menu_id)
Adds the menu to the end of the indicated menu bar.
This class represents a connection to a PStatsClient and manages the data exchange with the client.
HMENU get_menu_handle()
Returns the Windows menu handle for this particular menu.