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

Public Types

enum  WidgetRectType { LabelAndValueWidgetRects , ValueWidgetRectsOnly }
 

Public Member Functions

bool isVisible () override
 
void read (SearchXmlCachingReader &reader) override
 
void reset () override
 
 SearchFieldRangeDouble (QObject *const parent)
 
void setBetweenText (const QString &text)
 
void setBoundary (double min, double max, int decimals, double step)
 
void setCategoryLabelVisible (bool visible)
 
void setCategoryLabelVisibleFromPreviousField (SearchField *const previousField)
 
void setFactor (double factor)
 
void setFieldName (const QString &fieldName)
 
void setInvertStepping (bool invert)
 
void setNoValueText (const QString &text)
 
void setNumberPrefixAndSuffix (const QString &prefix, const QString &suffix)
 
void setSingleSteps (double smaller, double larger)
 
void setSuggestedInitialValue (double initialValue)
 
void setSuggestedValues (const QList< double > &values)
 
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
 
double m_factor
 
CustomStepsDoubleSpinBoxm_firstBox
 
QLabel * m_label
 
double m_max
 
double m_min
 
QString m_name
 
CustomStepsDoubleSpinBoxm_secondBox
 
bool m_valueIsValid
 

Member Enumeration Documentation

◆ WidgetRectType

Enumerator
LabelAndValueWidgetRects 
ValueWidgetRectsOnly 

Constructor & Destructor Documentation

◆ SearchFieldRangeDouble()

Digikam::SearchFieldRangeDouble::SearchFieldRangeDouble ( 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(), setBetweenText(), Digikam::SearchFieldRating::setBetweenText(), setBoundary(), Digikam::SearchFieldRangeInt::setBoundary(), Digikam::SearchFieldChoice::setChoice(), setFactor(), Digikam::SearchField::setFieldName(), Digikam::SearchFieldCheckBox::setLabel(), setNoValueText(), Digikam::SearchFieldRangeInt::setNumberPrefixAndSuffix(), setNumberPrefixAndSuffix(), setSingleSteps(), Digikam::SearchFieldRangeInt::setSingleSteps(), setSuggestedInitialValue(), Digikam::SearchFieldRangeInt::setSuggestedInitialValue(), 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::SearchFieldRangeDouble::reset ( )
overridevirtual

◆ setBetweenText()

void Digikam::SearchFieldRangeDouble::setBetweenText ( const QString &  text)

◆ setBoundary()

void Digikam::SearchFieldRangeDouble::setBoundary ( double  min,
double  max,
int  decimals,
double  step 
)

◆ setCategoryLabelVisible()

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

◆ setCategoryLabelVisibleFromPreviousField()

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

◆ setFactor()

void Digikam::SearchFieldRangeDouble::setFactor ( double  factor)

References m_factor.

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

◆ setFieldName()

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

◆ setInvertStepping()

void Digikam::SearchFieldRangeDouble::setInvertStepping ( bool  invert)

◆ setNoValueText()

void Digikam::SearchFieldRangeDouble::setNoValueText ( const QString &  text)

◆ setNumberPrefixAndSuffix()

void Digikam::SearchFieldRangeDouble::setNumberPrefixAndSuffix ( const QString &  prefix,
const QString &  suffix 
)

◆ setSingleSteps()

void Digikam::SearchFieldRangeDouble::setSingleSteps ( double  smaller,
double  larger 
)

◆ setSuggestedInitialValue()

void Digikam::SearchFieldRangeDouble::setSuggestedInitialValue ( double  initialValue)

◆ setSuggestedValues()

void Digikam::SearchFieldRangeDouble::setSuggestedValues ( const QList< double > &  values)

◆ 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::SearchFieldRangeDouble::setupValueWidgets ( QGridLayout *  layout,
int  row,
int  column 
)
overridevirtual

◆ setValidValueState()

◆ setValueWidgetsVisible()

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

◆ setVisible()

◆ supportsField()

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

◆ valueChanged

void Digikam::SearchFieldRangeDouble::valueChanged ( )
protectedslot

◆ valueWidgetRects()

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

Implements Digikam::SearchField.

References m_firstBox, and m_secondBox.

◆ widgetRects()

◆ write()

Member Data Documentation

◆ m_betweenLabel

QLabel* Digikam::SearchFieldRangeDouble::m_betweenLabel
protected

◆ m_categoryLabelVisible

bool Digikam::SearchField::m_categoryLabelVisible
protectedinherited

◆ m_clearButton

◆ m_detailLabel

◆ m_factor

double Digikam::SearchFieldRangeDouble::m_factor
protected

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

◆ m_firstBox

◆ m_label

◆ m_max

double Digikam::SearchFieldRangeDouble::m_max
protected

Referenced by reset(), setBoundary(), and valueChanged().

◆ m_min

double Digikam::SearchFieldRangeDouble::m_min
protected

Referenced by reset(), setBoundary(), and valueChanged().

◆ m_name

◆ m_secondBox

◆ m_valueIsValid

bool Digikam::SearchField::m_valueIsValid
protectedinherited

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