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

bool ImageHtmlPage::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 147 of file imagehtmlpage.cpp.

References OptionType::backStr, OptionType::fullsizeTemplate, OptionType::fullsizeTemplateFile, fullsizeTemplateList, OptionType::imageBackColor, OptionType::imageCSSFile, OptionType::imageTextColor, OptionType::imageVisitedColor, OptionType::nextStr, KalleryGlobals::options, OptionType::prevStr, KalleryGlobals::ref(), OptionType::textButtons, and OptionType::useHtmlImages.

{
  int i = FullsizeTemplateCombo->currentItem();
  KalleryGlobals::ref()->options.fullsizeTemplateFile = fullsizeTemplateList[i].left(fullsizeTemplateList[i].find('|'));
  KalleryGlobals::ref()->options.fullsizeTemplate = FullsizeTemplateCombo->currentText();
  KalleryGlobals::ref()->options.useHtmlImages = UseHtmlPages->isChecked();
  KalleryGlobals::ref()->options.textButtons = TextButtonsBtn->isChecked();
  KalleryGlobals::ref()->options.nextStr =  NextTextEdit->text();
  KalleryGlobals::ref()->options.prevStr =  PrevTextEdit->text();
  KalleryGlobals::ref()->options.backStr =  BackTextEdit->text();
  KalleryGlobals::ref()->options.imageBackColor = BackColorFrame->backgroundColor();
  KalleryGlobals::ref()->options.imageTextColor = TextColorFrame->backgroundColor();
  KalleryGlobals::ref()->options.imageVisitedColor = VisitedColorFrame->backgroundColor();

  if (UseImageCSS->isChecked())
  {
    KalleryGlobals::ref()->options.imageCSSFile = OwnImageCSSName->text();
    if (!QFileInfo(KalleryGlobals::ref()->options.imageCSSFile).exists())
    {
      if (KMessageBox::warningYesNo(this,i18n("The file %1 is missing. Continue anyway?").arg(KalleryGlobals::ref()->options.imageCSSFile),i18n("Missing file")) == KMessageBox::No)
      {
        return false;
      }
    }
  }
  else
  {
    KalleryGlobals::ref()->options.imageCSSFile = "";
  }

  return true;
}


Generated by  Doxygen 1.6.0   Back to index