Differential D20840 Diff 57029 core/dplugins/generic/view/presentation/dialogs/presentation_mainpage.cpp
Changeset View
Changeset View
Standalone View
Standalone View
core/dplugins/generic/view/presentation/dialogs/presentation_mainpage.cpp
Context not available. | |||||
130 | m_printCommentsCheckBox->setChecked(d->sharedData->printFileComments); | 130 | m_printCommentsCheckBox->setChecked(d->sharedData->printFileComments); | ||
---|---|---|---|---|---|
131 | m_loopCheckBox->setChecked(d->sharedData->loop); | 131 | m_loopCheckBox->setChecked(d->sharedData->loop); | ||
132 | m_shuffleCheckBox->setChecked(d->sharedData->shuffle); | 132 | m_shuffleCheckBox->setChecked(d->sharedData->shuffle); | ||
133 | m_offAutoDelayCheckBox->setChecked(d->sharedData->offAutoDelay); | ||||
133 | 134 | | |||
134 | m_delaySpinBox->setValue(d->sharedData->useMilliseconds ? d->sharedData->delay | 135 | m_delaySpinBox->setValue(d->sharedData->useMilliseconds ? d->sharedData->delay | ||
135 | : d->sharedData->delay / 1000); | 136 | : d->sharedData->delay / 1000); | ||
Context not available. | |||||
160 | d->sharedData->printFileComments = m_printCommentsCheckBox->isChecked(); | 161 | d->sharedData->printFileComments = m_printCommentsCheckBox->isChecked(); | ||
161 | d->sharedData->loop = m_loopCheckBox->isChecked(); | 162 | d->sharedData->loop = m_loopCheckBox->isChecked(); | ||
162 | d->sharedData->shuffle = m_shuffleCheckBox->isChecked(); | 163 | d->sharedData->shuffle = m_shuffleCheckBox->isChecked(); | ||
164 | d->sharedData->offAutoDelay = m_offAutoDelayCheckBox->isChecked(); | ||||
163 | 165 | | |||
164 | if (!m_openglCheckBox->isChecked()) | 166 | if (!m_openglCheckBox->isChecked()) | ||
165 | { | 167 | { | ||
Context not available. | |||||
249 | // Notify total time is changed | 251 | // Notify total time is changed | ||
250 | emit signalTotalTimeChanged(d->totalTime); | 252 | emit signalTotalTimeChanged(d->totalTime); | ||
251 | 253 | | |||
252 | m_label6->setText(i18np("%1 image [%2]", "%1 images [%2]", numberOfImages, totalDuration.toString())); | 254 | if (m_offAutoDelayCheckBox->isChecked() == false) | ||
255 | { | ||||
256 | m_label6->setText(i18np("%1 image [%2]", "%1 images [%2]", numberOfImages, totalDuration.toString())); | ||||
257 | } | ||||
258 | else | ||||
259 | { | ||||
260 | m_label6->setText(i18np("%1 image", "%1 images", numberOfImages)); | ||||
261 | } | ||||
253 | } | 262 | } | ||
254 | 263 | | |||
255 | void PresentationMainPage::loadEffectNames() | 264 | void PresentationMainPage::loadEffectNames() | ||
Context not available. | |||||
414 | showNumberImages(); | 423 | showNumberImages(); | ||
415 | } | 424 | } | ||
416 | 425 | | |||
426 | void PresentationMainPage::slotOffAutoDelay() | ||||
427 | { | ||||
428 | m_delaySpinBox->setEnabled(!m_offAutoDelayCheckBox->isChecked()); | ||||
429 | m_delayLabel->setEnabled(!m_offAutoDelayCheckBox->isChecked()); | ||||
430 | d->sharedData->advancedPage->m_useMillisecondsCheckBox->setEnabled(!m_offAutoDelayCheckBox->isChecked()); | ||||
431 | slotDelayChanged(0); | ||||
432 | } | ||||
433 | | ||||
417 | void PresentationMainPage::slotUseMillisecondsToggled() | 434 | void PresentationMainPage::slotUseMillisecondsToggled() | ||
418 | { | 435 | { | ||
419 | int delay = d->sharedData->delay; | 436 | int delay = d->sharedData->delay; | ||
Context not available. | |||||
484 | connect(m_delaySpinBox, SIGNAL(valueChanged(int)), | 501 | connect(m_delaySpinBox, SIGNAL(valueChanged(int)), | ||
485 | this, SLOT(slotDelayChanged(int))); | 502 | this, SLOT(slotDelayChanged(int))); | ||
486 | 503 | | |||
504 | connect(m_offAutoDelayCheckBox, SIGNAL(toggled(bool)), | ||||
505 | this, SLOT(slotOffAutoDelay())); | ||||
506 | | ||||
487 | connect(m_effectsComboBox, SIGNAL(activated(int)), | 507 | connect(m_effectsComboBox, SIGNAL(activated(int)), | ||
488 | this, SLOT(slotEffectChanged())); | 508 | this, SLOT(slotEffectChanged())); | ||
489 | 509 | | |||
Context not available. |