digiKam
DigikamGenericImgUrPlugin::ImgurImagesList Class Reference
+ Inheritance diagram for DigikamGenericImgUrPlugin::ImgurImagesList:

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
}
 
enum  FieldType { Title = DItemsListView::User1 , Description = DItemsListView::User2 , URL = DItemsListView::User3 , DeleteURL = DItemsListView::User4 }
 The different columns in a list. More...
 

Public Slots

void slotAddImages (const QList< QUrl > &list) override
 
void slotDoubleClick (QTreeWidgetItem *element, int i)
 
virtual void slotRemoveItems ()
 
void slotSuccess (const ImgurTalkerResult &result)
 

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 ()
 
void enableControlButtons (bool enable=true)
 
void enableDragAndDrop (const bool enable=true)
 
QUrl getCurrentUrl () const
 
QList< const ImgurImageListViewItem * > getPendingItems ()
 
int iconSize () const
 
DInfoInterface * iface () const
 
virtual QList< QUrl > imageUrls (bool onlyUnprocessed=false) const
 
 ImgurImagesList (QWidget *const parent=nullptr)
 
DItemsListView * listView () 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)
 
 ~ImgurImagesList () override=default
 
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 

◆ FieldType

The different columns in a list.

Enumerator
Title 
Description 
URL 
DeleteURL 

Constructor & Destructor Documentation

◆ ImgurImagesList()

DigikamGenericImgUrPlugin::ImgurImagesList::ImgurImagesList ( QWidget *const  parent = nullptr)
explicit

◆ ~ImgurImagesList()

DigikamGenericImgUrPlugin::ImgurImagesList::~ImgurImagesList ( )
overridedefault

Member Function Documentation

◆ cancelProcess()

void Digikam::DItemsList::cancelProcess ( )
inherited

◆ checkSelection()

bool Digikam::DItemsList::checkSelection ( )
inherited

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

Referenced by Digikam::DItemsList::loadImagesFromCurrentSelection().

◆ clearProcessedStatus()

void Digikam::DItemsList::clearProcessedStatus ( )
inherited

◆ enableControlButtons()

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

◆ enableDragAndDrop()

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

◆ getCurrentUrl()

QUrl Digikam::DItemsList::getCurrentUrl ( ) const
inherited

◆ getPendingItems()

QList< const ImgurImageListViewItem * > DigikamGenericImgUrPlugin::ImgurImagesList::getPendingItems ( )

◆ iconSize()

int Digikam::DItemsList::iconSize ( ) const
inherited

◆ iface()

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

◆ imageUrls()

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

◆ isLessThanHandler()

DItemsListIsLessThanHandler Digikam::DItemsList::isLessThanHandler ( ) const
inherited

◆ listView()

◆ loadImagesFromCurrentAlbum()

void Digikam::DItemsList::loadImagesFromCurrentAlbum ( )
inherited

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

References Digikam::DItemsList::slotAddImages().

Referenced by Digikam::DItemsList::loadImagesFromCurrentSelection().

◆ loadImagesFromCurrentSelection()

◆ processed()

◆ processing()

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

◆ removeItemByUrl()

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

◆ setAllowDuplicate()

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

◆ setAllowRAW()

◆ setControlButtons()

◆ setControlButtonsPlacement()

◆ setCurrentUrl()

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

◆ setIconSize()

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

◆ setIface()

◆ setIsLessThanHandler()

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

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 > &  )
signalinherited

◆ signalContextMenuRequested

void Digikam::DItemsList::signalContextMenuRequested ( )
signalinherited

◆ signalFoundRAWImages

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

◆ signalImageListChanged

◆ signalItemClicked

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

◆ signalMoveDownItem

void Digikam::DItemsList::signalMoveDownItem ( )
signalinherited

◆ signalMoveUpItem

void Digikam::DItemsList::signalMoveUpItem ( )
signalinherited

◆ signalRemovedItems

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

◆ signalXMLCustomElements [1/2]

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

◆ signalXMLCustomElements [2/2]

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

◆ signalXMLLoadImageElement

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

◆ signalXMLSaveItem

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

◆ slotAddImages

void DigikamGenericImgUrPlugin::ImgurImagesList::slotAddImages ( const QList< QUrl > &  list)
overrideslot

Replaces the DItemsList::slotAddImages method, so that ImgurImageListViewItems can be added instead of ImagesListViewItems

References Digikam::DItemsList::listView(), Digikam::DItemsList::signalAddItems(), and Digikam::DItemsList::signalImageListChanged().

◆ slotAddItems

void Digikam::DItemsList::slotAddItems ( )
protectedvirtualslotinherited

◆ slotClearItems

void Digikam::DItemsList::slotClearItems ( )
protectedvirtualslotinherited

◆ slotDoubleClick

void DigikamGenericImgUrPlugin::ImgurImagesList::slotDoubleClick ( QTreeWidgetItem *  element,
int  i 
)
slot

References DeleteURL, and URL.

Referenced by ImgurImagesList().

◆ slotImageListChanged

void Digikam::DItemsList::slotImageListChanged ( )
protectedvirtualslotinherited

◆ slotLoadItems

◆ slotMoveDownItems

◆ slotMoveUpItems

◆ slotProgressTimerDone

void Digikam::DItemsList::slotProgressTimerDone ( )
protectedslotinherited

◆ slotRemoveItems

◆ slotSaveItems

◆ slotSuccess

◆ slotThumbnail

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

◆ updateThumbnail()

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

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