FS2_Open
Open source remastering of the Freespace 2 engine
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 
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:
const long frame_style
frmWingEditor(void)
void OnClose(wxCloseEvent &event)
struct _cl_event * event
Definition: Glext.h:7296