Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/external_dependencies/openmpt-trunk/mptrack/MoveFXSlotDialog.h

44 lines
1.1 KiB
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
/*
* MoveFXSlotDialog.h
* ------------------
* Purpose: Implementationof OpenMPT's move plugin 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 CMoveFXSlotDialog : public CDialog
{
protected:
const std::vector<PLUGINDEX> &m_EmptySlots;
CString m_csPrompt, m_csTitle, m_csChain;
size_t m_nToSlot;
PLUGINDEX m_nDefaultSlot;
bool moveChain;
CComboBox m_CbnEmptySlots;
enum { IDD = IDD_MOVEFXSLOT };
public:
CMoveFXSlotDialog(CWnd *pParent, PLUGINDEX currentSlot, const std::vector<PLUGINDEX> &emptySlots, PLUGINDEX defaultIndex, bool clone, bool hasChain);
PLUGINDEX GetSlot() const { return m_EmptySlots[m_nToSlot]; }
size_t GetSlotIndex() const { return m_nToSlot; }
bool DoMoveChain() const { return moveChain; }
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnOK();
virtual BOOL OnInitDialog();
};
OPENMPT_NAMESPACE_END