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

void SelectSourcePage::slotLoadSourceFiles (  )  [private, slot]

Select images from the disk.

Definition at line 51 of file selectsourcepage.cpp.

References OptionType::descList, OptionType::imageList, KalleryGlobals::options, and KalleryGlobals::ref().

{
  KalleryGlobals::ref()->KalleryGlobals::ref()->options.imageList +=  KFileDialog::getOpenFileNames("", KalleryGlobals::ref()->imageFilter(), this, i18n("Select image files"));

  ImageListBox->clear();
  ImageListBox->insertStringList(KalleryGlobals::ref()->options.imageList,-1);
  ImageListBox->setSelected(0,true);
  ImageNumTxt->setText(i18n("%1 items.").arg(KalleryGlobals::ref()->options.imageList.count()));

  for (uint i = KalleryGlobals::ref()->options.descList.count(); i < KalleryGlobals::ref()->options.imageList.count(); i ++)
  {
    KalleryGlobals::ref()->options.descList.append(OptionType::Description());
  }
}


Generated by  Doxygen 1.6.0   Back to index