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

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

Move up or down the items in the image list.

Definition at line 71 of file selectsourcepage.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