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

void KalleryGlobals::setDefaultOptions (  ) 

Reset options to their default value.

Definition at line 34 of file kalleryglobals.cpp.

References OptionType::afterHtmlFile, OptionType::backColor, OptionType::backPic, OptionType::backStr, OptionType::beforeHtmlFile, OptionType::columnNum, OptionType::Convert, OptionType::convertImages, OptionType::copyright, OptionType::descList, OptionType::descSetting, OptionType::encoding, OptionType::fileName, OptionType::fullFormat, OptionType::fullHeight, OptionType::fullsizeTemplate, OptionType::fullWidth, OptionType::galleryCSSFile, OptionType::galleryFile, OptionType::galleryTemplate, OptionType::galleryTitle, OptionType::GenerateThumbnails, OptionType::imageBackColor, OptionType::imageCSSFile, OptionType::imageDestDir, OptionType::ImageInfoComment, OptionType::imageList, OptionType::imageTextColor, OptionType::imageVisitedColor, OptionType::infoSetting, OptionType::insertCopyright, OptionType::keepRatio, OptionType::language, OptionType::LoadImageInfo, m_baseDir, m_projectBaseDir, OptionType::nextPic, OptionType::nextStr, OptionType::onlyLarger, options, OptionType::prevPic, OptionType::prevStr, OptionType::projectFileName, OptionType::quality, OptionType::relativePaths, OptionType::resize, OptionType::tableColor, OptionType::textButtons, OptionType::textColor, OptionType::thumbDestDir, OptionType::thumbFormat, OptionType::thumbHeight, OptionType::thumbList, OptionType::thumbSetting, OptionType::thumbWidth, OptionType::useFrames, OptionType::useHtmlImages, and OptionType::visitedColor.

Referenced by Kallery::Kallery(), FirstPage::processPage(), and FirstPage::slotOpenProject().

{
  options.galleryTitle = i18n("Image gallery");
  options.galleryFile = QDir::currentDirPath()+"/myGallery/gallery.html";
  options.imageDestDir = QDir::currentDirPath()+"/myGallery/fullsize";
  options.thumbDestDir = QDir::currentDirPath()+"/myGallery/thumbs";
  options.relativePaths = true;
  options.imageList.clear();
  options.thumbList.clear();
  options.descList.clear();
  options.thumbSetting = OptionType::GenerateThumbnails;
  options.descSetting = OptionType::LoadImageInfo;
  options.infoSetting = OptionType::ImageInfoComment;
  options.thumbWidth = 150;
  options.thumbHeight = 100;
  options.fullWidth = 800;
  options.fullHeight = 600;
  options.convertImages = OptionType::Convert;
  options.resize = true;
  options.keepRatio = true;
  options.onlyLarger = true;
  options.thumbFormat = "jpg";
  options.fullFormat = "jpg";
  options.quality = 80; // == 80%
  options.columnNum = 3;
  options.useHtmlImages = true;
  options.textButtons = true;
  options.nextStr = i18n("Next");
  options.prevStr = i18n("Previous");
  options.backStr = i18n("Back");
  options.nextPic = m_baseDir + "images/next.png";
  options.prevPic = m_baseDir + "images/prev.png";
  options.backPic = m_baseDir + "images/back.png";
  options.imageBackColor.setNamedColor("#000000");
  options.imageTextColor.setNamedColor("#FFFFFF");
  options.imageVisitedColor.setNamedColor("#AAAAAA");
  options.insertCopyright = false;
  options.copyright = " " + i18n("(C) This year, You");
  options.galleryTemplate = i18n("Default template");
  options.fullsizeTemplate = i18n("Buttons above the image");
  options.language = i18n("United Kingdom (gb)");
  options.encoding = "utf8";
  options.useFrames = false;
  options.backColor.setNamedColor("#000000");
  options.tableColor.setNamedColor("#000000");
  options.textColor.setNamedColor("#FFFFFF");
  options.visitedColor.setNamedColor("#AAAAAA");
  options.galleryCSSFile = "";
  options.beforeHtmlFile = "";
  options.afterHtmlFile = "";
  options.imageCSSFile = "";
  options.projectFileName = "";
  options.fileName = "";

  //setCaption(i18n("Kallery wizard"));
  m_projectBaseDir = QFileInfo(options.galleryFile).dirPath()+"/";
}


Generated by  Doxygen 1.6.0   Back to index