forked from Wren6991/Ship-Sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtitanicMain.h
More file actions
98 lines (83 loc) · 2.63 KB
/
Copy pathtitanicMain.h
File metadata and controls
98 lines (83 loc) · 2.63 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/***************************************************************
* Name: titanicMain.h
* Purpose: Defines Application Frame
* Author: Luke Wren (wren6991@gmail.com)
* Created: 2013-04-30
* Copyright: Luke Wren (http://github.com/Wren6991)
* License:
**************************************************************/
#ifndef TITANICMAIN_H
#define TITANICMAIN_H
//(*Headers(titanicFrame)
#include <wx/sizer.h>
#include <wx/menu.h>
#include <wx/glcanvas.h>
#include <wx/filedlg.h>
#include <wx/frame.h>
#include <wx/timer.h>
//*)
#include "game.h"
#include "settingsDialog.h"
class titanicFrame: public wxFrame
{
public:
titanicFrame(wxWindow* wld,wxWindowID id = -1);
virtual ~titanicFrame();
game gm;
private:
//(*Handlers(titanicFrame)
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnGLCanvas1Paint(wxPaintEvent& event);
void OnGLCanvas1Resize(wxSizeEvent& event);
void OnTimer1Trigger(wxTimerEvent& event);
void OnMenuItemLoadSelected(wxCommandEvent& event);
void OnGLCanvas1LeftDown(wxMouseEvent& event);
void OnGLCanvas1LeftUp(wxMouseEvent& event);
void OnGLCanvas1RightDown(wxMouseEvent& event);
void OnGLCanvas1RightUp(wxMouseEvent& event);
void OnGLCanvas1MouseMove(wxMouseEvent& event);
void OnMenuItemOptionsSelected(wxCommandEvent& event);
void OnGLCanvas1MouseWheel(wxMouseEvent& event);
void OnMenuItemPlayPauseSelected(wxCommandEvent& event);
void OnMenuItemSmashSelected(wxCommandEvent& event);
void OnMenuItemGrabSelected(wxCommandEvent& event);
void OnTimer2Trigger(wxTimerEvent& event);
void OnClose(wxCloseEvent& event);
void OnMenuReloadSelected(wxCommandEvent& event);
//*)
//(*Identifiers(titanicFrame)
static const long ID_GLCANVAS1;
static const long ID_MENUITEM1;
static const long ID_MENUITEM5;
static const long idMenuQuit;
static const long ID_MENUITEM3;
static const long ID_MENUITEM4;
static const long mnuShow;
static const long ID_MENUITEM2;
static const long idMenuAbout;
static const long ID_TIMER1;
static const long ID_TIMER2;
//*)
//(*Declarations(titanicFrame)
wxMenuItem* MenuItem5;
wxMenu* Menu3;
wxMenuItem* MenuItem4;
wxGLCanvas* GLCanvas1;
wxFileDialog* dlgOpen;
wxMenuItem* MenuItemGrab;
wxMenuItem* MenuItem3;
wxTimer Timer2;
wxMenuItem* MenuItem6;
wxMenuItem* MenuItemSmash;
wxTimer Timer1;
wxMenu* Menu4;
//*)
int frameCount;
settingsDialog *settings;
wxGLContext* GLContext1;
void initgl();
void endgl();
DECLARE_EVENT_TABLE()
};
#endif // TITANICMAIN_H