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

Public Types

enum  WidgetRectType { LabelAndValueWidgetRects , ValueWidgetRectsOnly }
 

Public Member Functions

bool isVisible () override
 
void read (SearchXmlCachingReader &reader) override
 
void reset () override
 
 SearchFieldChoice (QObject *const parent)
 
void setAnyText (const QString &anyText)
 
void setCategoryLabelVisible (bool visible)
 
void setCategoryLabelVisibleFromPreviousField (SearchField *const previousField)
 
void setChoice (const QMap< int, QString > &map)
 
void setChoice (const QStringList &choice)
 
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 checkStateChanged ()
 
void clearButtonClicked ()
 

Protected Member Functions

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

Protected Attributes

QString m_anyText
 
bool m_categoryLabelVisible
 
AnimatedClearButtonm_clearButton
 
ChoiceSearchComboBoxm_comboBox
 
QLabel * m_detailLabel
 
QLabel * m_label
 
ChoiceSearchModelm_model
 
QString m_name
 
QVariant::Type m_type
 
bool m_valueIsValid
 

Member Enumeration Documentation

◆ WidgetRectType

Enumerator
LabelAndValueWidgetRects 
ValueWidgetRectsOnly 

Constructor & Destructor Documentation

◆ SearchFieldChoice()

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

References m_anyText, and m_model.

Member Function Documentation

◆ checkStateChanged

void Digikam::SearchFieldChoice::checkStateChanged ( )
protectedslot

References updateComboText().

Referenced by setupValueWidgets().

◆ 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(), 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, 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::SearchFieldChoice::reset ( )
overridevirtual

◆ setAnyText()

void Digikam::SearchFieldChoice::setAnyText ( const QString &  anyText)

References m_anyText.

◆ setCategoryLabelVisible()

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

◆ setCategoryLabelVisibleFromPreviousField()

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

◆ setChoice() [1/2]

void Digikam::SearchFieldChoice::setChoice ( const QMap< int, QString > &  map)

◆ setChoice() [2/2]

void Digikam::SearchFieldChoice::setChoice ( const QStringList &  choice)

◆ 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()

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

◆ setValidValueState()

◆ setValueWidgetsVisible()

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

Implements Digikam::SearchField.

References m_comboBox.

◆ setVisible()

◆ supportsField()

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

◆ updateComboText()

◆ valueWidgetRects()

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

Implements Digikam::SearchField.

References m_comboBox.

◆ widgetRects()

◆ write()

Member Data Documentation

◆ m_anyText

QString Digikam::SearchFieldChoice::m_anyText
protected

◆ m_categoryLabelVisible

bool Digikam::SearchField::m_categoryLabelVisible
protectedinherited

◆ m_clearButton

◆ m_comboBox

ChoiceSearchComboBox* Digikam::SearchFieldChoice::m_comboBox
protected

◆ m_detailLabel

◆ m_label

◆ m_model

ChoiceSearchModel* Digikam::SearchFieldChoice::m_model
protected

◆ m_name

◆ m_type

QVariant::Type Digikam::SearchFieldChoice::m_type
protected

Referenced by read(), setChoice(), and write().

◆ m_valueIsValid

bool Digikam::SearchField::m_valueIsValid
protectedinherited

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