1
0

SampleConfigDlg.h 990 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * SampleConfigDlg.h
  3. * -------------------
  4. * Purpose: Implementation of the sample/instrument editor 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 COptionsSampleEditor : public CPropertyPage
  13. {
  14. protected:
  15. CComboBox m_cbnDefaultSampleFormat, m_cbnDefaultVolumeHandling;
  16. public:
  17. COptionsSampleEditor() : CPropertyPage(IDD_OPTIONS_SAMPLEEDITOR) { }
  18. protected:
  19. BOOL OnInitDialog() override;
  20. void OnOK() override;
  21. void DoDataExchange(CDataExchange* pDX) override;
  22. BOOL OnSetActive() override;
  23. void RecalcUndoSize();
  24. afx_msg void OnHScroll(UINT /*nSBCode*/, UINT /*nPos*/, CScrollBar* /*pScrollBar*/) { OnSettingsChanged(); }
  25. afx_msg void OnSettingsChanged() { SetModified(TRUE); }
  26. afx_msg void OnUndoSizeChanged();
  27. DECLARE_MESSAGE_MAP();
  28. };
  29. OPENMPT_NAMESPACE_END