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

Public Types

enum  Type { DateOnly , DateTime }
 
enum  WidgetRectType { LabelAndValueWidgetRects , ValueWidgetRectsOnly }
 

Public Member Functions

bool isVisible () override
 
void read (SearchXmlCachingReader &reader) override
 
void reset () override
 
 SearchFieldRangeDate (QObject *const parent, Type type)
 
void setBetweenText (const QString &between)
 
void setBoundary (const QDateTime &min, const QDateTime &max)
 
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 valueChanged ()
 

Protected Member Functions

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

Protected Attributes

QLabel * m_betweenLabel
 
bool m_categoryLabelVisible
 
AnimatedClearButtonm_clearButton
 
QLabel * m_detailLabel
 
DDateEditm_firstDateEdit
 
QTimeEdit * m_firstTimeEdit
 
QLabel * m_label
 
QString m_name
 
DDateEditm_secondDateEdit
 
QTimeEdit * m_secondTimeEdit
 
Type m_type
 
bool m_valueIsValid
 

Member Enumeration Documentation

◆ Type

Enumerator
DateOnly 
DateTime 

◆ WidgetRectType

Enumerator
LabelAndValueWidgetRects 
ValueWidgetRectsOnly 

Constructor & Destructor Documentation

◆ SearchFieldRangeDate()

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

References m_betweenLabel.

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

◆ setBetweenText()

void Digikam::SearchFieldRangeDate::setBetweenText ( const QString &  between)

◆ setBoundary()

void Digikam::SearchFieldRangeDate::setBoundary ( const QDateTime &  min,
const QDateTime &  max 
)

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

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

◆ setValidValueState()

◆ setValueWidgetsVisible()

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

◆ setVisible()

◆ supportsField()

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

◆ valueChanged

void Digikam::SearchFieldRangeDate::valueChanged ( )
protectedslot

◆ valueWidgetRects()

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

◆ widgetRects()

◆ write()

Member Data Documentation

◆ m_betweenLabel

QLabel* Digikam::SearchFieldRangeDate::m_betweenLabel
protected

◆ m_categoryLabelVisible

bool Digikam::SearchField::m_categoryLabelVisible
protectedinherited

◆ m_clearButton

◆ m_detailLabel

◆ m_firstDateEdit

DDateEdit* Digikam::SearchFieldRangeDate::m_firstDateEdit
protected

◆ m_firstTimeEdit

QTimeEdit* Digikam::SearchFieldRangeDate::m_firstTimeEdit
protected

◆ m_label

◆ m_name

◆ m_secondDateEdit

DDateEdit* Digikam::SearchFieldRangeDate::m_secondDateEdit
protected

◆ m_secondTimeEdit

QTimeEdit* Digikam::SearchFieldRangeDate::m_secondTimeEdit
protected

◆ m_type

Type Digikam::SearchFieldRangeDate::m_type
protected

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

◆ m_valueIsValid

bool Digikam::SearchField::m_valueIsValid
protectedinherited

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