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

void ImageHtmlPage::setupPage (  )  [virtual]

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

Implements WizardPageBase.

Definition at line 180 of file imagehtmlpage.cpp.

References OptionType::fullsizeTemplate, fullsizeTemplateList, KalleryGlobals::options, and KalleryGlobals::ref().

{
    FullsizeTemplateCombo->clear();
  for (uint i = 0; i < fullsizeTemplateList.count(); i++)
  {
    FullsizeTemplateCombo->insertItem(fullsizeTemplateList[i].mid(fullsizeTemplateList[i].find('|')+1));
  }

  for (int i =  FullsizeTemplateCombo->count() -1; i >=0; i--)
  {
    FullsizeTemplateCombo->setCurrentItem(i);
    if (FullsizeTemplateCombo->currentText() == KalleryGlobals::ref()->options.fullsizeTemplate)
    {
      break;
    }
  }

  UseHtmlPages->setChecked(KalleryGlobals::ref()->options.useHtmlImages);
  TextButtonsBtn->setChecked(KalleryGlobals::ref()->options.textButtons);
  GraphButtonsBtn->setChecked(!KalleryGlobals::ref()->options.textButtons);
  NextTextEdit->setText(KalleryGlobals::ref()->options.nextStr);
  PrevTextEdit->setText(KalleryGlobals::ref()->options.prevStr);
  BackTextEdit->setText(KalleryGlobals::ref()->options.backStr);
  NextPic->setPixmap(QPixmap(KalleryGlobals::ref()->options.nextPic));
  PrevPic->setPixmap(QPixmap(KalleryGlobals::ref()->options.prevPic));
  BackPic->setPixmap(QPixmap(KalleryGlobals::ref()->options.backPic));
  BackColorFrame->setBackgroundColor(KalleryGlobals::ref()->options.imageBackColor);
  TextColorFrame->setBackgroundColor(KalleryGlobals::ref()->options.imageTextColor);
  VisitedColorFrame->setBackgroundColor(KalleryGlobals::ref()->options.imageVisitedColor);

  if (KalleryGlobals::ref()->options.imageCSSFile.isEmpty())
  {
    UseImageCSS->setChecked(false);
  }
  else
  {
    UseImageCSS->setChecked(true);
    OwnImageCSSName->setText(KalleryGlobals::ref()->options.imageCSSFile);
  }
}


Generated by  Doxygen 1.6.0   Back to index