2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
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
10 * $Logfile: /Freespace2/code/FRED2/ship_select.h $
15 * Object selection (marking) dialog box handling code
18 * Revision 1.2 2002/06/09 04:41:14 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
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.
30 * 1 10/07/98 3:01p Dave
32 * 1 10/07/98 3:00p Dave
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.
38 * 9 8/26/97 11:08a Hoffoss
39 * Added waypoint paths to object selection dialog.
41 * 8 7/28/97 5:10p Hoffoss
42 * Removed all occurances of neutral team from Fred.
44 * 7 7/24/97 2:43p Hoffoss
45 * Made changes whiteside requested. Double clicking acts as clicking ok
48 * 6 5/26/97 10:30a Hoffoss
49 * Added select wing to object select dialog.
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.
58 /////////////////////////////////////////////////////////////////////////////
61 #include "shipchecklistbox.h"
64 class ship_select : public CDialog
71 ship_select(CWnd* pParent = NULL); // standard constructor
74 //{{AFX_DATA(ship_select)
75 enum { IDD = IDD_SHIP_SELECT };
80 BOOL m_filter_waypoints;
81 int m_filter_friendly;
89 // ClassWizard generated virtual function overrides
90 //{{AFX_VIRTUAL(ship_select)
92 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
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();
117 DECLARE_MESSAGE_MAP()
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];