63 lines
1.1 KiB
C++
63 lines
1.1 KiB
C++
//---------------------------------------------------------------------------
|
|
|
|
#ifndef BackupUnitH
|
|
#define BackupUnitH
|
|
|
|
#include "GlobalUnit.h"
|
|
//---------------------------------------------------------------------------
|
|
#define CHECK_GET 0x0000
|
|
#define CHECK_KEY 0x0001
|
|
#define CHECK_BAR 0x0002
|
|
#define CHECK_CHORD 0x0004
|
|
#define CHECK_FILL 0x0008
|
|
#define CHECK_STAGE 0x0010
|
|
#define CHECK_POS 0x0020
|
|
#define CHECK_VAR 0x0040
|
|
#define CHECK_STYLE 0X0080
|
|
#define CHECK_ALL 0x00FF
|
|
|
|
class TMelodyBackup
|
|
{
|
|
private:
|
|
BOOL m_bModified;
|
|
|
|
int m_iKey;
|
|
int m_nBarCount;
|
|
int m_nStageCount;
|
|
int (*m_aChords)[2];
|
|
int *m_aFills;
|
|
int (*m_aStages)[3];
|
|
|
|
public:
|
|
TMelodyBackup();
|
|
~TMelodyBackup();
|
|
|
|
void Backup();
|
|
void Restore();
|
|
void Clear();
|
|
BOOL CheckModified( int iCheckType=CHECK_ALL );
|
|
};
|
|
|
|
class TComposeBackup
|
|
{
|
|
private:
|
|
BOOL m_bModified;
|
|
int m_nStageCount;
|
|
COMPOSESTAGELIST m_lstStages;
|
|
|
|
public:
|
|
TComposeBackup();
|
|
~TComposeBackup();
|
|
|
|
int m_iKey;
|
|
void Clear();
|
|
void Backup( int iKey );
|
|
void Restore();
|
|
BOOL CheckModified( int iCheckType=CHECK_ALL );
|
|
};
|
|
|
|
extern TMelodyBackup g_bkMelody;
|
|
extern TComposeBackup g_bkCompose;
|
|
|
|
#endif
|