implement copy ctor
This commit is contained in:
@@ -45,6 +45,24 @@ TextBanner::TextBanner()
|
|||||||
m_bInitted = false;
|
m_bInitted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TextBanner::TextBanner( const TextBanner &cpy ):
|
||||||
|
ActorFrame( cpy ),
|
||||||
|
m_bInitted( cpy.m_bInitted ),
|
||||||
|
m_textTitle( cpy.m_textTitle ),
|
||||||
|
m_textSubTitle( cpy.m_textSubTitle ),
|
||||||
|
m_textArtist( cpy.m_textArtist ),
|
||||||
|
ARTIST_PREPEND_STRING( cpy.ARTIST_PREPEND_STRING ),
|
||||||
|
TWO_LINES_TITLE_COMMAND( cpy.TWO_LINES_TITLE_COMMAND ),
|
||||||
|
TWO_LINES_SUBTITLE_COMMAND( cpy.TWO_LINES_SUBTITLE_COMMAND ),
|
||||||
|
TWO_LINES_ARTIST_COMMAND( cpy.TWO_LINES_ARTIST_COMMAND ),
|
||||||
|
THREE_LINES_TITLE_COMMAND( cpy.THREE_LINES_TITLE_COMMAND ),
|
||||||
|
THREE_LINES_SUBTITLE_COMMAND( cpy.THREE_LINES_SUBTITLE_COMMAND ),
|
||||||
|
THREE_LINES_ARTIST_COMMAND( cpy.THREE_LINES_ARTIST_COMMAND )
|
||||||
|
{
|
||||||
|
this->AddChild( &m_textTitle );
|
||||||
|
this->AddChild( &m_textSubTitle );
|
||||||
|
this->AddChild( &m_textArtist );
|
||||||
|
}
|
||||||
|
|
||||||
void TextBanner::LoadFromString(
|
void TextBanner::LoadFromString(
|
||||||
const CString &sDisplayTitle, const CString &sTranslitTitle,
|
const CString &sDisplayTitle, const CString &sTranslitTitle,
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ class TextBanner : public ActorFrame
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TextBanner();
|
TextBanner();
|
||||||
|
TextBanner( const TextBanner &cpy );
|
||||||
void Load( CString sType ); // load metrics
|
void Load( CString sType ); // load metrics
|
||||||
void LoadFromSong( const Song* pSong );
|
void LoadFromSong( const Song* pSong );
|
||||||
void LoadFromString(
|
void LoadFromString(
|
||||||
|
|||||||
Reference in New Issue
Block a user