Panda3D
pandatool
src
win-stats
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
#ifndef WIN32_LEAN_AND_MEAN
20
#define WIN32_LEAN_AND_MEAN 1
21
#endif
22
#include <windows.h>
23
24
class
WinStatsMonitor
;
25
class
PStatView
;
26
class
PStatViewLevel
;
27
28
/**
29
* A pulldown menu of charts available for a particular thread.
30
*/
31
class
WinStatsChartMenu
{
32
public
:
33
WinStatsChartMenu
(
WinStatsMonitor
*monitor,
int
thread_index);
34
~
WinStatsChartMenu
();
35
36
HMENU
get_menu_handle
();
37
void
add_to_menu_bar
(HMENU menu_bar,
int
before_menu_id);
38
39
void
check_update
();
40
void
do_update
();
41
42
private
:
43
void
add_view(HMENU parent_menu,
const
PStatViewLevel
*view_level,
44
bool
show_level);
45
46
WinStatsMonitor
*_monitor;
47
int
_thread_index;
48
49
int
_last_level_index;
50
HMENU _menu;
51
};
52
53
#endif
WinStatsChartMenu
A pulldown menu of charts available for a particular thread.
Definition:
winStatsChartMenu.h:31
WinStatsChartMenu::check_update
void check_update()
Checks to see if the menu needs to be updated (e.g.
Definition:
winStatsChartMenu.cxx:74
PStatView
A View boils down the frame data to a linear list of times spent in a number of different Collectors,...
Definition:
pStatView.h:31
WinStatsChartMenu::do_update
void do_update()
Unconditionally updates the menu with the latest data from the client.
Definition:
winStatsChartMenu.cxx:85
WinStatsChartMenu::add_to_menu_bar
void add_to_menu_bar(HMENU menu_bar, int before_menu_id)
Adds the menu to the end of the indicated menu bar.
Definition:
winStatsChartMenu.cxx:48
WinStatsMonitor
This class represents a connection to a PStatsClient and manages the data exchange with the client.
Definition:
winStatsMonitor.h:38
WinStatsChartMenu::get_menu_handle
HMENU get_menu_handle()
Returns the Windows menu handle for this particular menu.
Definition:
winStatsChartMenu.cxx:40
pandatoolbase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PStatViewLevel
This is a single level value, or band of color, within a View.
Definition:
pStatViewLevel.h:29
Generated on Sun Dec 27 2020 13:23:22 for Panda3D by
1.8.20