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