File: voiceactingmanager.h

package info (click to toggle)
freespace2 25.0.0%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 47,232 kB
  • sloc: cpp: 657,500; ansic: 22,305; sh: 293; python: 200; makefile: 198; xml: 181
file content (110 lines) | stat: -rw-r--r-- 3,700 bytes parent folder | download
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
103
104
105
106
107
108
109
110
#if !defined(AFX_VoiceActingManager_H__920EF950_8A59_4888_B7F6_E218DC869800__INCLUDED_)
#define AFX_VoiceActingManager_H__920EF950_8A59_4888_B7F6_E218DC869800__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// VoiceActingManager.h : header file
//

#include "mission/missionmessage.h"

/////////////////////////////////////////////////////////////////////////////
// VoiceActingManager dialog

class VoiceActingManager : public CDialog
{
// Construction
public:
	VoiceActingManager(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(VoiceActingManager)
	enum { IDD = IDD_VOICE_MANAGER };
	CString	m_abbrev_briefing;
	CString	m_abbrev_campaign;
	CString	m_abbrev_command_briefing;
	CString	m_abbrev_debriefing;
	CString	m_abbrev_message;
	CString	m_abbrev_mission;
	BOOL m_use_sender_in_filename;
	CString	m_example;
	BOOL m_no_replace;
	CString m_script_entry_format;
	BOOL m_export_everything;
	BOOL m_export_command_briefings;
	BOOL m_export_briefings;
	BOOL m_export_debriefings;
	BOOL m_export_messages;
	BOOL m_group_messages;
	int m_which_persona_to_sync;
	//}}AFX_DATA


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

// Implementation
protected:

	CString get_suffix();
	int calc_digits(int size);
	void build_example();
	void build_example(CString section);
	CString generate_filename(CString section, int number, int digits, const MMessage *message=nullptr);
	const char *get_message_sender(const MMessage *message);
	void export_one_message(const MMessage *message);
	void get_valid_sender(char *sender, size_t sender_size, const MMessage *message, int *sender_shipnum = nullptr, bool *is_command = nullptr);
	void group_message_indexes(SCP_vector<int> &message_indexes);
	void group_message_indexes_in_tree(int node, SCP_vector<int> &source_list, SCP_vector<int> &destination_list);
	bool check_persona(int persona);

	CFILE *fp;
	int fout(const char *format, ...);

	// Generated message map functions
	//{{AFX_MSG(VoiceActingManager)
	virtual BOOL OnInitDialog();
	afx_msg void OnClose();
	afx_msg void OnSetfocusAbbrevBriefing();
	afx_msg void OnSetfocusAbbrevCampaign();
	afx_msg void OnSetfocusAbbrevCommandBriefing();
	afx_msg void OnSetfocusAbbrevDebriefing();
	afx_msg void OnSetfocusAbbrevMessage();
	afx_msg void OnSetfocusAbbrevMission();
	afx_msg void OnSetfocusSuffix();
	afx_msg void OnChangeAbbrevBriefing();
	afx_msg void OnChangeAbbrevCampaign();
	afx_msg void OnChangeAbbrevCommandBriefing();
	afx_msg void OnChangeAbbrevDebriefing();
	afx_msg void OnChangeAbbrevMessage();
	afx_msg void OnChangeAbbrevMission();
	afx_msg void OnChangeOtherSuffix();
	afx_msg void OnChangeNoReplace();
	afx_msg void OnGenerateFileNames();
	afx_msg void OnGenerateScript();
	afx_msg void OnExportEverything();
	afx_msg void OnExportCommandBriefings();
	afx_msg void OnExportBriefings();
	afx_msg void OnExportDebriefings();
	afx_msg void OnExportMessages();
	afx_msg void OnBnClickedIncludeSender();
	afx_msg void OnChangeWhichToSync();
	afx_msg void OnCopyPersonas(bool messages_to_ships);
	afx_msg void OnCopyMessagePersonasToShips();
	afx_msg void OnCopyShipPersonasToMessages();
	afx_msg void OnSetHeadANIsUsingMessagesTbl();
	afx_msg void OnClearPersonasFromNonSenders();
	afx_msg void OnCheckAnyWingmanPersonas();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VoiceActingManager_H__920EF950_8A59_4888_B7F6_E218DC869800__INCLUDED_)