]> icculus.org git repositories - taylor/freespace2.git/blob - include/ship_select.h
Initial revision
[taylor/freespace2.git] / include / ship_select.h
1 /*
2  * $Logfile: /Freespace2/code/FRED2/ship_select.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Object selection (marking) 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  * 10    9/09/97 10:29a Hoffoss
24  * Added support for neutral team, and fixed changes made to how team is
25  * used in ship structure.
26  * 
27  * 9     8/26/97 11:08a Hoffoss
28  * Added waypoint paths to object selection dialog.
29  * 
30  * 8     7/28/97 5:10p Hoffoss
31  * Removed all occurances of neutral team from Fred.
32  * 
33  * 7     7/24/97 2:43p Hoffoss
34  * Made changes whiteside requested.  Double clicking acts as clicking ok
35  * button.
36  * 
37  * 6     5/26/97 10:30a Hoffoss
38  * Added select wing to object select dialog.
39  * 
40  * 5     2/17/97 5:28p Hoffoss
41  * Checked RCS headers, added them were missing, changing description to
42  * something better, etc where needed.
43  *
44  * $NoKeywords: $
45  */
46
47 /////////////////////////////////////////////////////////////////////////////
48 // ship_select dialog
49
50 #include "shipchecklistbox.h"
51 #include "object.h"
52
53 class ship_select : public CDialog
54 {
55 // Construction
56 public:
57         void update_status();
58         void OnOK();
59         void create_list();
60         ship_select(CWnd* pParent = NULL);   // standard constructor
61
62 // Dialog Data
63         //{{AFX_DATA(ship_select)
64         enum { IDD = IDD_SHIP_SELECT };
65         CListBox        m_wing_list;
66         CListBox        m_ship_list;
67         BOOL    m_filter_ships;
68         BOOL    m_filter_starts;
69         BOOL    m_filter_waypoints;
70         int             m_filter_friendly;
71         int             m_filter_hostile;
72         int             m_filter_neutral;
73         int             m_filter_unknown;
74         //}}AFX_DATA
75
76
77 // Overrides
78         // ClassWizard generated virtual function overrides
79         //{{AFX_VIRTUAL(ship_select)
80         protected:
81         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
82         //}}AFX_VIRTUAL
83
84 // Implementation
85 protected:
86
87         // Generated message map functions
88         //{{AFX_MSG(ship_select)
89         virtual BOOL OnInitDialog();
90         afx_msg void OnSelchangeWingDisplayFilter();
91         afx_msg void OnFilterShips();
92         afx_msg void OnFilterStarts();
93         afx_msg void OnFilterWaypoints();
94         afx_msg void OnFilterShipsFriendly();
95         afx_msg void OnFilterShipsHostile();
96         afx_msg void OnFilterShipsNeutral();
97         afx_msg void OnFilterShipsUnknown();
98         afx_msg void OnClear();
99         afx_msg void OnAll();
100         afx_msg void OnInvert();
101         afx_msg void OnDblclkShipList();
102         afx_msg void OnSelchangeWingList();
103         afx_msg void OnSelchangeShipList();
104         afx_msg void OnDblclkWingList();
105         //}}AFX_MSG
106         DECLARE_MESSAGE_MAP()
107
108 private:
109         int activity, list_size, wlist_size, wplist_size;
110         object *obj_index[MAX_OBJECTS];
111         int wing_index[MAX_WINGS + MAX_WAYPOINT_LISTS];
112         int wing_sel_last[MAX_WINGS + MAX_WAYPOINT_LISTS];
113 };
114