FS2_Open
Open source remastering of the Freespace 2 engine
orienteditor.h
Go to the documentation of this file.
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 the
6  * source.
7  *
8 */
9 
10 
11 
12 #include "object/object.h"
13 
15 // orient_editor dialog
16 
17 class orient_editor : public CDialog
18 {
19 // Construction
20 public:
21  int query_modified();
22  void OnCancel();
23  void OnOK();
24  orient_editor(CWnd* pParent = NULL); // standard constructor
25 
26 // Dialog Data
27  //{{AFX_DATA(orient_editor)
28  enum { IDD = IDD_ORIENT_EDITOR };
29  CSpinButtonCtrl m_spin6;
30  CSpinButtonCtrl m_spin5;
31  CSpinButtonCtrl m_spin4;
32  CSpinButtonCtrl m_spin3;
33  CSpinButtonCtrl m_spin2;
34  CSpinButtonCtrl m_spin1;
37  CString m_position_z;
38  CString m_position_y;
39  CString m_position_x;
40  CString m_location_x;
41  CString m_location_y;
42  CString m_location_z;
43  //}}AFX_DATA
44 
45 // Overrides
46  // ClassWizard generated virtual function overrides
47  //{{AFX_VIRTUAL(orient_editor)
48  protected:
49  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
50  //}}AFX_VIRTUAL
51 
52 // Implementation
53 protected:
54 
55  // Generated message map functions
56  //{{AFX_MSG(orient_editor)
57  virtual BOOL OnInitDialog();
58  afx_msg void OnClose();
59  //}}AFX_MSG
60  DECLARE_MESSAGE_MAP()
61 private:
62  float convert(CString &str);
63  int total;
64  int index[MAX_OBJECTS];
65  void update_object(object *ptr);
66 };
CSpinButtonCtrl m_spin3
Definition: orienteditor.h:32
CSpinButtonCtrl m_spin2
Definition: orienteditor.h:33
GLuint index
Definition: Glext.h:5608
CSpinButtonCtrl m_spin6
Definition: orienteditor.h:29
#define MAX_OBJECTS
Definition: globals.h:83
CSpinButtonCtrl m_spin5
Definition: orienteditor.h:30
CString m_position_z
Definition: orienteditor.h:37
CString m_position_y
Definition: orienteditor.h:38
#define IDD_ORIENT_EDITOR
Definition: resource.h:55
CSpinButtonCtrl m_spin1
Definition: orienteditor.h:34
virtual BOOL OnInitDialog()
CString m_location_x
Definition: orienteditor.h:40
orient_editor(CWnd *pParent=NULL)
afx_msg void OnClose()
virtual void DoDataExchange(CDataExchange *pDX)
int BOOL
Definition: config.h:80
CString m_position_x
Definition: orienteditor.h:39
CSpinButtonCtrl m_spin4
Definition: orienteditor.h:31
CString m_location_y
Definition: orienteditor.h:41
CString m_location_z
Definition: orienteditor.h:42