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/ScaleEnvPointsDlg.h

44 lines
884 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
/*
* ScaleEnvPointsDlg.h
* -------------------
* Purpose: Dialog for scaling instrument envelope points on x and y axis.
* 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"
#include "CDecimalSupport.h"
OPENMPT_NAMESPACE_BEGIN
struct InstrumentEnvelope;
class CScaleEnvPointsDlg : public CDialog
{
protected:
CNumberEdit m_EditX, m_EditY, m_EditOffset;
InstrumentEnvelope &m_Env;
static double m_factorX, m_factorY, m_offsetY;
int m_nCenter;
public:
CScaleEnvPointsDlg(CWnd* pParent, InstrumentEnvelope &env, int nCenter)
: CDialog(IDD_SCALE_ENV_POINTS, pParent)
, m_Env(env)
, m_nCenter(nCenter)
{ }
void Apply();
protected:
void OnOK() override;
BOOL OnInitDialog() override;
};
OPENMPT_NAMESPACE_END