forked from mhernando/Apolo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
childView.h
84 lines (71 loc) · 2.12 KB
/
childView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#ifndef __APOLO__CHILD_VIEW__H
#define __APOLO__CHILD_VIEW__H
#include "mrcore.h"
#include "canvas.h"
#include "definitions.h"
#include <wx/mdi.h>
#include <wx/menu.h>
#include <wx/splitter.h>
#include <wx/timer.h>
#include "bitmaps/V1.xpm"
#include "bitmaps/V2.xpm"
#include "bitmaps/V3.xpm"
#include "bitmaps/V4.xpm"
#include "bitmaps/V5.xpm"
#include "bitmaps/play.xpm"
#include "bitmaps/stop2.xpm"
#include "bitmaps/box.xpm"
using namespace std;
class MainWindow;
class SimulatedWorld;
class ChildView: public wxMDIChildFrame
{
public:
ChildView(wxMDIParentFrame *parent, const wxString& title, SimulatedWorld * w);
void InitToolBar(wxToolBar* toolbar);
void InitToolBar2(wxToolBar* toolbar2);
void UpdateWorld();
void RefreshChild();
void CreateSubWindows();
void OnClose(wxCloseEvent& event);
void OnTimer(wxTimerEvent& event);
void OnSimulator(wxWindowID id);
void SplitHorizontalFirst();
void SplitHorizontalSecond();
void SplitVerticalFirst();
void SplitVerticalSecond();
void UnSplitFirst();
void UnSplitSecond();
void UpdateUIHorizontalFirst(wxUpdateUIEvent& event);
void UpdateIsActivated(wxUpdateUIEvent& event);
void UpdateUIHorizontalSecond(wxUpdateUIEvent& event);
void UpdateUIVerticalFirst(wxUpdateUIEvent& event);
void UpdateUIVerticalSecond(wxUpdateUIEvent& event);
void UpdateUIUnsplitFirst(wxUpdateUIEvent& event);
void UpdateUIUnsplitSecond(wxUpdateUIEvent& event);
void UpdateUIPlay(wxUpdateUIEvent& event);
void UpdateUIStop(wxUpdateUIEvent& event);
Canvas* getCanvas(){return canvas1;};
void SetPlaySimu(bool play){playsimu=play;}
bool getPlaysimu(){return playsimu;}
void SetIsActivated(bool active){isActivated=active;}
bool getIsActivated(){return isActivated;}
SimulatedWorld* getSimuWorld(){return s_world;}
void ChangeBackgroundColor();
private:
Canvas* canvas1;
Canvas* canvas2;
Canvas* canvas3;
SimulatedWorld* s_world;
World* m_world;
MainWindow *mainWin;
wxSplitterWindow* m_splitter;
wxSplitterWindow* m_splitterSub;
bool playsimu;
bool isActivated;
wxTimer m_timer;
wxToolBar* toolbar;
wxToolBar* toolbar2;
DECLARE_EVENT_TABLE()
};
#endif // __APOLO__CHILD_VIEW__H