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

Public Types

enum  WidgetRectType { LabelAndValueWidgetRects , ValueWidgetRectsOnly }
 

Public Member Functions

bool isVisible () override
 
void read (SearchXmlCachingReader &reader) override
 
void reset () override
 
 SearchFieldCheckBox (QObject *const parent)
 
void setCategoryLabelVisible (bool visible)
 
void setCategoryLabelVisibleFromPreviousField (SearchField *const previousField)
 
void setFieldName (const QString &fieldName)
 
void setLabel (const QString &text)
 
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 slotToggled (bool checked)
 

Protected Member Functions

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

Protected Attributes

bool m_categoryLabelVisible
 
QCheckBox * m_checkBox
 
AnimatedClearButtonm_clearButton
 
QLabel * m_detailLabel
 
QLabel * m_label
 
QString m_name
 
QString m_text
 
bool m_valueIsValid
 

Member Enumeration Documentation

◆ WidgetRectType

Enumerator
LabelAndValueWidgetRects 
ValueWidgetRectsOnly 

Constructor & Destructor Documentation

◆ SearchFieldCheckBox()

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

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(), 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, 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 ( )
overridevirtualinherited

◆ read()

◆ reset()

void Digikam::SearchFieldCheckBox::reset ( )
overridevirtual

Implements Digikam::SearchField.

References m_checkBox.

◆ 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

◆ setLabel()

void Digikam::SearchFieldCheckBox::setLabel ( const QString &  text)

References m_checkBox, and m_text.

Referenced by Digikam::SearchField::createField().

◆ setText()

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

◆ setup()

◆ setupLabels()

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

◆ setupValueWidgets()

void Digikam::SearchFieldCheckBox::setupValueWidgets ( QGridLayout *  layout,
int  row,
int  column 
)
overridevirtual

Implements Digikam::SearchField.

References m_checkBox, m_text, and slotToggled().

◆ setValidValueState()

◆ setValueWidgetsVisible()

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

Implements Digikam::SearchField.

References m_checkBox.

◆ setVisible()

◆ slotToggled

void Digikam::SearchFieldCheckBox::slotToggled ( bool  checked)
protectedslot

◆ supportsField()

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

◆ valueWidgetRects()

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

Implements Digikam::SearchField.

References m_checkBox.

◆ widgetRects()

◆ write()

Member Data Documentation

◆ m_categoryLabelVisible

bool Digikam::SearchField::m_categoryLabelVisible
protectedinherited

◆ m_checkBox

QCheckBox* Digikam::SearchFieldCheckBox::m_checkBox
protected

◆ m_clearButton

◆ m_detailLabel

◆ m_label

◆ m_name

◆ m_text

QString Digikam::SearchFieldCheckBox::m_text
protected

Referenced by setLabel(), and setupValueWidgets().

◆ m_valueIsValid

bool Digikam::SearchField::m_valueIsValid
protectedinherited

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