-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathEditProfileDlg.hpp
96 lines (83 loc) · 1.98 KB
/
EditProfileDlg.hpp
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
/******************************************************************************
** (C) Chris Oldwood
**
** MODULE: EDITPROFILEDLG.HPP
** COMPONENT: The Application.
** DESCRIPTION: The CEditProfileDlg class declaration.
**
*******************************************************************************
*/
// Check for previous inclusion
#ifndef EDITPROFILEDLG_HPP
#define EDITPROFILEDLG_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/CommonUI.hpp>
#include "Profile.hpp"
/******************************************************************************
**
** This is the dialog used to create/edit a profile.
**
*******************************************************************************
*/
class CEditProfileDlg : public CDialog
{
public:
//
// Constructors/Destructor.
//
CEditProfileDlg();
//
// Members.
//
CProfile m_oProfile;
protected:
//
// Controls.
//
CEditBox m_ebName;
CComboBox m_cbFormat;
CEditBox m_ebCacheDir;
CCheckBox m_ckReadOnly;
CEditBox m_ebSystemDir;
CEditBox m_ebMapDir;
CEditBox m_ebTextureDir;
CEditBox m_ebSoundDir;
CEditBox m_ebMusicDir;
CEditBox m_ebMeshDir;
CEditBox m_ebAnimDir;
CEditBox m_ebKarmaDir;
CEditBox m_ebConfigFile;
//
// Members.
//
CString m_strLastPath;
//
// Message processors.
//
virtual void OnInitDialog();
virtual bool OnOk();
virtual void OnHelp(HELPINFO& oInfo);
void OnSelectFormat();
void OnBrowseCache();
void OnBrowseSystem();
void OnBrowseMaps();
void OnBrowseTextures();
void OnBrowseSounds();
void OnBrowseMusic();
void OnBrowseMeshes();
void OnBrowseAnims();
void OnBrowseKarma();
void OnBrowseDir(CEditBox& ebPath);
void OnBrowseCfgFile();
void OnQuickSetup();
bool ValidatePath(const CPath& strPath, CEditBox& ebControl, const tchar* pszName);
};
/******************************************************************************
**
** Implementation of inline functions.
**
*******************************************************************************
*/
#endif //EDITPROFILEDLG_HPP