1
0

GeneralConfigDlg.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * GeneralConfigDlg.h
  3. * ------------------
  4. * Purpose: Implementation of the general settings 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 COptionsGeneral: public CPropertyPage
  13. {
  14. protected:
  15. CEdit m_defaultArtist;
  16. CComboBox m_defaultTemplate, m_defaultFormat;
  17. CCheckListBox m_CheckList;
  18. public:
  19. COptionsGeneral() : CPropertyPage(IDD_OPTIONS_GENERAL) {}
  20. protected:
  21. BOOL OnInitDialog() override;
  22. void OnOK() override;
  23. BOOL OnSetActive() override;
  24. void DoDataExchange(CDataExchange* pDX) override;
  25. afx_msg void OnOptionSelChanged();
  26. afx_msg void OnSettingsChanged() { SetModified(TRUE); }
  27. afx_msg void OnBrowseTemplate();
  28. afx_msg void OnDefaultTypeChanged() { CheckRadioButton(IDC_RADIO1, IDC_RADIO3, IDC_RADIO1); OnSettingsChanged(); }
  29. afx_msg void OnTemplateChanged() { CheckRadioButton(IDC_RADIO1, IDC_RADIO3, IDC_RADIO3); OnSettingsChanged(); }
  30. DECLARE_MESSAGE_MAP();
  31. };
  32. OPENMPT_NAMESPACE_END