FS2_Open
Open source remastering of the Freespace 2 engine
ship_select.h
Go to the documentation of this file.
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 the
6  * source.
7  *
8 */
9 
10 
11 
13 // ship_select dialog
14 
15 #include "ShipCheckListBox.h"
16 #include "object/object.h"
17 #include "object/waypoint.h"
18 #include "iff_defs/iff_defs.h"
19 
20 class ship_select : public CDialog
21 {
22 // Construction
23 public:
24  void update_status(bool first_time = false);
25  void OnOK();
26  void create_list();
27  ship_select(CWnd* pParent = NULL); // standard constructor
28 
29 // Dialog Data
30  //{{AFX_DATA(ship_select)
31  enum { IDD = IDD_SHIP_SELECT };
32  CListBox m_wing_list;
33  CListBox m_ship_list;
38  //}}AFX_DATA
39 
40 
41 // Overrides
42  // ClassWizard generated virtual function overrides
43  //{{AFX_VIRTUAL(ship_select)
44  protected:
45  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
46  //}}AFX_VIRTUAL
47 
48 // Implementation
49 protected:
50 
51  void OnFilterShipsIFF(int iff);
52 
53  // Generated message map functions
54  //{{AFX_MSG(ship_select)
55  virtual BOOL OnInitDialog();
56  afx_msg void OnSelchangeWingDisplayFilter();
57  afx_msg void OnFilterShips();
58  afx_msg void OnFilterStarts();
59  afx_msg void OnFilterWaypoints();
60  afx_msg void OnFilterShipsIFF0();
61  afx_msg void OnFilterShipsIFF1();
62  afx_msg void OnFilterShipsIFF2();
63  afx_msg void OnFilterShipsIFF3();
64  afx_msg void OnFilterShipsIFF4();
65  afx_msg void OnFilterShipsIFF5();
66  afx_msg void OnFilterShipsIFF6();
67  afx_msg void OnFilterShipsIFF7();
68  afx_msg void OnFilterShipsIFF8();
69  afx_msg void OnFilterShipsIFF9();
70  afx_msg void OnClear();
71  afx_msg void OnAll();
72  afx_msg void OnInvert();
73  afx_msg void OnDblclkShipList();
74  afx_msg void OnSelchangeWingList();
75  afx_msg void OnSelchangeShipList();
76  afx_msg void OnDblclkWingList();
77  //}}AFX_MSG
78  DECLARE_MESSAGE_MAP()
79 
80 private:
81  int activity, list_size, wlist_size, wplist_size;
82  object *obj_index[MAX_OBJECTS];
83  SCP_vector<int> wing_index;
84  SCP_vector<int> wing_sel_last;
85 };
BOOL m_filter_iff[MAX_IFFS]
Definition: ship_select.h:37
afx_msg void OnSelchangeWingDisplayFilter()
afx_msg void OnAll()
ship_select(CWnd *pParent=NULL)
Definition: ship_select.cpp:41
void OnFilterShipsIFF(int iff)
afx_msg void OnFilterShipsIFF9()
afx_msg void OnFilterWaypoints()
afx_msg void OnFilterShipsIFF2()
#define MAX_OBJECTS
Definition: globals.h:83
afx_msg void OnFilterShipsIFF0()
afx_msg void OnSelchangeShipList()
afx_msg void OnClear()
afx_msg void OnFilterShipsIFF1()
afx_msg void OnInvert()
BOOL m_filter_starts
Definition: ship_select.h:35
afx_msg void OnFilterShipsIFF3()
CListBox m_wing_list
Definition: ship_select.h:32
void create_list()
afx_msg void OnFilterShipsIFF5()
BOOL m_filter_ships
Definition: ship_select.h:34
afx_msg void OnDblclkWingList()
virtual BOOL OnInitDialog()
void update_status(bool first_time=false)
afx_msg void OnFilterShipsIFF4()
int BOOL
Definition: config.h:80
CListBox m_ship_list
Definition: ship_select.h:33
afx_msg void OnFilterShipsIFF8()
afx_msg void OnFilterShips()
#define IDD_SHIP_SELECT
Definition: resource.h:42
afx_msg void OnSelchangeWingList()
#define MAX_IFFS
Definition: globals.h:34
afx_msg void OnDblclkShipList()
afx_msg void OnFilterShipsIFF6()
BOOL m_filter_waypoints
Definition: ship_select.h:36
virtual void DoDataExchange(CDataExchange *pDX)
Definition: ship_select.cpp:85
afx_msg void OnFilterStarts()
afx_msg void OnFilterShipsIFF7()