FS2_Open
Open source remastering of the Freespace 2 engine
dlgmissionspecseditor.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 
11 #include "frmfred2.h"
12 #include "base/wxfred_base.h"
13 
14 #include <wx/wx.h>
15 
16 // Public members:
17 dlgMissionSpecsEditor::dlgMissionSpecsEditor( wxWindow* parent, wxWindowID id )
18  : fredBase::dlgMissionSpecsEditor(parent, id)
19 {
20  dlgSoundEnvironment_p = new dlgSoundEnvironment(this);
21 }
22 
23 // Protected members:
24  // Handlers for dlgMissionFieldEditor
26 {
27  ((frmFRED2*) GetParent())->OnChildClosed(this);
28  dlgSoundEnvironment_p->Destroy();
29  Destroy();
30 }
31 
32 void dlgMissionSpecsEditor::OnOK( wxCommandEvent& event )
33 {
34  Close();
35 }
36 
37 void dlgMissionSpecsEditor::OnCancel( wxCommandEvent& event )
38 {
39  Close();
40 }
41 
43 {
44  dlgSoundEnvironment_p->Center();
45  dlgSoundEnvironment_p->ShowModal();
46 }
void OnSoundEnvironment(wxCommandEvent &event)
void OnClose(wxCloseEvent &event)
void OnCancel(wxCommandEvent &event)
void OnOK(wxCommandEvent &event)
struct _cl_event * event
Definition: Glext.h:7296