digiKam
|
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 SearchField * | createField (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 |
AnimatedClearButton * | m_clearButton |
QLabel * | m_detailLabel |
double | m_factor |
CustomStepsDoubleSpinBox * | m_firstBox |
QLabel * | m_label |
double | m_max |
double | m_min |
QString | m_name |
CustomStepsDoubleSpinBox * | m_secondBox |
bool | m_valueIsValid |
|
inherited |
|
explicit |
References m_betweenLabel, m_firstBox, and m_secondBox.
|
protectedslotinherited |
References Digikam::SearchField::reset().
Referenced by Digikam::SearchField::setup().
|
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().
|
overridevirtualinherited |
Implements Digikam::VisibilityObject.
References Digikam::SearchField::m_detailLabel.
Referenced by Digikam::SearchFieldGroup::areaOfMarkedFields().
|
overridevirtual |
Implements Digikam::SearchField.
References Digikam::SearchXmlCachingReader::fieldRelation(), Digikam::SearchXml::GreaterThan, Digikam::SearchXml::GreaterThanOrEqual, Digikam::SearchXml::Interval, Digikam::SearchXml::IntervalOpen, Digikam::SearchXml::LessThan, Digikam::SearchXml::LessThanOrEqual, m_factor, m_firstBox, m_secondBox, Digikam::SearchXmlCachingReader::valueToDouble(), and Digikam::SearchXmlCachingReader::valueToDoubleList().
|
overridevirtual |
Implements Digikam::SearchField.
References m_firstBox, m_max, m_min, m_secondBox, and Digikam::CustomStepsDoubleSpinBox::reset().
void Digikam::SearchFieldRangeDouble::setBetweenText | ( | const QString & | text | ) |
References m_betweenLabel.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeDouble::setBoundary | ( | double | min, |
double | max, | ||
int | decimals, | ||
double | step | ||
) |
References m_firstBox, m_max, m_min, and m_secondBox.
Referenced by Digikam::SearchField::createField().
|
inherited |
|
inherited |
References Digikam::SearchField::m_label, and Digikam::SearchField::setCategoryLabelVisible().
Referenced by Digikam::SearchFieldGroup::addField().
void Digikam::SearchFieldRangeDouble::setFactor | ( | double | factor | ) |
References m_factor.
Referenced by Digikam::SearchField::createField().
|
inherited |
References Digikam::SearchField::m_name.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeDouble::setInvertStepping | ( | bool | invert | ) |
References m_firstBox, m_secondBox, and Digikam::CustomStepsDoubleSpinBox::setInvertStepping().
void Digikam::SearchFieldRangeDouble::setNoValueText | ( | const QString & | text | ) |
References m_firstBox, and m_secondBox.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeDouble::setNumberPrefixAndSuffix | ( | const QString & | prefix, |
const QString & | suffix | ||
) |
References m_firstBox, m_secondBox, prefix, and suffix.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeDouble::setSingleSteps | ( | double | smaller, |
double | larger | ||
) |
References m_firstBox, m_secondBox, and Digikam::CustomStepsDoubleSpinBox::setSingleSteps().
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeDouble::setSuggestedInitialValue | ( | double | initialValue | ) |
References m_firstBox, m_secondBox, Digikam::CustomStepsDoubleSpinBox::setSuggestedInitialValue(), and value.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeDouble::setSuggestedValues | ( | const QList< double > & | values | ) |
References m_firstBox, m_secondBox, and Digikam::CustomStepsDoubleSpinBox::setSuggestedValues().
Referenced by Digikam::SearchField::createField().
|
virtualinherited |
References Digikam::SearchField::m_detailLabel, and Digikam::SearchField::m_label.
Referenced by Digikam::SearchField::createField().
|
inherited |
References Digikam::SearchField::clearButtonClicked(), Digikam::SearchField::m_clearButton, Digikam::AnimatedClearButton::setPixmap(), Digikam::SearchField::setupLabels(), Digikam::SearchField::setupValueWidgets(), and Digikam::AnimatedClearButton::stayVisibleWhenAnimatedOut().
Referenced by Digikam::SearchFieldGroup::addField().
|
protectedvirtualinherited |
References Digikam::SearchField::m_detailLabel, and Digikam::SearchField::m_label.
Referenced by Digikam::SearchField::setup().
|
overridevirtual |
Implements Digikam::SearchField.
References m_betweenLabel, m_firstBox, m_secondBox, and valueChanged().
|
protectedinherited |
References Digikam::AnimatedClearButton::animateVisible(), Digikam::SearchField::m_clearButton, and Digikam::SearchField::m_valueIsValid.
Referenced by Digikam::SearchFieldRating::firstValueChanged(), Digikam::SearchFieldComboBox::indexChanged(), Digikam::SearchFieldRating::secondValueChanged(), Digikam::SearchFieldMonthDay::slotIndexChanged(), Digikam::SearchFieldCheckBox::slotToggled(), Digikam::SearchFieldChoice::updateComboText(), Digikam::SearchFieldAlbum::updateState(), Digikam::SearchFieldLabels::updateState(), Digikam::SearchFieldRangeInt::valueChanged(), valueChanged(), Digikam::SearchFieldRangeDate::valueChanged(), and Digikam::SearchFieldText::valueChanged().
|
overridevirtual |
Implements Digikam::SearchField.
References m_betweenLabel, m_firstBox, and m_secondBox.
|
overridevirtualinherited |
Implements Digikam::VisibilityObject.
References Digikam::SearchField::m_categoryLabelVisible, Digikam::SearchField::m_clearButton, Digikam::SearchField::m_detailLabel, Digikam::SearchField::m_label, Digikam::AnimatedClearButton::setShallBeShown(), and Digikam::SearchField::setValueWidgetsVisible().
|
virtualinherited |
References Digikam::SearchField::m_name.
Referenced by Digikam::SearchFieldGroup::fieldForName().
|
protectedslot |
References m_firstBox, m_max, m_min, m_secondBox, and Digikam::SearchField::setValidValueState().
Referenced by setupValueWidgets().
|
overridevirtual |
Implements Digikam::SearchField.
References m_firstBox, and m_secondBox.
|
inherited |
|
overridevirtual |
Implements Digikam::SearchField.
References Digikam::SearchXml::Equal, Digikam::SearchXmlWriter::finishField(), Digikam::SearchXml::GreaterThanOrEqual, Digikam::SearchXml::Interval, Digikam::SearchXml::LessThanOrEqual, m_factor, m_firstBox, Digikam::SearchField::m_name, m_secondBox, Digikam::SearchXmlWriter::writeField(), and Digikam::SearchXmlWriter::writeValue().
|
protected |
Referenced by SearchFieldRangeDouble(), setBetweenText(), setupValueWidgets(), and setValueWidgetsVisible().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
Referenced by read(), setFactor(), and write().
|
protected |
Referenced by read(), reset(), SearchFieldRangeDouble(), setBoundary(), setInvertStepping(), setNoValueText(), setNumberPrefixAndSuffix(), setSingleSteps(), setSuggestedInitialValue(), setSuggestedValues(), setupValueWidgets(), setValueWidgetsVisible(), valueChanged(), valueWidgetRects(), and write().
|
protectedinherited |
Referenced by Digikam::SearchField::SearchField(), Digikam::SearchField::setCategoryLabelVisible(), Digikam::SearchField::setCategoryLabelVisibleFromPreviousField(), Digikam::SearchField::setText(), Digikam::SearchField::setupLabels(), Digikam::SearchField::setVisible(), and Digikam::SearchField::widgetRects().
|
protected |
Referenced by reset(), setBoundary(), and valueChanged().
|
protected |
Referenced by reset(), setBoundary(), and valueChanged().
|
protectedinherited |
Referenced by Digikam::SearchField::setFieldName(), Digikam::SearchField::supportsField(), Digikam::SearchFieldText::write(), Digikam::SearchFieldKeyword::write(), Digikam::SearchFieldRangeInt::write(), write(), Digikam::SearchFieldRangeDate::write(), Digikam::SearchFieldChoice::write(), Digikam::SearchFieldAlbum::write(), Digikam::SearchFieldRating::write(), Digikam::SearchFieldComboBox::write(), Digikam::SearchFieldCheckBox::write(), Digikam::SearchFieldLabels::write(), and Digikam::SearchFieldMonthDay::write().
|
protected |
Referenced by read(), reset(), SearchFieldRangeDouble(), setBoundary(), setInvertStepping(), setNoValueText(), setNumberPrefixAndSuffix(), setSingleSteps(), setSuggestedInitialValue(), setSuggestedValues(), setupValueWidgets(), setValueWidgetsVisible(), valueChanged(), valueWidgetRects(), and write().
|
protectedinherited |
Referenced by Digikam::SearchField::SearchField(), and Digikam::SearchField::setValidValueState().