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

Signals

void signalItemExpanded (int index, bool b)
 
void signalItemToggled (int index, bool b)
 

Public Member Functions

void addItem (QWidget *const w, const QIcon &icon, const QString &txt, const QString &objName, bool expandBydefault)
 
void addItem (QWidget *const w, const QString &txt, const QString &objName, bool expandBydefault)
 
void addStretch ()
 
bool checkBoxIsVisible (int index) const
 
int count () const
 
int indexOf (DLabelExpander *const widget) const
 
void insertItem (int index, QWidget *const w, const QIcon &icon, const QString &txt, const QString &objName, bool expandBydefault)
 
void insertItem (int index, QWidget *const w, const QString &txt, const QString &objName, bool expandBydefault)
 
void insertStretch (int index)
 
bool isChecked (int index) const
 
bool isItemEnabled (int index) const
 
bool isItemExpanded (int index) const
 
QIcon itemIcon (int index) const
 
 ItemPropertiesTab (QWidget *const parent)
 
QString itemText (int index) const
 
QString itemToolTip (int index) const
 
virtual void readSettings (KConfigGroup &group)
 
void removeItem (int index)
 
void setCaption (const QString &str)
 
void setCheckBoxVisible (int index, bool b)
 
void setChecked (int index, bool b)
 
void setColorLabel (int colorId)
 
void setCurrentURL (const QUrl &url=QUrl())
 
void setFileModifiedDate (const QString &str)
 
void setFileOwner (const QString &str)
 
void setFilePermissions (const QString &str)
 
void setFileSize (const QString &str)
 
void setHasSidecar (const QString &str)
 
void setImageBitDepth (const QString &str)
 
void setImageColorMode (const QString &str)
 
void setImageMime (const QString &str)
 
void setImageRatio (const QString &str)
 
void setItemDimensions (const QString &str)
 
void setItemEnabled (int index, bool enabled)
 
void setItemExpanded (int index, bool b)
 
void setItemIcon (int index, const QIcon &icon)
 
void setItemText (int index, const QString &txt)
 
void setItemToolTip (int index, const QString &tip)
 
void setPhotoAperture (const QString &str)
 
void setPhotoDateTime (const QString &str)
 
void setPhotoExposureMode (const QString &str)
 
void setPhotoExposureTime (const QString &str)
 
void setPhotoFlash (const QString &str)
 
void setPhotoFocalLength (const QString &str)
 
void setPhotoInfoDisable (const bool b)
 
void setPhotoLens (const QString &str)
 
void setPhotoMake (const QString &str)
 
void setPhotoModel (const QString &str)
 
void setPhotoSensitivity (const QString &str)
 
void setPhotoWhiteBalance (const QString &str)
 
void setPickLabel (int pickId)
 
void setRating (int rating)
 
void setTags (const QStringList &tagPaths, const QStringList &tagNames=QStringList())
 
void setVideoAspectRatio (const QString &str)
 
void setVideoAudioBitRate (const QString &str)
 
void setVideoAudioChannelType (const QString &str)
 
void setVideoAudioCodec (const QString &str)
 
void setVideoDuration (const QString &str)
 
void setVideoFrameRate (const QString &str)
 
void setVideoInfoDisable (const bool b)
 
void setVideoVideoCodec (const QString &str)
 
void showOrHideCaptionAndTags ()
 
DLabelExpanderwidget (int index) const
 
virtual void writeSettings (KConfigGroup &group)
 
 ~ItemPropertiesTab () override
 

Static Public Member Functions

static bool aspectRatioToString (int width, int height, QString &arString)
 
static QString humanReadableBytesCount (qint64 bytes, bool si=false)
 
static QString permissionsString (const QFileInfo &fi)
 
static void shortenedMakeInfo (QString &make)
 
static void shortenedModelInfo (QString &model)
 
static QStringList shortenedTagPaths (const QStringList &tagPaths, QList< QVariant > *identifiers=nullptr)
 

Constructor & Destructor Documentation

◆ ItemPropertiesTab()

Digikam::ItemPropertiesTab::ItemPropertiesTab ( QWidget *const  parent)
explicit

◆ ~ItemPropertiesTab()

Digikam::ItemPropertiesTab::~ItemPropertiesTab ( )
override

Member Function Documentation

◆ addItem() [1/2]

void Digikam::DExpanderBox::addItem ( QWidget *const  w,
const QIcon &  icon,
const QString &  txt,
const QString &  objName,
bool  expandBydefault 
)
inherited

Add DLabelExpander item at end of box layout with these settings : 'w' : the widget hosted by DLabelExpander. 'pix' : pixmap used as icon to item title. 'txt' : text used as item title. 'objName' : item object name used to read/save expanded settings to rc file. 'expandBydefault' : item state by default (expanded or not).

