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

void ImageThumbPage::slotModifyImageList (  )  [private, slot]

Rearrange the image list (move images up/down).

Definition at line 60 of file imagethumbpage.cpp.

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

{
  if (ImageTopBtn->isDown())
  {
    KalleryFunctions::ref()->moveInListAndBox(ImageListBox,KalleryGlobals::ref()->options.imageList,&KalleryGlobals::ref()->options.descList,0,-1);
    ImageTopBtn->setDown(false);
  }
  if (ImageUpBtn->isDown())
  {
    KalleryFunctions::ref()->moveInListAndBox(ImageListBox,KalleryGlobals::ref()->options.imageList,&KalleryGlobals::ref()->options.descList,-1,0);
    ImageUpBtn->setDown(false);
  }
  if (ImageDownBtn->isDown())
  {
    KalleryFunctions::ref()->moveInListAndBox(ImageListBox,KalleryGlobals::ref()->options.imageList,&KalleryGlobals::ref()->options.descList,1,0);
    ImageDownBtn->setDown(false);
  }
  if (ImageBottomBtn->isDown())
  {
    KalleryFunctions::ref()->moveInListAndBox(ImageListBox,KalleryGlobals::ref()->options.imageList,&KalleryGlobals::ref()->options.descList,0,1);
    ImageBottomBtn->setDown(false);
  }
}


Generated by  Doxygen 1.6.0   Back to index