]> icculus.org git repositories - taylor/freespace2.git/blob - include/ignoreordersdlg.h
Initial revision
[taylor/freespace2.git] / include / ignoreordersdlg.h
1 /*
2  * $Logfile: /Freespace2/code/FRED2/IgnoreOrdersDlg.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * header for dialog to set which orders from the player that a particular ship should ignore
8  *
9  */
10
11 #include "ship.h"
12
13 // we won't have more than 9 checkboxes per dialog
14 #define MAX_CHECKBOXES          10
15
16 /////////////////////////////////////////////////////////////////////////////
17 // ignore_orders_dlg dialog
18
19 typedef struct check_box_info {
20         CButton *button;
21         int             id;
22 } check_box_info;
23
24 class ignore_orders_dlg : public CDialog
25 {
26 // Construction
27 public:
28         int m_ship;
29         ignore_orders_dlg(CWnd* pParent = NULL);   // standard constructor
30
31         ship *m_shipp;
32         check_box_info check_boxes[MAX_CHECKBOXES];
33         int m_num_checks_active;
34
35 // Dialog Data
36         //{{AFX_DATA(ignore_orders_dlg)
37         enum { IDD = IDD_IGNORE_ORDERS };
38                 // NOTE: the ClassWizard will add data members here
39         //}}AFX_DATA
40
41
42 // Overrides
43         // ClassWizard generated virtual function overrides
44         //{{AFX_VIRTUAL(ignore_orders_dlg)
45         protected:
46         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
47         //}}AFX_VIRTUAL
48
49 // Implementation
50 protected:
51
52         // Generated message map functions
53         //{{AFX_MSG(ignore_orders_dlg)
54         virtual BOOL OnInitDialog();
55         virtual void OnOK();
56         afx_msg void OnCheck1();
57         afx_msg void OnCheck2();
58         afx_msg void OnCheck3();
59         afx_msg void OnCheck4();
60         afx_msg void OnCheck5();
61         afx_msg void OnCheck6();
62         afx_msg void OnCheck7();
63         afx_msg void OnCheck8();
64         afx_msg void OnCheck9();
65         afx_msg void OnCheck10();
66         //}}AFX_MSG
67         DECLARE_MESSAGE_MAP()
68 };
69
70 typedef struct fred_comm_order {
71         int value;
72         char *menu_text;
73 } fred_comm_order;
74
75 fred_comm_order Fred_comm_orders[];
76
77 extern int Fred_comm_orders_max;
78