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