Logo Search packages:      
Sourcecode: kallery version File versions  Download package

bool ImageOptionsPage::processPage (  )  [virtual]

Reads the settings from the page.

Returns:
true if everything's ok, and the user can go to the next page, otherwise returns false.

Implements WizardPageBase.

Definition at line 56 of file imageoptionspage.cpp.

References OptionType::Convert, OptionType::convertImages, OptionType::CopyOnly, OptionType::copyright, OptionType::fullFormat, OptionType::fullHeight, OptionType::fullWidth, OptionType::insertCopyright, OptionType::keepRatio, OptionType::NoCopyConvert, OptionType::onlyLarger, KalleryGlobals::options, OptionType::quality, KalleryGlobals::ref(), OptionType::resize, OptionType::thumbFormat, OptionType::thumbHeight, OptionType::thumbWidth, and OptionType::UseExisting.

{
  if (NoCopyConvertFull->isChecked())
    KalleryGlobals::ref()->options.convertImages = OptionType::NoCopyConvert;
  if (CopyFull->isChecked())
    KalleryGlobals::ref()->options.convertImages = OptionType::CopyOnly;
  if (ConvertFull->isChecked())
    KalleryGlobals::ref()->options.convertImages = OptionType::Convert;
  if (UseExistingImages->isChecked())
    KalleryGlobals::ref()->options.convertImages = OptionType::UseExisting;
  KalleryGlobals::ref()->options.resize = Resize->isChecked();
  KalleryGlobals::ref()->options.keepRatio = KeepAspect->isChecked();
  KalleryGlobals::ref()->options.onlyLarger = OnlyLarger->isChecked();
  KalleryGlobals::ref()->options.fullWidth = FullW->value();
  KalleryGlobals::ref()->options.fullHeight = FullH->value();
  KalleryGlobals::ref()->options.thumbWidth = ThumbW->value();
  KalleryGlobals::ref()->options.thumbHeight = ThumbH->value();
  KalleryGlobals::ref()->options.quality = QualitySlider->value();
  KalleryGlobals::ref()->options.fullFormat = FullImageFormat->currentText();
  KalleryGlobals::ref()->options.fullFormat = KalleryGlobals::ref()->options.fullFormat.right(KalleryGlobals::ref()->options.fullFormat.length()-KalleryGlobals::ref()->options.fullFormat.find("*.",1)-2);
  KalleryGlobals::ref()->options.fullFormat.truncate(KalleryGlobals::ref()->options.fullFormat.find(")",1));
  KalleryGlobals::ref()->options.thumbFormat = ThumbImageFormat->currentText();
  KalleryGlobals::ref()->options.thumbFormat = KalleryGlobals::ref()->options.thumbFormat.right(KalleryGlobals::ref()->options.thumbFormat.length()-KalleryGlobals::ref()->options.thumbFormat.find("*.",1)-2);
  KalleryGlobals::ref()->options.thumbFormat.truncate(KalleryGlobals::ref()->options.thumbFormat.find(")",1));
  KalleryGlobals::ref()->options.insertCopyright = InsertCopyright->isChecked();
  KalleryGlobals::ref()->options.copyright =  CopyrightTxt->text();

  return true;
}


Generated by  Doxygen 1.6.0   Back to index