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

Public Types

enum  Operation { All , OneOf , InTree }
 
enum  Type { TypeAlbum , TypeTag }
 
enum  WidgetRectType { LabelAndValueWidgetRects , ValueWidgetRectsOnly }
 

Public Member Functions

bool isVisible () override
 
void read (SearchXmlCachingReader &reader) override
 
void reset () override
 
 SearchFieldAlbum (QObject *const parent, Type type)
 
void setCategoryLabelVisible (bool visible)
 
void setCategoryLabelVisibleFromPreviousField (SearchField *const previousField)
 
void setFieldName (const QString &fieldName)
 
virtual void setText (const QString &label, const QString &detailLabel)
 
void setup (QGridLayout *const layout, int row=-1)
 
void setupValueWidgets (QGridLayout *layout, int row, int column) override
 
void setValueWidgetsVisible (bool visible) override
 
void setVisible (bool visible) override
 
virtual bool supportsField (const QString &fieldName)
 
QList< QRect > valueWidgetRects () const override
 
QList< QRect > widgetRects (WidgetRectType=ValueWidgetRectsOnly) const
 
void write (SearchXmlWriter &writer) override
 

Static Public Member Functions

static SearchFieldcreateField (const QString &fieldName, SearchFieldGroup *const parent)
 

Protected Slots

void clearButtonClicked ()
 
void updateState ()
 

Protected Member Functions

virtual void setupLabels (QGridLayout *layout, int line)
 
void setValidValueState (bool valueIsValid)
 

Protected Attributes

AlbumTreeViewSelectComboBoxm_albumComboBox
 
bool m_categoryLabelVisible
 
AnimatedClearButtonm_clearButton
 
QLabel * m_detailLabel
 
QLabel * m_label
 
AbstractCheckableAlbumModelm_model
 
QString m_name
 
SqueezedComboBoxm_operation
 
TagTreeViewSelectComboBoxm_tagComboBox
 
Type m_type
 
bool m_valueIsValid
 
QWidget * m_wrapperBox
 

Member Enumeration Documentation

◆ Operation

Enumerator
All 
OneOf 
InTree 

◆ Type

Enumerator
TypeAlbum 
TypeTag 

◆ WidgetRectType

Enumerator
LabelAndValueWidgetRects 
ValueWidgetRectsOnly 

Constructor & Destructor Documentation

◆ SearchFieldAlbum()

Digikam::SearchFieldAlbum::SearchFieldAlbum ( QObject *const  parent,
Type  type 
)

Member Function Documentation

◆ clearButtonClicked

void Digikam::SearchField::clearButtonClicked ( )
protectedslotinherited

◆ createField()

SearchField * Digikam::SearchField::createField ( const QString &  fieldName,
SearchFieldGroup *const  parent 
)
staticinherited

References Digikam::DatabaseItem::Audio, Digikam::DImg::CIELAB, Digikam::DImg::CMYK, Digikam::DImg::COLORMODELRAW, Digikam::DImg::colorModelToString(), Digikam::DImg::COLORMODELUNKNOWN, Digikam::SearchFieldRangeDate::DateTime, Digikam::CoreDbAccess::db(), Digikam::SearchFieldRangeInt::enableFractionMagic(), Digikam::MetadataInfo::ExposureMode, Digikam::MetadataInfo::ExposureProgram, Digikam::MetadataInfo::FlashMode, Digikam::ApplicationSettings::getAlbumCategoryNames(), Digikam::CoreDB::getListFromImageMetadata(), Digikam::DImg::GRAYSCALE, Digikam::DatabaseItem::Image, Digikam::DImg::INDEXED, Digikam::ApplicationSettings::instance(), Digikam::DatabaseFields::Lens, Digikam::DatabaseFields::Make, Digikam::MetadataInfo::MeteringMode, Digikam::DatabaseFields::Model, Digikam::DImg::MONOCHROME, Digikam::MetadataInfo::Orientation, Digikam::DMetadata::possibleValuesForEnumField(), Digikam::DImg::RGB, Digikam::SearchFieldRangeDate::setBetweenText(), Digikam::SearchFieldRangeInt::setBetweenText(), Digikam::SearchFieldRangeDouble::setBetweenText(), Digikam::SearchFieldRating::setBetweenText(), Digikam::SearchFieldRangeDouble::setBoundary(), Digikam::SearchFieldRangeInt::setBoundary(), Digikam::SearchFieldChoice::setChoice(), Digikam::SearchFieldRangeDouble::setFactor(), Digikam::SearchField::setFieldName(), Digikam::SearchFieldCheckBox::setLabel(), Digikam::SearchFieldRangeDouble::setNoValueText(), Digikam::SearchFieldRangeInt::setNumberPrefixAndSuffix(), Digikam::SearchFieldRangeDouble::setNumberPrefixAndSuffix(), Digikam::SearchFieldRangeDouble::setSingleSteps(), Digikam::SearchFieldRangeInt::setSingleSteps(), Digikam::SearchFieldRangeDouble::setSuggestedInitialValue(), Digikam::SearchFieldRangeInt::setSuggestedInitialValue(), Digikam::SearchFieldRangeDouble::setSuggestedValues(), Digikam::SearchFieldRangeInt::setSuggestedValues(), Digikam::SearchField::setText(), Digikam::ItemPropertiesTab::shortenedMakeInfo(), Digikam::ItemPropertiesTab::shortenedModelInfo(), Digikam::MetadataInfo::SubjectDistanceCategory, TypeAlbum, TypeTag, Digikam::DatabaseItem::Video, Digikam::DMetadata::VIDEOCOLORMODEL_BT601, Digikam::DMetadata::VIDEOCOLORMODEL_BT709, Digikam::DMetadata::VIDEOCOLORMODEL_OTHER, Digikam::DMetadata::VIDEOCOLORMODEL_SRGB, Digikam::DMetadata::videoColorModelToString(), Digikam::MetadataInfo::WhiteBalance, and Digikam::DImg::YCBCR.