Referenced by Digikam::DExpanderBox::addItem(), Digikam::ImportItemPropertiesTab::ImportItemPropertiesTab(), Digikam::DRawDecoderWidget::setup(), and Digikam::TemplateViewer::TemplateViewer().

◆ addItem() [2/2]

void Digikam::DExpanderBox::addItem ( QWidget *const  w,
const QString &  txt,
const QString &  objName,
bool  expandBydefault 
)
inherited

◆ addStretch()

◆ aspectRatioToString()

bool Digikam::ItemPropertiesTab::aspectRatioToString ( int  width,
int  height,
QString &  arString 
)
static

◆ checkBoxIsVisible()

bool Digikam::DExpanderBox::checkBoxIsVisible ( int  index) const
inherited

◆ count()

◆ humanReadableBytesCount()

◆ indexOf()

int Digikam::DExpanderBox::indexOf ( DLabelExpander *const  widget) const
inherited

◆ insertItem() [1/2]

void Digikam::DExpanderBox::insertItem ( int  index,
QWidget *const  w,
const QIcon &  icon,
const QString &  txt,
const QString &  objName,
bool  expandBydefault 
)
inherited

Insert DLabelExpander item at box layout index with these settings : 'w' : the widget hosted by DLabelExpander. 'pix' : pixmap used as icon to item title. 'txt' : text used as item title. 'objName' : item object name used to read/save expanded settings to rc file. 'expandBydefault' : item state by default (expanded or not).

Referenced by Digikam::DExpanderBox::insertItem(), ItemPropertiesTab(), and Digikam::ItemSelectionPropertiesTab::ItemSelectionPropertiesTab().

◆ insertItem() [2/2]

void Digikam::DExpanderBox::insertItem ( int  index,
QWidget *const  w,
const QString &  txt,
const QString &  objName,
bool  expandBydefault 
)
inherited

◆ insertStretch()

void Digikam::DExpanderBox::insertStretch ( int  index)
inherited

◆ isChecked()

bool Digikam::DExpanderBox::isChecked ( int  index) const
inherited

◆ isItemEnabled()

bool Digikam::DExpanderBox::isItemEnabled ( int  index) const
inherited

◆ isItemExpanded()

bool Digikam::DExpanderBox::isItemExpanded ( int  index) const
inherited

◆ itemIcon()

QIcon Digikam::DExpanderBox::itemIcon ( int  index) const
inherited

◆ itemText()

QString Digikam::DExpanderBox::itemText ( int  index) const
inherited

◆ itemToolTip()

QString Digikam::DExpanderBox::itemToolTip ( int  index) const
inherited

◆ permissionsString()

QString Digikam::ItemPropertiesTab::permissionsString ( const QFileInfo &  fi)
static

Return file permissions string.

Referenced by Digikam::ItemPropertiesSideBar::setImagePropertiesInformation().

◆ readSettings()

◆ removeItem()

void Digikam::DExpanderBox::removeItem ( int  index)
inherited

◆ setCaption()

void Digikam::ItemPropertiesTab::setCaption ( const QString &  str)

◆ setCheckBoxVisible()

void Digikam::DExpanderBox::setCheckBoxVisible ( int  index,
bool  b 
)
inherited

◆ setChecked()

void Digikam::DExpanderBox::setChecked ( int  index,
bool  b 
)
inherited

◆ setColorLabel()

void Digikam::ItemPropertiesTab::setColorLabel ( int  colorId)

◆ setCurrentURL()

void Digikam::ItemPropertiesTab::setCurrentURL ( const QUrl &  url = QUrl())

◆ setFileModifiedDate()

void Digikam::ItemPropertiesTab::setFileModifiedDate ( const QString &  str)

◆ setFileOwner()

void Digikam::ItemPropertiesTab::setFileOwner ( const QString &  str)

◆ setFilePermissions()

void Digikam::ItemPropertiesTab::setFilePermissions ( const QString &  str)

◆ setFileSize()

void Digikam::ItemPropertiesTab::setFileSize ( const QString &  str)

◆ setHasSidecar()

void Digikam::ItemPropertiesTab::setHasSidecar ( const QString &  str)

◆ setImageBitDepth()

void Digikam::ItemPropertiesTab::setImageBitDepth ( const QString &  str)

◆ setImageColorMode()

void Digikam::ItemPropertiesTab::setImageColorMode ( const QString &  str)

◆ setImageMime()

void Digikam::ItemPropertiesTab::setImageMime ( const QString &  str)

◆ setImageRatio()

void Digikam::ItemPropertiesTab::setImageRatio ( const QString &  str)

◆ setItemDimensions()

void Digikam::ItemPropertiesTab::setItemDimensions ( const QString &  str)

◆ setItemEnabled()

