]> icculus.org git repositories - taylor/freespace2.git/blob - src/fred2/operatorargtypeselect.cpp
Initial revision
[taylor/freespace2.git] / src / fred2 / operatorargtypeselect.cpp
1 /*
2  * $Logfile: /Freespace2/code/FRED2/OperatorArgTypeSelect.cpp $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Dialog box handling code for selecting an argument return type of an SEXP.
8  * Changes to SEXPs made this no longer needed, but just in case more changes
9  * cause it to be needed again, it's still around.
10  *
11  * $Log$
12  * Revision 1.1  2002/05/03 03:28:09  root
13  * Initial revision
14  *
15  * 
16  * 2     10/07/98 6:28p Dave
17  * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
18  * Fred. Globalized mission and campaign file extensions. Removed Silent
19  * Threat specific code.
20  * 
21  * 1     10/07/98 3:01p Dave
22  * 
23  * 1     10/07/98 3:00p Dave
24  * 
25  * 3     2/17/97 5:28p Hoffoss
26  * Checked RCS headers, added them were missing, changing description to
27  * something better, etc where needed.
28  *
29  * $NoKeywords: $
30  */
31
32 #include "stdafx.h"
33 #include "fred.h"
34 #include "operatorargtypeselect.h"
35
36 #ifdef _DEBUG
37 #define new DEBUG_NEW
38 #undef THIS_FILE
39 static char THIS_FILE[] = __FILE__;
40 #endif
41
42 /////////////////////////////////////////////////////////////////////////////
43 // OperatorArgTypeSelect dialog
44
45
46 OperatorArgTypeSelect::OperatorArgTypeSelect(CWnd* pParent /*=NULL*/)
47         : CDialog(OperatorArgTypeSelect::IDD, pParent)
48 {
49         //{{AFX_DATA_INIT(OperatorArgTypeSelect)
50                 // NOTE: the ClassWizard will add member initialization here
51         //}}AFX_DATA_INIT
52 }
53
54
55 void OperatorArgTypeSelect::DoDataExchange(CDataExchange* pDX)
56 {
57         CDialog::DoDataExchange(pDX);
58         //{{AFX_DATA_MAP(OperatorArgTypeSelect)
59                 // NOTE: the ClassWizard will add DDX and DDV calls here
60         //}}AFX_DATA_MAP
61 }
62
63
64 BEGIN_MESSAGE_MAP(OperatorArgTypeSelect, CDialog)
65         //{{AFX_MSG_MAP(OperatorArgTypeSelect)
66         ON_BN_CLICKED(ID_BOOLEAN, OnBoolean)
67         ON_BN_CLICKED(ID_NUMBERS, OnNumbers)
68         ON_BN_CLICKED(ID_SHIPS, OnShips)
69         ON_BN_CLICKED(ID_WINGS, OnWings)
70         //}}AFX_MSG_MAP
71 END_MESSAGE_MAP()
72
73 /////////////////////////////////////////////////////////////////////////////
74 // OperatorArgTypeSelect message handlers
75
76 void OperatorArgTypeSelect::OnBoolean() 
77 {
78         EndDialog(ID_BOOLEAN);
79 }
80
81 void OperatorArgTypeSelect::OnNumbers() 
82 {
83         EndDialog(ID_NUMBERS);
84 }
85
86 void OperatorArgTypeSelect::OnShips() 
87 {
88         EndDialog(ID_SHIPS);
89 }
90
91 void OperatorArgTypeSelect::OnWings() 
92 {
93         EndDialog(ID_WINGS);
94 }