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