void Digikam::DExpanderBox::setItemEnabled ( int  index,
bool  enabled 
)
inherited

◆ setItemExpanded()

void Digikam::DExpanderBox::setItemExpanded ( int  index,
bool  b 
)
inherited

◆ setItemIcon()

void Digikam::DExpanderBox::setItemIcon ( int  index,
const QIcon &  icon 
)
inherited

◆ setItemText()

void Digikam::DExpanderBox::setItemText ( int  index,
const QString &  txt 
)
inherited

◆ setItemToolTip()

void Digikam::DExpanderBox::setItemToolTip ( int  index,
const QString &  tip 
)
inherited

◆ setPhotoAperture()

void Digikam::ItemPropertiesTab::setPhotoAperture ( const QString &  str)

◆ setPhotoDateTime()

void Digikam::ItemPropertiesTab::setPhotoDateTime ( const QString &  str)

◆ setPhotoExposureMode()

void Digikam::ItemPropertiesTab::setPhotoExposureMode ( const QString &  str)

◆ setPhotoExposureTime()

void Digikam::ItemPropertiesTab::setPhotoExposureTime ( const QString &  str)

◆ setPhotoFlash()

void Digikam::ItemPropertiesTab::setPhotoFlash ( const QString &  str)

◆ setPhotoFocalLength()

void Digikam::ItemPropertiesTab::setPhotoFocalLength ( const QString &  str)

◆ setPhotoInfoDisable()

void Digikam::ItemPropertiesTab::setPhotoInfoDisable ( const bool  b)

◆ setPhotoLens()

void Digikam::ItemPropertiesTab::setPhotoLens ( const QString &  str)

◆ setPhotoMake()

void Digikam::ItemPropertiesTab::setPhotoMake ( const QString &  str)

◆ setPhotoModel()

void Digikam::ItemPropertiesTab::setPhotoModel ( const QString &  str)

◆ setPhotoSensitivity()

void Digikam::ItemPropertiesTab::setPhotoSensitivity ( const QString &  str)

◆ setPhotoWhiteBalance()

void Digikam::ItemPropertiesTab::setPhotoWhiteBalance ( const QString &  str)

◆ setPickLabel()

void Digikam::ItemPropertiesTab::setPickLabel ( int  pickId)

◆ setRating()

void Digikam::ItemPropertiesTab::setRating ( int  rating)

◆ setTags()

void Digikam::ItemPropertiesTab::setTags ( const QStringList &  tagPaths,
const QStringList &  tagNames = QStringList() 
)

◆ setVideoAspectRatio()

void Digikam::ItemPropertiesTab::setVideoAspectRatio ( const QString &  str)

◆ setVideoAudioBitRate()

void Digikam::ItemPropertiesTab::setVideoAudioBitRate ( const QString &  str)

◆ setVideoAudioChannelType()

void Digikam::ItemPropertiesTab::setVideoAudioChannelType ( const QString &  str)

◆ setVideoAudioCodec()

void Digikam::ItemPropertiesTab::setVideoAudioCodec ( const QString &  str)

◆ setVideoDuration()

void Digikam::ItemPropertiesTab::setVideoDuration ( const QString &  str)

◆ setVideoFrameRate()

void Digikam::ItemPropertiesTab::setVideoFrameRate ( const QString &  str)

◆ setVideoInfoDisable()

void Digikam::ItemPropertiesTab::setVideoInfoDisable ( const bool  b)

◆ setVideoVideoCodec()

void Digikam::ItemPropertiesTab::setVideoVideoCodec ( const QString &  str)

◆ shortenedMakeInfo()

◆ shortenedModelInfo()

◆ shortenedTagPaths()

QStringList Digikam::ItemPropertiesTab::shortenedTagPaths ( const QStringList &  tagPaths,
QList< QVariant > *  identifiers = nullptr 
)
static

Shortens the tag paths by sorting and then cutting identical paths from the second and following paths (only the first item gives the full path). If you want to retain information about which tag path is sorted where, you can optionally give a QVariant list. This list shall contain an identifier for the tag path at the same index and will be resorted as the returned list.

References QT_SKIP_EMPTY_PARTS.

Referenced by setTags(), and Digikam::TagsCache::shortenedTagPaths().

◆ showOrHideCaptionAndTags()

void Digikam::ItemPropertiesTab::showOrHideCaptionAndTags ( )

◆ signalItemExpanded

void Digikam::DExpanderBox::signalItemExpanded ( int  index,
bool  b 
)
signalinherited

◆ signalItemToggled

void Digikam::DExpanderBox::signalItemToggled ( int  index,
bool  b 
)
signalinherited

◆ widget()

◆ writeSettings()

void Digikam::DExpanderBox::writeSettings ( KConfigGroup &  group)
virtualinherited

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