Game Develop C++ Platform: ProfileDlg.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
ProfileDlg.h
Go to the documentation of this file.
1
6 #if defined(GD_IDE_ONLY)
7 #ifndef PROFILEDLG_H
8 #define PROFILEDLG_H
9
10 //(*Headers(ProfileDlg)
11 #include <wx/sizer.h>
12 #include <wx/stattext.h>
13 #include <wx/menu.h>
14 #include <wx/checkbox.h>
15 #include <wx/panel.h>
16 //*)
17 #include <vector>
18 #include <deque>
19 #include "GDCore/Events/Event.h"
20 #include "GDCpp/IDE/BaseProfiler.h"
21 class CppLayoutPreviewer;
22
23 class GD_API ProfileDlg: public wxPanel, public BaseProfiler
24 {
25 public:
26
27 ProfileDlg(wxWindow* parent, CppLayoutPreviewer & associatedCppLayoutPreviewer);
28 virtual ~ProfileDlg();
29
30 void ParseProfileEvents();
31
32 //(*Declarations(ProfileDlg)
33 wxStaticText* scaleMidTxt;
34 wxStaticText* scaleMaxTxt;
35 wxMenuItem* MenuItem2;
36 wxStaticText* eventsTimeTxt;
37 wxMenuItem* objectsCountCheck;
38 wxMenu* MenuItem3;
39 wxMenuItem* MenuItem1;
40 wxCheckBox* activateCheck;
41 wxMenuItem* eventsTimeCheck;
42 wxPanel* Panel1;
43 wxPanel* ratioGraphics;
44 wxMenuItem* totalTimeCheck;
45 wxPanel* Panel3;
46 wxStaticText* objectsCountTxt;
47 wxMenu contextMenu;
48 wxStaticText* totalTimeTxt;
49 wxMenuItem* infiniteDataCheck;
50 wxPanel* Panel2;
51 //*)
52 protected:
53
54 //(*Identifiers(ProfileDlg)
55 static const long ID_CHECKBOX1;
56 static const long ID_STATICTEXT8;
57 static const long ID_STATICTEXT9;
58 static const long ID_PANEL1;
59 static const long ID_PANEL2;
60 static const long ID_STATICTEXT2;
61 static const long ID_PANEL3;
62 static const long ID_STATICTEXT1;
63 static const long ID_PANEL4;
64 static const long ID_STATICTEXT3;
65 static const long ID_MENUITEM1;
66 static const long ID_MENUITEM3;
67 static const long ID_MENUITEM2;
68 //*)
69
70 private:
71
72 //(*Handlers(ProfileDlg)
73 void OnratioGraphicsPaint(wxPaintEvent& event);
74 void OnapplyBtClick(wxCommandEvent& event);
75 void OnratioGraphicsResize(wxSizeEvent& event);
76 void OnratioGraphicsRightUp(wxMouseEvent& event);
77 void OnChangeDurationSelected(wxCommandEvent& event);
78 void OnStepTimeSelected(wxCommandEvent& event);
79 void OnactivateCheckClick(wxCommandEvent& event);
80 //*)
81
82 DECLARE_EVENT_TABLE()
83
84 void ParseProfileEvents(const std::vector < gd::BaseEventSPtr > & events);
85 void UpdateGUI();
86
87 unsigned int maxData;
88 std::deque <unsigned long int> eventsData;
89 std::deque <unsigned long int> totalTimeData;
90 std::deque <unsigned int> objectsCountData;
91
92 CppLayoutPreviewer & sceneCanvas;
93 };
94
95 #endif
96 #endif