1
0

PathConfigDlg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * PathConfigDlg.h
  3. * ---------------
  4. * Purpose: Default paths and auto save setup dialog.
  5. * Notes : (currently none)
  6. * Authors: OpenMPT Devs
  7. * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
  8. */
  9. #pragma once
  10. #include "openmpt/all/BuildSettings.hpp"
  11. OPENMPT_NAMESPACE_BEGIN
  12. class PathConfigDlg : public CPropertyPage
  13. {
  14. DECLARE_DYNAMIC(PathConfigDlg)
  15. public:
  16. PathConfigDlg();
  17. protected:
  18. void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
  19. void OnOK() override;
  20. BOOL OnInitDialog() override;
  21. BOOL OnKillActive() override;
  22. afx_msg void OnAutosaveEnable();
  23. afx_msg void OnAutosaveUseOrigDir();
  24. afx_msg void OnBrowseAutosavePath() { BrowseFolder(IDC_AUTOSAVE_PATH); }
  25. afx_msg void OnBrowseSongs() { BrowseFolder(IDC_OPTIONS_DIR_MODS); }
  26. afx_msg void OnBrowseSamples() { BrowseFolder(IDC_OPTIONS_DIR_SAMPS); }
  27. afx_msg void OnBrowseInstruments() { BrowseFolder(IDC_OPTIONS_DIR_INSTS); }
  28. afx_msg void OnBrowsePlugins() { BrowseFolder(IDC_OPTIONS_DIR_VSTS); }
  29. afx_msg void OnBrowsePresets() { BrowseFolder(IDC_OPTIONS_DIR_VSTPRESETS); }
  30. void OnSettingsChanged();
  31. BOOL OnSetActive() override;
  32. void BrowseFolder(UINT nID);
  33. mpt::PathString GetPath(int id);
  34. DECLARE_MESSAGE_MAP()
  35. };
  36. OPENMPT_NAMESPACE_END