1
0

MoveFXSlotDialog.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * MoveFXSlotDialog.h
  3. * ------------------
  4. * Purpose: Implementationof OpenMPT's move plugin 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 CMoveFXSlotDialog : public CDialog
  13. {
  14. protected:
  15. const std::vector<PLUGINDEX> &m_EmptySlots;
  16. CString m_csPrompt, m_csTitle, m_csChain;
  17. size_t m_nToSlot;
  18. PLUGINDEX m_nDefaultSlot;
  19. bool moveChain;
  20. CComboBox m_CbnEmptySlots;
  21. enum { IDD = IDD_MOVEFXSLOT };
  22. public:
  23. CMoveFXSlotDialog(CWnd *pParent, PLUGINDEX currentSlot, const std::vector<PLUGINDEX> &emptySlots, PLUGINDEX defaultIndex, bool clone, bool hasChain);
  24. PLUGINDEX GetSlot() const { return m_EmptySlots[m_nToSlot]; }
  25. size_t GetSlotIndex() const { return m_nToSlot; }
  26. bool DoMoveChain() const { return moveChain; }
  27. protected:
  28. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  29. virtual void OnOK();
  30. virtual BOOL OnInitDialog();
  31. };
  32. OPENMPT_NAMESPACE_END