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