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