]> icculus.org git repositories - taylor/freespace2.git/blob - include/orienteditor.h
fix issue with looping audio streams
[taylor/freespace2.git] / include / orienteditor.h
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/OrientEditor.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Object orientation editor (or just object editor) dialog box handling code
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:14  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
25  * 2     10/07/98 6:28p Dave
26  * Initial checkin. Renamed all relevant stuff to be Fred2 instead of
27  * Fred. Globalized mission and campaign file extensions. Removed Silent
28  * Threat specific code.
29  * 
30  * 1     10/07/98 3:01p Dave
31  * 
32  * 1     10/07/98 3:00p Dave
33  * 
34  * 8     5/20/97 2:28p Hoffoss
35  * Added message box queries for close window operation on all modal
36  * dialog boxes.
37  * 
38  * 7     4/17/97 2:01p Hoffoss
39  * All dialog box window states are saved between sessions now.
40  * 
41  * 6     3/12/97 4:33p Hoffoss
42  * added spin controls to orient editor, light intensity level can be
43  * specified in BG editor.
44  * 
45  * 5     2/21/97 5:34p Hoffoss
46  * Added extensive modification detection and fixed a bug in initial
47  * orders editor.
48  * 
49  * 4     2/17/97 5:28p Hoffoss
50  * Checked RCS headers, added them were missing, changing description to
51  * something better, etc where needed.
52  *
53  * $NoKeywords: $
54  */
55
56 #include "object.h"
57
58 /////////////////////////////////////////////////////////////////////////////
59 // orient_editor dialog
60
61 class orient_editor : public CDialog
62 {
63 // Construction
64 public:
65         int query_modified();
66         void OnCancel();
67         void OnOK();
68         orient_editor(CWnd* pParent = NULL);   // standard constructor
69
70 // Dialog Data
71         //{{AFX_DATA(orient_editor)
72         enum { IDD = IDD_ORIENT_EDITOR };
73         CSpinButtonCtrl m_spin6;
74         CSpinButtonCtrl m_spin5;
75         CSpinButtonCtrl m_spin4;
76         CSpinButtonCtrl m_spin3;
77         CSpinButtonCtrl m_spin2;
78         CSpinButtonCtrl m_spin1;
79         int     m_object_index;
80         BOOL    m_point_to;
81         CString m_position_z;
82         CString m_position_y;
83         CString m_position_x;
84         CString m_location_x;
85         CString m_location_y;
86         CString m_location_z;
87         //}}AFX_DATA
88
89 // Overrides
90         // ClassWizard generated virtual function overrides
91         //{{AFX_VIRTUAL(orient_editor)
92         protected:
93         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
94         //}}AFX_VIRTUAL
95
96 // Implementation
97 protected:
98
99         // Generated message map functions
100         //{{AFX_MSG(orient_editor)
101         virtual BOOL OnInitDialog();
102         afx_msg void OnClose();
103         //}}AFX_MSG
104         DECLARE_MESSAGE_MAP()
105 private:
106         float convert(CString &str);
107         int total;
108         int index[MAX_OBJECTS];
109         void update_object(object *ptr);
110 };
111