File: reinforcementeditordlg.h

package info (click to toggle)
freespace2 3.7.0%2Brepack-2
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd
  • size: 22,848 kB
  • ctags: 41,897
  • sloc: cpp: 369,931; makefile: 1,060; xml: 129; sh: 112
file content (102 lines) | stat: -rw-r--r-- 2,398 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
 * Copyright (C) Volition, Inc. 1999.  All rights reserved.
 *
 * All source code herein is the property of Volition, Inc. You may not sell 
 * or otherwise commercially exploit the source or things you created based on the 
 * source.
 *
*/



#include "ship/ship.h"

/////////////////////////////////////////////////////////////////////////////
// reinforcement_editor_dlg dialog

class reinforcement_editor_dlg : public CDialog
{
// Construction
public:
	int query_modified();
	void OnOK();
	void OnCancel();
	void save_data();
	void update_data();
	reinforcement_editor_dlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(reinforcement_editor_dlg)
	enum { IDD = IDD_REINFORCEMENT_EDITOR };
	CSpinButtonCtrl	m_delay_spin;
	CSpinButtonCtrl	m_uses_spin;
	int		m_uses;
	int		m_delay;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(reinforcement_editor_dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void remove_selected( CListBox *box );
	void move_messages( CListBox *box );

	// Generated message map functions
	//{{AFX_MSG(reinforcement_editor_dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeList();
	afx_msg void OnAdd();
	afx_msg void OnDelete();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int m_num_reinforcements;
	reinforcements m_reinforcements[MAX_REINFORCEMENTS];
	int cur;
};

/////////////////////////////////////////////////////////////////////////////
// reinforcement_select dialog

class reinforcement_select : public CDialog
{
// Construction
public:
	int cur;
	char name[NAME_LENGTH];
	reinforcement_select(CWnd* pParent = NULL);   // standard constructor
	void OnOK();
	void OnCancel();

// Dialog Data
	//{{AFX_DATA(reinforcement_select)
	enum { IDD = IDD_REINFORCEMENT_SELECT };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(reinforcement_select)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(reinforcement_select)
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeList();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};