digiKam
Digikam::DItemsList Class Reference
+ Inheritance diagram for Digikam::DItemsList:

Public Types

enum  ControlButton {
  Add = 0x1 , Remove = 0x2 , MoveUp = 0x4 , MoveDown = 0x8 ,
  Clear = 0x10 , Load = 0x20 , Save = 0x40
}
 
enum  ControlButtonPlacement {
  NoControlButtons = 0 , ControlButtonsLeft , ControlButtonsRight , ControlButtonsAbove ,
  ControlButtonsBelow
}
 

Public Slots

virtual void slotAddImages (const QList< QUrl > &list)
 
virtual void slotRemoveItems ()
 

Signals

void signalAddItems (const QList< QUrl > &)
 
void signalContextMenuRequested ()
 
void signalFoundRAWImages (bool)
 
void signalImageListChanged ()
 
void signalItemClicked (QTreeWidgetItem *)
 
void signalMoveDownItem ()
 
void signalMoveUpItem ()
 
void signalRemovedItems (const QList< int > &)
 
void signalXMLCustomElements (QXmlStreamReader &)
 
void signalXMLCustomElements (QXmlStreamWriter &)
 
void signalXMLLoadImageElement (QXmlStreamReader &)
 
void signalXMLSaveItem (QXmlStreamWriter &, int)
 

Public Member Functions

void cancelProcess ()
 
bool checkSelection ()
 
void clearProcessedStatus ()
 
 DItemsList (QWidget *const parent)
 
void enableControlButtons (bool enable=true)
 
void enableDragAndDrop (const bool enable=true)
 
QUrl getCurrentUrl () const
 
int iconSize () const
 
DInfoInterfaceiface () const
 
virtual QList< QUrl > imageUrls (bool onlyUnprocessed=false) const
 
DItemsListViewlistView () const
 
void loadImagesFromCurrentAlbum ()
 
void loadImagesFromCurrentSelection ()
 
void processed (const QUrl &url, bool success)
 
void processing (const QUrl &url)
 
virtual void removeItemByUrl (const QUrl &url)
 
void setAllowDuplicate (bool allow)
 
void setAllowRAW (bool allow)
 
void setControlButtons (ControlButtons buttonMask)
 
void setControlButtonsPlacement (ControlButtonPlacement placement)
 
void setCurrentUrl (const QUrl &url)
 
void setIconSize (int size)
 
void setIface (DInfoInterface *const iface)
 
void updateThumbnail (const QUrl &url)
 
 ~DItemsList () override
 
void setIsLessThanHandler (DItemsListIsLessThanHandler fncptr)
 
DItemsListIsLessThanHandler isLessThanHandler () const
 

Protected Slots

virtual void slotAddItems ()
 
virtual void slotClearItems ()
 
virtual void slotImageListChanged ()
 
virtual void slotLoadItems ()
 
virtual void slotMoveDownItems ()
 
virtual void slotMoveUpItems ()
 
void slotProgressTimerDone ()
 
virtual void slotSaveItems ()
 
virtual void slotThumbnail (const LoadingDescription &, const QPixmap &)
 

Member Enumeration Documentation

◆ ControlButton

Enumerator
Add 
Remove 
MoveUp 
MoveDown 
Clear 
Load 
Save 

◆ ControlButtonPlacement

Enumerator
NoControlButtons 
ControlButtonsLeft 
ControlButtonsRight 
ControlButtonsAbove 
ControlButtonsBelow 

Constructor & Destructor Documentation

◆ DItemsList()

◆ ~DItemsList()

Digikam::DItemsList::~DItemsList ( )
override

Member Function Documentation

◆ cancelProcess()

void Digikam::DItemsList::cancelProcess ( )

References processed().

◆ checkSelection()

bool Digikam::DItemsList::checkSelection ( )

a function to check whether an image has been selected or not.

Referenced by loadImagesFromCurrentSelection().

◆ clearProcessedStatus()

void Digikam::DItemsList::clearProcessedStatus ( )

◆ enableControlButtons()

void Digikam::DItemsList::enableControlButtons ( bool  enable = true)

◆ enableDragAndDrop()

void Digikam::DItemsList::enableDragAndDrop ( const bool  enable = true)

Referenced by DItemsList().

◆ getCurrentUrl()

QUrl Digikam::DItemsList::getCurrentUrl ( ) const

◆ iconSize()

int Digikam::DItemsList::iconSize ( ) const

Referenced by setIconSize().

◆ iface()

DInfoInterface * Digikam::DItemsList::iface ( ) const

◆ imageUrls()

QList< QUrl > Digikam::DItemsList::imageUrls ( bool  onlyUnprocessed = false) const
virtual

◆ isLessThanHandler()

DItemsListIsLessThanHandler Digikam::DItemsList::isLessThanHandler ( ) const

