forked from TcT2k/HLMWadExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HLMWADFrames.h
237 lines (195 loc) · 8.09 KB
/
HLMWADFrames.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 5 2014)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __HLMWADFRAMES_H__
#define __HLMWADFRAMES_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
#include <wx/string.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/icon.h>
#include <wx/menu.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/srchctrl.h>
#include <wx/toolbar.h>
#include <wx/timer.h>
#include <wx/panel.h>
#include <wx/dataview.h>
#include <wx/sizer.h>
#include <wx/simplebook.h>
#include <wx/splitter.h>
#include <wx/frame.h>
#include <wx/stattext.h>
#include <wx/filepicker.h>
#include <wx/button.h>
#include <wx/dialog.h>
#include <wx/listbox.h>
#include <wx/spinctrl.h>
#include <wx/clrpicker.h>
#include <wx/statbmp.h>
#include <wx/statbox.h>
#include <wx/textctrl.h>
#include <wx/grid.h>
///////////////////////////////////////////////////////////////////////////
#define ID_MERGE 1000
#define ID_OPEN_BASE_WAD 1001
#define ID_EXTRACT 1002
#define ID_REPLACE 1003
///////////////////////////////////////////////////////////////////////////////
/// Class BaseExploreFrame
///////////////////////////////////////////////////////////////////////////////
class BaseExploreFrame : public wxFrame
{
private:
protected:
wxMenuBar* m_menubar;
wxMenu* m_fileMenu;
wxMenu* resource;
wxMenu* help;
wxToolBar* m_toolBar;
wxSearchCtrl* m_searchCtrl;
wxTimer m_searchTimer;
wxPanel* m_toolbarSeperatorPanel;
wxSplitterWindow* m_mainSplitter;
wxPanel* m_listPanel;
wxDataViewCtrl* m_fileListCtrl;
wxPanel* m_splitterSeperatorPanel;
wxPanel* m_previewPanel;
wxSimplebook* m_previewBookCtrl;
// Virtual event handlers, overide them in your derived class
virtual void OnWindowClose( wxCloseEvent& event ) { event.Skip(); }
virtual void OnOpenClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnSaveClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnSaveAsClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnMergeClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnSwitchBaseWadClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnQuitClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnExtractClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnReplaceClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnAddClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnDeleteClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnAboutClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnSearchCtrlButton( wxCommandEvent& event ) { event.Skip(); }
virtual void OnSearchCtrlText( wxCommandEvent& event ) { event.Skip(); }
virtual void OnSearchCtrlEnter( wxCommandEvent& event ) { event.Skip(); }
virtual void OnSearchTimer( wxTimerEvent& event ) { event.Skip(); }
virtual void OnFileListSelectionChanged( wxDataViewEvent& event ) { event.Skip(); }
virtual void OnFileListDoubleClick( wxMouseEvent& event ) { event.Skip(); }
public:
BaseExploreFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 886,484 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
~BaseExploreFrame();
void m_mainSplitterOnIdle( wxIdleEvent& )
{
m_mainSplitter->SetSashPosition( 400 );
m_mainSplitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( BaseExploreFrame::m_mainSplitterOnIdle ), NULL, this );
}
};
///////////////////////////////////////////////////////////////////////////////
/// Class BaseMergeDialog
///////////////////////////////////////////////////////////////////////////////
class BaseMergeDialog : public wxDialog
{
private:
protected:
wxStaticText* m_staticText11;
wxFilePickerCtrl* m_baseFilePicker;
wxStaticText* m_staticText12;
wxFilePickerCtrl* m_patchFilePicker;
wxStdDialogButtonSizer* m_sdbSizer;
wxButton* m_sdbSizerOK;
wxButton* m_sdbSizerCancel;
public:
BaseMergeDialog( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Merge Patch"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE );
~BaseMergeDialog();
};
///////////////////////////////////////////////////////////////////////////////
/// Class BaseTexturePackPanel
///////////////////////////////////////////////////////////////////////////////
class BaseTexturePackPanel : public wxPanel
{
private:
protected:
wxSplitterWindow* m_splitter2;
wxPanel* m_panel3;
wxListBox* m_textureListBox;
wxPanel* m_splitterSeperatorPanel;
wxPanel* m_panel4;
wxStaticText* m_staticText1;
wxSpinCtrl* m_frameSpinCtrl;
wxStaticText* m_staticText2;
wxColourPickerCtrl* m_colourPicker;
wxPanel* m_framePanel;
wxStaticBitmap* m_frameBitmap;
wxStaticText* m_staticText8;
wxSpinCtrl* m_frameDelaySpinCtrl;
wxButton* m_exportGIFButton;
wxBoxSizer* m_infoSizer;
wxStaticText* m_staticText3;
wxSpinCtrl* m_zoomSpinCtrl;
wxStaticText* m_staticText9;
wxStaticText* m_uvStaticText;
wxStaticText* m_staticText4;
wxStaticText* m_sizeStaticText;
wxStaticText* m_staticText41;
wxStaticText* m_offsetStaticText;
// Virtual event handlers, overide them in your derived class
virtual void OnTextureListBoxSelected( wxCommandEvent& event ) { event.Skip(); }
virtual void OnFrameSpinCtrlChanged( wxSpinEvent& event ) { event.Skip(); }
virtual void OnFrameSpinCtrlEnterPressed( wxCommandEvent& event ) { event.Skip(); }
virtual void OnColourPickerChanged( wxColourPickerEvent& event ) { event.Skip(); }
virtual void OnExportGIFClicked( wxCommandEvent& event ) { event.Skip(); }
virtual void OnZoomSpinCtrlChanged( wxSpinEvent& event ) { event.Skip(); }
public:
BaseTexturePackPanel( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL );
~BaseTexturePackPanel();
void m_splitter2OnIdle( wxIdleEvent& )
{
m_splitter2->SetSashPosition( 180 );
m_splitter2->Disconnect( wxEVT_IDLE, wxIdleEventHandler( BaseTexturePackPanel::m_splitter2OnIdle ), NULL, this );
}
};
///////////////////////////////////////////////////////////////////////////////
/// Class ImagePanel
///////////////////////////////////////////////////////////////////////////////
class ImagePanel : public wxPanel
{
private:
protected:
public:
wxStaticBitmap* m_previewBitmap;
ImagePanel( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL );
~ImagePanel();
};
///////////////////////////////////////////////////////////////////////////////
/// Class TextPanel
///////////////////////////////////////////////////////////////////////////////
class TextPanel : public wxPanel
{
private:
protected:
public:
wxTextCtrl* m_textCtrl;
TextPanel( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL );
~TextPanel();
};
///////////////////////////////////////////////////////////////////////////////
/// Class BaseStringTablePanel
///////////////////////////////////////////////////////////////////////////////
class BaseStringTablePanel : public wxPanel
{
private:
protected:
wxGrid* m_grid;
public:
BaseStringTablePanel( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,300 ), long style = wxTAB_TRAVERSAL );
~BaseStringTablePanel();
};
#endif //__HLMWADFRAMES_H__