digiKam
|
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 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 |
CustomStepsIntSpinBox * | m_firstBox |
QLabel * | m_label |
int | m_max |
int | m_min |
QString | m_name |
bool | m_reciprocal |
CustomStepsIntSpinBox * | 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(), 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().
void Digikam::SearchFieldRangeInt::enableFractionMagic | ( | const QString & | prefix | ) |
|
overridevirtualinherited |
Implements Digikam::VisibilityObject.
References Digikam::SearchField::m_detailLabel.
Referenced by Digikam::SearchFieldGroup::areaOfMarkedFields().
|
overridevirtual |
Implements Digikam::SearchField.
References Digikam::SearchXml::Equal, Digikam::SearchXmlCachingReader::fieldRelation(), Digikam::SearchXml::GreaterThan, Digikam::SearchXml::GreaterThanOrEqual, Digikam::SearchXml::Interval, Digikam::SearchXml::IntervalOpen, Digikam::SearchXml::LessThan, Digikam::SearchXml::LessThanOrEqual, m_firstBox, m_reciprocal, m_secondBox, Digikam::CustomStepsIntSpinBox::setFractionMagicValue(), Digikam::SearchXmlCachingReader::valueToDouble(), Digikam::SearchXmlCachingReader::valueToDoubleList(), Digikam::SearchXmlCachingReader::valueToInt(), and Digikam::SearchXmlCachingReader::valueToIntList().
|
overridevirtual |
Implements Digikam::SearchField.
References m_firstBox, m_max, m_min, m_secondBox, and Digikam::CustomStepsIntSpinBox::reset().
void Digikam::SearchFieldRangeInt::setBetweenText | ( | const QString & | text | ) |
References m_betweenLabel.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeInt::setBoundary | ( | int | min, |
int | max, | ||
int | step = 1 |
||
) |
References m_firstBox, m_max, m_min, m_reciprocal, and m_secondBox.
Referenced by Digikam::SearchField::createField().
|
inherited |
|
inherited |
References Digikam::SearchField::m_label, and Digikam::SearchField::setCategoryLabelVisible().
Referenced by Digikam::SearchFieldGroup::addField().
|
inherited |
References Digikam::SearchField::m_name.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeInt::setInvertStepping | ( | bool | invert | ) |
References m_firstBox, m_secondBox, and Digikam::CustomStepsIntSpinBox::setInvertStepping().
void Digikam::SearchFieldRangeInt::setNoValueText | ( | const QString & | text | ) |
void Digikam::SearchFieldRangeInt::setNumberPrefixAndSuffix | ( | const QString & | prefix, |
const QString & | suffix | ||
) |
References m_firstBox, m_secondBox, prefix, and suffix.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeInt::setSingleSteps | ( | int | smaller, |
int | larger | ||
) |
References m_firstBox, m_secondBox, and Digikam::CustomStepsIntSpinBox::setSingleSteps().
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeInt::setSuggestedInitialValue | ( | int | initialValue | ) |
References m_firstBox, m_secondBox, Digikam::CustomStepsIntSpinBox::setSuggestedInitialValue(), and value.
Referenced by Digikam::SearchField::createField().
void Digikam::SearchFieldRangeInt::setSuggestedValues | ( | const QList< int > & | values | ) |
References m_firstBox, m_secondBox, and Digikam::CustomStepsIntSpinBox::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(), valueChanged(), Digikam::SearchFieldRangeDouble::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_reciprocal, 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::CustomStepsIntSpinBox::fractionMagicValue(), Digikam::SearchXml::GreaterThanOrEqual, Digikam::SearchXml::Interval, Digikam::SearchXml::LessThanOrEqual, m_firstBox, Digikam::SearchField::m_name, m_reciprocal, m_secondBox, Digikam::SearchXmlWriter::writeField(), and Digikam::SearchXmlWriter::writeValue().
|
protected |
Referenced by SearchFieldRangeInt(), setBetweenText(), setupValueWidgets(), and setValueWidgetsVisible().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
Referenced by enableFractionMagic(), read(), reset(), SearchFieldRangeInt(), setBoundary(), setInvertStepping(), 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(), write(), Digikam::SearchFieldRangeDouble::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 enableFractionMagic(), read(), setBoundary(), valueChanged(), and write().
|
protected |
Referenced by enableFractionMagic(), read(), reset(), SearchFieldRangeInt(), setBoundary(), setInvertStepping(), setNumberPrefixAndSuffix(), setSingleSteps(), setSuggestedInitialValue(), setSuggestedValues(), setupValueWidgets(), setValueWidgetsVisible(), valueChanged(), valueWidgetRects(), and write().
|
protectedinherited |
Referenced by Digikam::SearchField::SearchField(), and Digikam::SearchField::setValidValueState().