bool NoteeditPart::openFile() { int ret; if (ret = mainWidget_->loadFile(m_file)) { QTimer::singleShot(2000, this, SLOT(playStart())); } return ret; }
void animateFrameUC::setFrameElapse(UINT elapse) { if(m_uiFrameElapse == elapse) return; m_uiFrameElapse = elapse; if (isPlaying()) { playStop(); playStart(); } }
void animateFrameUC::setCurrentFrame(int frameIndex) { if(m_iFrame == frameIndex) return; m_iFrame = frameIndex; if (isPlaying()) { playStop(); playStart(); } }
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(); }