blob: e07a52b059b36087a61fed60cd4a810f6515c231 (
plain) (
blame)
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
|
/*
* PathConfigDlg.h
* ---------------
* Purpose: Default paths and auto save setup dialog.
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#pragma once
#include "openmpt/all/BuildSettings.hpp"
OPENMPT_NAMESPACE_BEGIN
class PathConfigDlg : public CPropertyPage
{
DECLARE_DYNAMIC(PathConfigDlg)
public:
PathConfigDlg();
protected:
void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
void OnOK() override;
BOOL OnInitDialog() override;
BOOL OnKillActive() override;
afx_msg void OnAutosaveEnable();
afx_msg void OnAutosaveUseOrigDir();
afx_msg void OnBrowseAutosavePath() { BrowseFolder(IDC_AUTOSAVE_PATH); }
afx_msg void OnBrowseSongs() { BrowseFolder(IDC_OPTIONS_DIR_MODS); }
afx_msg void OnBrowseSamples() { BrowseFolder(IDC_OPTIONS_DIR_SAMPS); }
afx_msg void OnBrowseInstruments() { BrowseFolder(IDC_OPTIONS_DIR_INSTS); }
afx_msg void OnBrowsePlugins() { BrowseFolder(IDC_OPTIONS_DIR_VSTS); }
afx_msg void OnBrowsePresets() { BrowseFolder(IDC_OPTIONS_DIR_VSTPRESETS); }
void OnSettingsChanged();
BOOL OnSetActive() override;
void BrowseFolder(UINT nID);
mpt::PathString GetPath(int id);
DECLARE_MESSAGE_MAP()
};
OPENMPT_NAMESPACE_END
|