bool NoteeditPart::openFile() {
	int ret;
	if (ret = mainWidget_->loadFile(m_file)) {
		QTimer::singleShot(2000, this, SLOT(playStart()));
	}
	return ret;
}
示例#2
0
void animateFrameUC::setFrameElapse(UINT elapse)
{
	if(m_uiFrameElapse == elapse) return;
	m_uiFrameElapse = elapse;
	if (isPlaying())
	{
		playStop();
		playStart();
	}
}
示例#3
0
void animateFrameUC::setCurrentFrame(int frameIndex)
{
	if(m_iFrame == frameIndex) return;
	m_iFrame = frameIndex;
	if (isPlaying())
	{
		playStop();
		playStart();
	}
}
示例#4
0
void animateFrameUC::setFrameImage(PCWSTR pimgKeyName)
{
	//if(m_wsFrameImage == pimgKeyName) return;
	//m_wsFrameImage = pimgKeyName;
	//m_vecFrames.clear();
	bool bl = isPlaying();
	if (bl) playStop();

	__super::setImage(pimgKeyName);
	

	if (bl) playStart();
}