Referenced by Digikam::SearchGroup::setup().

◆ isVisible()

bool Digikam::SearchField::isVisible ( )
overridevirtualinherited

◆ read()

◆ reset()

void Digikam::SearchFieldAlbum::reset ( )
overridevirtual

◆ setCategoryLabelVisible()

void Digikam::SearchField::setCategoryLabelVisible ( bool  visible)
inherited

◆ setCategoryLabelVisibleFromPreviousField()

void Digikam::SearchField::setCategoryLabelVisibleFromPreviousField ( SearchField *const  previousField)
inherited

◆ setFieldName()

void Digikam::SearchField::setFieldName ( const QString &  fieldName)
inherited

◆ setText()

void Digikam::SearchField::setText ( const QString &  label,
const QString &  detailLabel 
)
virtualinherited

◆ setup()

◆ setupLabels()

void Digikam::SearchField::setupLabels ( QGridLayout *  layout,
int  line 
)
protectedvirtualinherited

◆ setupValueWidgets()

◆ setValidValueState()

◆ setValueWidgetsVisible()

void Digikam::SearchFieldAlbum::setValueWidgetsVisible ( bool  visible)
overridevirtual

Implements Digikam::SearchField.

References m_wrapperBox.

◆ setVisible()

◆ supportsField()

bool Digikam::SearchField::supportsField ( const QString &  fieldName)
virtualinherited

◆ updateState

void Digikam::SearchFieldAlbum::updateState ( )
protectedslot

◆ valueWidgetRects()

QList< QRect > Digikam::SearchFieldAlbum::valueWidgetRects ( ) const
overridevirtual

Implements Digikam::SearchField.

References m_wrapperBox.

◆ widgetRects()

◆ write()

Member Data Documentation

◆ m_albumComboBox

AlbumTreeViewSelectComboBox* Digikam::SearchFieldAlbum::m_albumComboBox
protected

Referenced by setupValueWidgets().

◆ m_categoryLabelVisible

bool Digikam::SearchField::m_categoryLabelVisible
protectedinherited

◆ m_clearButton

◆ m_detailLabel

◆ m_label

◆ m_model

AbstractCheckableAlbumModel* Digikam::SearchFieldAlbum::m_model
protected

◆ m_name

◆ m_operation

SqueezedComboBox* Digikam::SearchFieldAlbum::m_operation
protected

Referenced by read(), reset(), setupValueWidgets(), and write().

◆ m_tagComboBox

TagTreeViewSelectComboBox* Digikam::SearchFieldAlbum::m_tagComboBox
protected

Referenced by setupValueWidgets().

◆ m_type

Type Digikam::SearchFieldAlbum::m_type
protected

Referenced by read(), and setupValueWidgets().

◆ m_valueIsValid

bool Digikam::SearchField::m_valueIsValid
protectedinherited

◆ m_wrapperBox

QWidget* Digikam::SearchFieldAlbum::m_wrapperBox
protected

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