◆ listView()

◆ loadImagesFromCurrentAlbum()

void Digikam::DItemsList::loadImagesFromCurrentAlbum ( )

A function to load all the images from the album if no image has been selected by user.

References slotAddImages().

Referenced by loadImagesFromCurrentSelection().

◆ loadImagesFromCurrentSelection()

◆ processed()

◆ processing()

void Digikam::DItemsList::processing ( const QUrl &  url)

◆ removeItemByUrl()

void Digikam::DItemsList::removeItemByUrl ( const QUrl &  url)
virtual

◆ setAllowDuplicate()

void Digikam::DItemsList::setAllowDuplicate ( bool  allow)

◆ setAllowRAW()

◆ setControlButtons()

void Digikam::DItemsList::setControlButtons ( ControlButtons  buttonMask)

References Add, Clear, Load, MoveDown, MoveUp, Remove, and Save.

Referenced by DItemsList(), and setControlButtonsPlacement().

◆ setControlButtonsPlacement()

◆ setCurrentUrl()

void Digikam::DItemsList::setCurrentUrl ( const QUrl &  url)

◆ setIconSize()

void Digikam::DItemsList::setIconSize ( int  size)

References iconSize().

Referenced by DItemsList().

◆ setIface()

◆ setIsLessThanHandler()

void Digikam::DItemsList::setIsLessThanHandler ( DItemsListIsLessThanHandler  fncptr)

Methods to handle function pointer used to customize sort items in list. See DItemsListIsLessThanHandler type for details.

◆ signalAddItems

void Digikam::DItemsList::signalAddItems ( const QList< QUrl > &  )
signal

◆ signalContextMenuRequested

void Digikam::DItemsList::signalContextMenuRequested ( )
signal

Referenced by DItemsList().

◆ signalFoundRAWImages

void Digikam::DItemsList::signalFoundRAWImages ( bool  )
signal

Referenced by slotAddImages().

◆ signalImageListChanged

◆ signalItemClicked

void Digikam::DItemsList::signalItemClicked ( QTreeWidgetItem *  )
signal

Referenced by DItemsList().

◆ signalMoveDownItem

void Digikam::DItemsList::signalMoveDownItem ( )
signal

Referenced by slotMoveDownItems().

◆ signalMoveUpItem

void Digikam::DItemsList::signalMoveUpItem ( )
signal

Referenced by slotMoveUpItems().

◆ signalRemovedItems

void Digikam::DItemsList::signalRemovedItems ( const QList< int > &  )
signal

Referenced by removeItemByUrl(), and slotRemoveItems().

◆ signalXMLCustomElements [1/2]

void Digikam::DItemsList::signalXMLCustomElements ( QXmlStreamReader &  )
signal

◆ signalXMLCustomElements [2/2]

void Digikam::DItemsList::signalXMLCustomElements ( QXmlStreamWriter &  )
signal

Referenced by slotLoadItems(), and slotSaveItems().

◆ signalXMLLoadImageElement

void Digikam::DItemsList::signalXMLLoadImageElement ( QXmlStreamReader &  )
signal

Referenced by slotLoadItems().

◆ signalXMLSaveItem

void Digikam::DItemsList::signalXMLSaveItem ( QXmlStreamWriter &  ,
int   
)
signal

Referenced by slotSaveItems().

◆ slotAddImages

◆ slotAddItems

void Digikam::DItemsList::slotAddItems ( )
protectedvirtualslot

◆ slotClearItems

void Digikam::DItemsList::slotClearItems ( )
protectedvirtualslot

References listView(), and slotRemoveItems().

Referenced by DItemsList().

◆ slotImageListChanged

void Digikam::DItemsList::slotImageListChanged ( )
protectedvirtualslot

References imageUrls().

Referenced by DItemsList(), and enableControlButtons().

◆ slotLoadItems

void Digikam::DItemsList::slotLoadItems ( )
protectedvirtualslot

◆ slotMoveDownItems

void Digikam::DItemsList::slotMoveDownItems ( )
protectedvirtualslot

◆ slotMoveUpItems

void Digikam::DItemsList::slotMoveUpItems ( )
protectedvirtualslot

◆ slotProgressTimerDone

void Digikam::DItemsList::slotProgressTimerDone ( )
protectedslot

◆ slotRemoveItems

void Digikam::DItemsList::slotRemoveItems ( )
virtualslot

◆ slotSaveItems

void Digikam::DItemsList::slotSaveItems ( )
protectedvirtualslot

◆ slotThumbnail

void Digikam::DItemsList::slotThumbnail ( const LoadingDescription desc,
const QPixmap &  pix 
)
protectedvirtualslot

◆ updateThumbnail()

void Digikam::DItemsList::updateThumbnail ( const QUrl &  url)

The documentation for this class was generated from the following files: