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

Public Types

enum  WidgetRectType { LabelAndValueWidgetRects , ValueWidgetRectsOnly }
 

Public Member Functions

void enableFractionMagic (const QString &prefix)
 
bool isVisible () override
 
void read (SearchXmlCachingReader &reader) override
 
void reset () override
 
 SearchFieldRangeInt (QObject *const parent)
 
void setBetweenText (const QString &text)
 
void setBoundary (int min, int max, int step=1)
 
void setCategoryLabelVisible (bool visible)
 
void setCategoryLabelVisibleFromPreviousField (SearchField *const previousField)
 
void setFieldName (const QString &fieldName)
 
void setInvertStepping (bool invert)
 
void setNoValueText (const QString &text)
 
void setNumberPrefixAndSuffix (const QString &prefix, const QString &suffix)
 
void setSingleSteps (int smaller, int larger)
 
void setSuggestedInitialValue (int initialValue)
 
void setSuggestedValues (const QList< int > &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
 
CustomStepsIntSpinBoxm_firstBox
 
QLabel * m_label
 
int m_max
 
int m_min
 
QString m_name
 
bool m_reciprocal
 
CustomStepsIntSpinBoxm_secondBox
 
bool m_valueIsValid
 

Member Enumeration Documentation

◆ WidgetRectType

Enumerator
LabelAndValueWidgetRects 
ValueWidgetRectsOnly 

Constructor & Destructor Documentation

◆ SearchFieldRangeInt()

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

◆ enableFractionMagic()

void Digikam::SearchFieldRangeInt::enableFractionMagic ( const QString &  prefix)

◆ isVisible()

bool Digikam::SearchField::isVisible ( )
overridevirtualinherited

◆ read()

◆ reset()

void Digikam::SearchFieldRangeInt::reset ( )
overridevirtual

◆ setBetweenText()

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

◆ setBoundary()

void Digikam::SearchFieldRangeInt::setBoundary ( int  min,
int  max,
int  step = 1 
)

◆ 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

◆ setInvertStepping()

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

◆ setNoValueText()

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

◆ setNumberPrefixAndSuffix()

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

◆ setSingleSteps()

void Digikam::SearchFieldRangeInt::setSingleSteps ( int  smaller,
int  larger 
)

◆ setSuggestedInitialValue()

void Digikam::SearchFieldRangeInt::setSuggestedInitialValue ( int  initialValue)

◆ setSuggestedValues()

void Digikam::SearchFieldRangeInt::setSuggestedValues ( const QList< int > &  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::SearchFieldRangeInt::setupValueWidgets ( QGridLayout *  layout,
int  row,
int  column 
)
overridevirtual

◆ setValidValueState()

◆ setValueWidgetsVisible()

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

◆ setVisible()

◆ supportsField()

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

◆ valueChanged

void Digikam::SearchFieldRangeInt::valueChanged ( )
protectedslot

◆ valueWidgetRects()

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

Implements Digikam::SearchField.

References m_firstBox, and m_secondBox.

◆ widgetRects()

◆ write()

Member Data Documentation

◆ m_betweenLabel

QLabel* Digikam::SearchFieldRangeInt::m_betweenLabel
protected

◆ m_categoryLabelVisible

bool Digikam::SearchField::m_categoryLabelVisible
protectedinherited

◆ m_clearButton

◆ m_detailLabel

◆ m_firstBox

◆ m_label

◆ m_max

int Digikam::SearchFieldRangeInt::m_max
protected

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

◆ m_min

int Digikam::SearchFieldRangeInt::m_min
protected

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

◆ m_name

◆ m_reciprocal

bool Digikam::SearchFieldRangeInt::m_reciprocal
protected

◆ m_secondBox

◆ m_valueIsValid

bool Digikam::SearchField::m_valueIsValid
protectedinherited

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