void PulseAnimation::updateState(QAbstractAnimation::State newState, QAbstractAnimation::State oldState) { if (!targetWidget()) { return; } if (oldState == Stopped && newState == Running) { if (!m_under.data() || m_under.data()->target() != targetWidget() || m_under.data()->size() != targetWidget()->size()) { setCopy(); } if (m_under.data()->isIconBigger()) { m_under.data()->setScale(0); m_endScale = 1.0; } else { m_scale = 0; m_endScale = 1.5; } if (m_under.data()->isVisible() == false) { m_under.data()->setVisible(true); } m_under.data()->setOpacity(direction() == Forward ? 1 : 0); m_under.data()->setScale(direction() == Forward ? m_scale : m_endScale); } else if (newState == Stopped) { resetPulser(); } }
// Open the dialog type 't' void FileHandling::openDialog(QString t) { if(verbose) std::clog << "fhd: Open widget:" << t.toStdString() << std::endl; if(currentfile != "") { // Make sure all widgets are hidden by default renameWidget->hide(); deleteWidget->hide(); moveWidget->hide(); copyWidget->hide(); // Save current state dialogType = t; // Set right widget if(t == "rename") setRename(); if(t == "delete") setDelete(); if(t == "copy") setCopy(); if(t == "move") setMove(); // And animate makeShow(); } }
Box* frozensetCopy(BoxedSet* self) { RELEASE_ASSERT(PyAnySet_Check(self), ""); if (self->cls == frozenset_cls) { return incref(self); } return setCopy(self); }
bool SystemBattleCommand::openDialog(){ SystemBattleCommand battleCommand; battleCommand.setCopy(*this); DialogSystemBattleCommand dialog(battleCommand); if (dialog.exec() == QDialog::Accepted){ setCopy(battleCommand); return true; } return false; }
bool SystemMonsterTroop::openDialog(){ SystemMonsterTroop monsterTroop; monsterTroop.setCopy(*this); DialogSystemMonsterTroop dialog(monsterTroop); if (dialog.exec() == QDialog::Accepted){ setCopy(monsterTroop); return true; } return false; }
bool SystemLang::openDialog(){ SystemLang super; super.setCopy(*this); DialogSystemLang dialog(super); if (dialog.exec() == QDialog::Accepted){ setCopy(super); return true; } return false; }
bool SystemStatisticProgression::openDialog() { SystemStatisticProgression statisticProgression; statisticProgression.setCopy(*this); DialogSystemStatisticProgression dialog(statisticProgression); if (dialog.exec() == QDialog::Accepted){ setCopy(statisticProgression); return true; } return false; }
bool SystemKeyBoard::openDialog(){ SystemKeyBoard key; key.setCopy(*this); DialogSystemKeyBoardGeneral dialog(key); if (dialog.exec() == QDialog::Accepted){ setCopy(key); return true; } return false; }