digiKam
Digikam::MetadataWidget Class Referenceabstract
+ Inheritance diagram for Digikam::MetadataWidget:

Public Types

enum  TagFilters { NONE = 0 , PHOTO , CUSTOM }
 

Signals

void signalSetupMetadataFilters ()
 

Public Member Functions

QString getCurrentItemKey () const
 
int getMode () const
 
virtual QString getTagDescription (const QString &key)
 
QStringList getTagsFilter () const
 
virtual QString getTagTitle (const QString &key)
 
virtual bool loadFromData (const QString &fileName, const DMetadata &data=DMetadata())
 
virtual bool loadFromURL (const QUrl &url)=0
 
 MetadataWidget (QWidget *const parent, const QString &name=QString())
 
void setCurrentItemByKey (const QString &itemKey)
 
void setMode (int mode)
 
void setTagsFilter (const QStringList &list)
 
void setUserAreaWidget (QWidget *const w)
 
 ~MetadataWidget () override
 

Protected Slots

virtual void slotSaveMetadataToFile ()=0
 

Protected Member Functions

virtual void buildView ()
 
virtual bool decodeMetadata ()=0
 
void enabledToolButtons (bool)
 
DMetadatagetMetadata () const
 
const DMetadata::MetaDataMapgetMetadataMap ()
 
virtual QString getMetadataTitle () const =0
 
QString metadataToText () const
 
QUrl saveMetadataToFile (const QString &caption, const QString &fileFilter)
 
void setFileName (const QString &fileName)
 
void setIfdList (const DMetadata::MetaDataMap &ifds, const QStringList &keysFilter, const QStringList &tagsFilter)
 
void setIfdList (const DMetadata::MetaDataMap &ifds, const QStringList &tagsFilter=QStringList())
 
bool setMetadata (const DMetadata &data=DMetadata())
 
virtual void setMetadataEmpty ()
 
void setMetadataMap (const DMetadata::MetaDataMap &data=DMetadata::MetaDataMap())
 
void setup ()
 
bool storeMetadataToFile (const QUrl &url, const QByteArray &metaData)
 
MetadataListViewview () const
 

Member Enumeration Documentation

◆ TagFilters

Enumerator
NONE 
PHOTO 
CUSTOM 

Constructor & Destructor Documentation

◆ MetadataWidget()

Digikam::MetadataWidget::MetadataWidget ( QWidget *const  parent,
const QString &  name = QString() 
)
explicit

◆ ~MetadataWidget()

Digikam::MetadataWidget::~MetadataWidget ( )
override

Member Function Documentation

◆ buildView()

void Digikam::MetadataWidget::buildView ( )
protectedvirtual

Referenced by setMetadata(), setMode(), and setTagsFilter().

◆ decodeMetadata()

virtual bool Digikam::MetadataWidget::decodeMetadata ( )
protectedpure virtual

Referenced by setMetadata().

◆ enabledToolButtons()

void Digikam::MetadataWidget::enabledToolButtons ( bool  b)
protected

◆ getCurrentItemKey()

QString Digikam::MetadataWidget::getCurrentItemKey ( ) const

◆ getMetadata()

◆ getMetadataMap()

const DMetadata::MetaDataMap & Digikam::MetadataWidget::getMetadataMap ( )
protected

◆ getMetadataTitle()

virtual QString Digikam::MetadataWidget::getMetadataTitle ( ) const
protectedpure virtual

◆ getMode()

int Digikam::MetadataWidget::getMode ( ) const

References CUSTOM, NONE, and PHOTO.

Referenced by setTagsFilter().

◆ getTagDescription()

QString Digikam::MetadataWidget::getTagDescription ( const QString &  key)
virtual

◆ getTagsFilter()

QStringList Digikam::MetadataWidget::getTagsFilter ( ) const

◆ getTagTitle()

QString Digikam::MetadataWidget::getTagTitle ( const QString &  key)
virtual

◆ loadFromData()

bool Digikam::MetadataWidget::loadFromData ( const QString &  fileName,
const DMetadata data = DMetadata() 
)
virtual

References setFileName(), and setMetadata().

◆ loadFromURL()

virtual bool Digikam::MetadataWidget::loadFromURL ( const QUrl &  url)
pure virtual

◆ metadataToText()

QString Digikam::MetadataWidget::metadataToText ( ) const
protected

◆ saveMetadataToFile()

◆ setCurrentItemByKey()

void Digikam::MetadataWidget::setCurrentItemByKey ( const QString &  itemKey)

◆ setFileName()

◆ setIfdList() [1/2]

void Digikam::MetadataWidget::setIfdList ( const DMetadata::MetaDataMap ifds,
const QStringList &  keysFilter,
const QStringList &  tagsFilter 
)
protected

◆ setIfdList() [2/2]

void Digikam::MetadataWidget::setIfdList ( const DMetadata::MetaDataMap ifds,
const QStringList &  tagsFilter = QStringList() 
)
protected

◆ setMetadata()

◆ setMetadataEmpty()

void Digikam::MetadataWidget::setMetadataEmpty ( )
protectedvirtual

◆ setMetadataMap()

void Digikam::MetadataWidget::setMetadataMap ( const DMetadata::MetaDataMap data = DMetadata::MetaDataMap())
protected

◆ setMode()

void Digikam::MetadataWidget::setMode ( int  mode)

References buildView(), NONE, and PHOTO.

◆ setTagsFilter()

void Digikam::MetadataWidget::setTagsFilter ( const QStringList &  list)

◆ setup()

void Digikam::MetadataWidget::setup ( )
protected

◆ setUserAreaWidget()

void Digikam::MetadataWidget::setUserAreaWidget ( QWidget *const  w)

◆ signalSetupMetadataFilters

void Digikam::MetadataWidget::signalSetupMetadataFilters ( )
signal

◆ slotSaveMetadataToFile

virtual void Digikam::MetadataWidget::slotSaveMetadataToFile ( )
protectedpure virtualslot

Referenced by setup().

◆ storeMetadataToFile()

◆ view()

MetadataListView * Digikam::MetadataWidget::view ( ) const
protected

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