52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
//---------------------------------------------------------------------------
|
|
|
|
#ifndef RecordPanelUnitH
|
|
#define RecordPanelUnitH
|
|
|
|
#include "ShowBarsPanelUnit.h"
|
|
|
|
namespace RecordPanelUnit
|
|
{
|
|
//---------------------------------------------------------------------------
|
|
class TPanel : public TShowBarsPanel
|
|
{
|
|
private:
|
|
//重录起止位置图标
|
|
TPngImage *m_imgBeginPos,
|
|
*m_imgEndPos;
|
|
|
|
//显示相关
|
|
int m_nModifyFlagWidth,
|
|
m_nModifyFlagHeight;
|
|
|
|
//录音/播放相关
|
|
bool m_bShowModifyPos;
|
|
int m_iModifyBeginBar,
|
|
m_iModifyBeginPoint,
|
|
m_iModifyEndBar,
|
|
m_iModifyEndPoint;
|
|
|
|
// void DrawWaves(int left, int mid, int iBar);
|
|
|
|
protected:
|
|
virtual void __fastcall CreateWnd();
|
|
virtual void __fastcall DrawBarBkgnd( int iBar, int left, int top );
|
|
virtual void __fastcall DrawBarContext( int iBar, int left, int top );
|
|
virtual void __fastcall DrawBarOperation( int iBar, int left, int top );
|
|
|
|
public:
|
|
void AddNewBar( int iBar );
|
|
bool SetModifyPos( bool bBegin, int iBar, int iPoint );
|
|
void GetModifyPos( bool bBegin, int& iBar, int& iPoint );
|
|
void ShowModifyPos( bool bShow=true );
|
|
|
|
__fastcall virtual TPanel(System::Classes::TComponent* AOwner);
|
|
__fastcall ~TPanel();
|
|
};
|
|
|
|
}
|
|
|
|
using namespace RecordPanelUnit;
|
|
|
|
#endif
|