FS2_Open
Open source remastering of the Freespace 2 engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
frmwingeditor.cpp
Go to the documentation of this file.
1
/*
2
* Created by Ian "Goober5000" Warfield and "z64555" for the FreeSpace2 Source
3
* Code Project.
4
*
5
* You may not sell or otherwise commercially exploit the source or things you
6
* create based on the source.
7
*/
8
9
#include "
editors/frmwingeditor.h
"
10
#include "
frmfred2.h
"
11
#include "
base/wxfred_base.h
"
12
13
#include <wx/wx.h>
14
15
// wxFormBuilder doesn't seem to want to keep the frame style, so override it for the time being...
16
const
long
frame_style
= wxCAPTION|wxCLOSE_BOX|wxFRAME_NO_TASKBAR|wxRESIZE_BORDER|wxSYSTEM_MENU;
17
18
// Public: Members
19
frmWingEditor::frmWingEditor
( wxWindow* parent, wxWindowID
id
)
20
:
fredBase
::
frmWingEditor
( parent, id, _T(
"Edit Wing"
), wxDefaultPosition, wxDefaultSize,
frame_style
)
21
{
22
}
23
24
// Protected Members:
25
// Handlers for frmShipsEditor events.
26
void
frmWingEditor::OnClose
( wxCloseEvent&
event
)
27
{
28
// Tell the parent window (frmFRED2) that we closed before destroying this window
29
((
frmFRED2
*) GetParent())->OnChildClosed(
this
);
30
Destroy();
31
}
32
// Private Members:
frmFRED2
Definition:
frmfred2.h:62
frame_style
const long frame_style
Definition:
frmwingeditor.cpp:16
wxfred_base.h
fredBase
Definition:
wxfred_base.h:52
frmWingEditor::frmWingEditor
frmWingEditor(void)
frmWingEditor::OnClose
void OnClose(wxCloseEvent &event)
Definition:
frmwingeditor.cpp:26
event
struct _cl_event * event
Definition:
Glext.h:7296
frmWingEditor
Definition:
frmwingeditor.h:15
frmfred2.h
frmwingeditor.h
code
wxfred2
editors
frmwingeditor.cpp
Generated on Sun May 1 2016 16:23:46 for FS2_Open by
1.8.10