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

void LastPage::setupPage (  )  [virtual]

Setup this page, because the user will see it just in a moment.

Implements WizardPageBase.

Definition at line 39 of file lastpage.cpp.

References OptionType::Convert, OptionType::convertImages, OptionType::CopyOnly, OptionType::GenerateThumbnails, OptionType::LoadThumbnails, OptionType::NoThumbnails, KalleryGlobals::options, KalleryGlobals::ref(), and OptionType::resize.

{
  QString tmpString;

  GalleryTitleTxt->setText(i18n("<qt>Gallery title: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.galleryTitle));
  GalleryTxt->setText(i18n("<qt>Gallery file: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.galleryFile));
  LanguageTxt->setText(i18n("<qt>Country: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.language));

  EncodingTxt->setText(i18n("<qt>Encoding: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.encoding));

  switch (KalleryGlobals::ref()->options.thumbSetting)
  {
    case OptionType::NoThumbnails:
      tmpString = i18n("No thumbnail generation (ignore the next item).");
      break;
    case OptionType::GenerateThumbnails:
      tmpString = i18n("Generate thumbnails.  [ %1 / %2 x %3 ]").arg(KalleryGlobals::ref()->options.thumbFormat).arg(KalleryGlobals::ref()->options.thumbWidth)\
      .arg(KalleryGlobals::ref()->options.thumbHeight);
      break;
    case OptionType::LoadThumbnails:
      tmpString = i18n("Load thumbnails from a list.");
      break;
  }
  ThumbOptionsTxt->setText(tmpString);
  ThumbTxt->setText(i18n("<qt>Thumbnails: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.thumbDestDir));
  FullsizeTxt->setText(i18n("<qt>Images: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.imageDestDir));

  if (KalleryGlobals::ref()->options.relativePaths)
  {
    tmpString  = i18n("Use relative paths.");
  }
  else
  {
    tmpString = i18n("Use absolute paths. (Not recommended.)");
  }
  RelativeTxt->setText(tmpString);
  ColumnNumTxt->setText(i18n("<qt>Columns: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.columnNum));

  tmpString = i18n("%1 images. ").arg(KalleryGlobals::ref()->options.imageList.count());
  if (KalleryGlobals::ref()->options.convertImages == OptionType::Convert)
  {
    if (KalleryGlobals::ref()->options.resize)
    {
      tmpString +=i18n("[ %1 / %2 x %3 ]").arg(KalleryGlobals::ref()->options.fullFormat).arg(KalleryGlobals::ref()->options.fullWidth).arg(KalleryGlobals::ref()->options.fullHeight);
    }
    else
    {
      tmpString +=i18n("[ %1 / No resize ]").arg(KalleryGlobals::ref()->options.fullFormat);
    }

    if (KalleryGlobals::ref()->options.insertCopyright)
    {
      CopyrightTxt->setText(i18n("Copyright: %1").arg(KalleryGlobals::ref()->options.copyright));
    }
    else
    {
      CopyrightTxt->setText(i18n("No copyright info inserted"));
    }
  }

  if (KalleryGlobals::ref()->options.convertImages == OptionType::CopyOnly) 
      tmpString += i18n("[Copy the images]");
   ImageNumTxt->setText(tmpString);

   if (KalleryGlobals::ref()->options.galleryCSSFile.isEmpty())
   {
     tmpString = i18n("CSS is not used for the main gallery.");
   } else
   {
     tmpString = i18n("<qt>Gallery CSS file: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.galleryCSSFile);
   }
   GalleryCSSTxt->setText(tmpString);

   if (KalleryGlobals::ref()->options.imageCSSFile.isEmpty())
   {
     tmpString = i18n("CSS is not used for the fullsize image htmls.");
   } else
   {
     tmpString = i18n("<qt>Image CSS file: <i>%1</i></qt>").arg(KalleryGlobals::ref()->options.imageCSSFile);
   }
   ImageCSSTxt->setText(tmpString);

   if (KalleryGlobals::ref()->options.useHtmlImages)
   {
     tmpString  = i18n("Generate image html pages.");
   }
   else
   {
     tmpString = i18n("Do not generate html page for each image.");
   }
   ImageHtmlTxt->setText(tmpString);

   if (KalleryGlobals::ref()->options.textButtons)
   {
     tmpString  = i18n("Generate text navigation buttons.");
   }
   else
   {
     tmpString = i18n("Generate bitmap navigation buttons.");
   }
   ButtonsTxt->setText(tmpString);
}


Generated by  Doxygen 1.6.0   Back to index