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

Public Types

enum  WidgetRectType { LabelAndValueWidgetRects , ValueWidgetRectsOnly }
 

Public Member Functions

bool isVisible () override
 
virtual void read (SearchXmlCachingReader &reader)=0
 
virtual void reset ()=0
 
 SearchField (QObject *const parent)
 
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 setVisible (bool visible) override
 
virtual bool supportsField (const QString &fieldName)
 
QList< QRect > widgetRects (WidgetRectType=ValueWidgetRectsOnly) const
 
virtual void write (SearchXmlWriter &writer)=0
 

Static Public Member Functions

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

Protected Slots

void clearButtonClicked ()
 

Protected Member Functions

virtual void setupLabels (QGridLayout *layout, int line)
 
virtual void setupValueWidgets (QGridLayout *layout, int row, int column)=0
 
void setValidValueState (bool valueIsValid)
 
virtual void setValueWidgetsVisible (bool visible)=0
 
virtual QList< QRect > valueWidgetRects () const =0
 

Protected Attributes

bool m_categoryLabelVisible
 
AnimatedClearButtonm_clearButton
 
QLabel * m_detailLabel
 
QLabel * m_label
 
QString m_name
 
bool m_valueIsValid
 

Member Enumeration Documentation

◆ WidgetRectType

Enumerator
LabelAndValueWidgetRects 
ValueWidgetRectsOnly 

Constructor & Destructor Documentation

◆ SearchField()

Digikam::SearchField::SearchField ( QObject *const  parent)
explicit

Member Function Documentation

◆ clearButtonClicked

void Digikam::SearchField::clearButtonClicked ( )
protectedslot

References reset().

Referenced by setup().

◆ createField()

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

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(), 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(), setText(), Digikam::ItemPropertiesTab::shortenedMakeInfo(), Digikam::ItemPropertiesTab::shortenedModelInfo(), Digikam::MetadataInfo::SubjectDistanceCategory, Digikam::SearchFieldAlbum::TypeAlbum, Digikam::SearchFieldAlbum::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 ( )
overridevirtual

◆ read()

◆ reset()

◆ setCategoryLabelVisible()

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

◆ setCategoryLabelVisibleFromPreviousField()

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

◆ setFieldName()

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

References m_name.

Referenced by createField().

◆ setText()

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

References m_detailLabel, and m_label.

Referenced by createField().

◆ setup()

◆ setupLabels()

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

References m_detailLabel, and m_label.

Referenced by setup().

◆ setupValueWidgets()

◆ setValidValueState()

◆ setValueWidgetsVisible()

◆ setVisible()

void Digikam::SearchField::setVisible ( bool  visible)
overridevirtual

◆ supportsField()

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

◆ valueWidgetRects()

◆ widgetRects()

QList< QRect > Digikam::SearchField::widgetRects ( WidgetRectType  type = ValueWidgetRectsOnly) const

◆ write()

Member Data Documentation

◆ m_categoryLabelVisible

bool Digikam::SearchField::m_categoryLabelVisible
protected

◆ m_clearButton

AnimatedClearButton* Digikam::SearchField::m_clearButton
protected

◆ m_detailLabel

QLabel* Digikam::SearchField::m_detailLabel
protected

◆ m_label

◆ m_name

◆ m_valueIsValid

bool Digikam::SearchField::m_valueIsValid
protected

Referenced by SearchField(), and setValidValueState().


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