25 #ifndef DIGIKAM_SEARCH_FIELDS_H
26 #define DIGIKAM_SEARCH_FIELDS_H
53 class DAdjustableLabel;
54 class AbstractAlbumTreeViewSelectComboBox;
55 class SearchFieldGroup;
56 class SqueezedComboBox;
58 class ChoiceSearchModel;
59 class ChoiceSearchComboBox;
61 class PickLabelFilter;
62 class ColorLabelFilter;
83 void setup(QGridLayout*
const layout,
int row = -1);
90 virtual void setText(
const QString& label,
const QString& detailLabel);
109 virtual void setupLabels(QGridLayout* layout,
int line);
147 void reset()
override;
197 void reset()
override;
234 void setBoundary(
double min,
double max,
int decimals,
double step);
245 void reset()
override;
288 void setBoundary(
const QDateTime& min,
const QDateTime& max);
293 void reset()
override;
328 void setChoice(
const QMap<int, QString>& map);
329 void setChoice(
const QStringList& choice);
335 void reset()
override;
351 #if (QT_VERSION > QT_VERSION_CHECK(5, 99, 0))
402 void reset()
override;
435 void reset()
override;
469 void reset()
override;
497 void reset()
override;
552 void reset()
override;
579 void reset()
override;
Definition: albumselectcombobox.h:127
Definition: abstractalbummodel.h:358
Definition: albumselectcombobox.h:167
Abstract base class for all album types.
Definition: album.h:67
Definition: choicesearchutilities.h:201
Definition: choicesearchutilities.h:43
Definition: colorlabelfilter.h:42
Definition: searchutilities.h:108
Definition: searchutilities.h:164
Definition: ddateedit.h:52
Definition: picklabelfilter.h:42
Definition: ratingsearchutilities.h:49
Definition: searchfields.h:377
void updateState()
Definition: searchfields_album.cpp:81
TagTreeViewSelectComboBox * m_tagComboBox
Definition: searchfields.h:414
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_album.cpp:86
Type
Definition: searchfields.h:383
@ TypeAlbum
Definition: searchfields.h:384
@ TypeTag
Definition: searchfields.h:385
void reset() override
Definition: searchfields_album.cpp:194
SearchFieldAlbum(QObject *const parent, Type type)
Definition: searchfields_album.cpp:30
SqueezedComboBox * m_operation
Definition: searchfields.h:415
AbstractCheckableAlbumModel * m_model
Definition: searchfields.h:417
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_album.cpp:204
AlbumTreeViewSelectComboBox * m_albumComboBox
Definition: searchfields.h:413
Type m_type
Definition: searchfields.h:416
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_album.cpp:41
void write(SearchXmlWriter &writer) override
Definition: searchfields_album.cpp:143
Operation
Definition: searchfields.h:389
@ All
Definition: searchfields.h:390
@ InTree
Definition: searchfields.h:392
@ OneOf
Definition: searchfields.h:391
QWidget * m_wrapperBox
Definition: searchfields.h:412
QList< QRect > valueWidgetRects() const override
Definition: searchfields_album.cpp:209
Definition: searchfields.h:485
void write(SearchXmlWriter &writer) override
Definition: searchfields_checkbox.cpp:55
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_checkbox.cpp:75
QList< QRect > valueWidgetRects() const override
Definition: searchfields_checkbox.cpp:85
QString m_text
Definition: searchfields.h:508
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_checkbox.cpp:36
void setLabel(const QString &text)
Definition: searchfields_checkbox.cpp:45
SearchFieldCheckBox(QObject *const parent)
Definition: searchfields_checkbox.cpp:30
QCheckBox * m_checkBox
Definition: searchfields.h:507
void reset() override
Definition: searchfields_checkbox.cpp:80
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_checkbox.cpp:64
void slotToggled(bool checked)
Definition: searchfields_checkbox.cpp:93
Definition: searchfields.h:321
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_choice.cpp:43
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_choice.cpp:236
void updateComboText()
Definition: searchfields_choice.cpp:95
QString m_anyText
Definition: searchfields.h:357
void write(SearchXmlWriter &writer) override
Definition: searchfields_choice.cpp:166
ChoiceSearchModel * m_model
Definition: searchfields.h:358
SearchFieldChoice(QObject *const parent)
Definition: searchfields_choice.cpp:30
void setAnyText(const QString &anyText)
Definition: searchfields_choice.cpp:85
QList< QRect > valueWidgetRects() const override
Definition: searchfields_choice.cpp:241
void checkStateChanged()
Definition: searchfields_choice.cpp:90
void reset() override
Definition: searchfields_choice.cpp:231
QVariant::Type m_type
Definition: searchfields.h:354
ChoiceSearchComboBox * m_comboBox
Definition: searchfields.h:349
void setChoice(const QMap< int, QString > &map)
Definition: searchfields_choice.cpp:65
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_choice.cpp:117
Definition: searchfields.h:514
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_colordepth.cpp:35
SearchFieldColorDepth(QObject *const parent)
Definition: searchfields_colordepth.cpp:30
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_colordepth.cpp:45
Definition: searchfields.h:460
QComboBox * m_comboBox
Definition: searchfields.h:479
QList< QRect > valueWidgetRects() const override
Definition: searchfields_combobox.cpp:73
void indexChanged(int)
Definition: searchfields_combobox.cpp:81
SearchFieldComboBox(QObject *const parent)
Definition: searchfields_combobox.cpp:30
void reset() override
Definition: searchfields_combobox.cpp:68
void write(SearchXmlWriter &writer) override
Definition: searchfields_combobox.cpp:46
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_combobox.cpp:63
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_combobox.cpp:36
Definition: searchfieldgroup.h:52
Definition: searchfields.h:162
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_keyword.cpp:35
SearchFieldKeyword(QObject *const parent)
Definition: searchfields_keyword.cpp:30
void write(SearchXmlWriter &writer) override
Definition: searchfields_keyword.cpp:41
Definition: searchfields.h:542
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_labels.cpp:152
PickLabelFilter * m_pickLabelFilter
Definition: searchfields.h:562
QList< QRect > valueWidgetRects() const override
Definition: searchfields_labels.cpp:158
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_labels.cpp:37
void write(SearchXmlWriter &writer) override
Definition: searchfields_labels.cpp:101
SearchFieldLabels(QObject *const parent)
Definition: searchfields_labels.cpp:30
ColorLabelFilter * m_colorLabelFilter
Definition: searchfields.h:563
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_labels.cpp:62
void updateState()
Definition: searchfields_labels.cpp:57
void reset() override
Definition: searchfields_labels.cpp:146
Definition: searchfields.h:569
QComboBox * m_dayBox
Definition: searchfields.h:591
SearchFieldMonthDay(QObject *const parent)
Definition: searchfields_monthday.cpp:30
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_monthday.cpp:110
QList< QRect > valueWidgetRects() const override
Definition: searchfields_monthday.cpp:117
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_monthday.cpp:38
QComboBox * m_monthBox
Definition: searchfields.h:590
void write(SearchXmlWriter &writer) override
Definition: searchfields_monthday.cpp:91
void reset() override
Definition: searchfields_monthday.cpp:104
QLabel * m_dayLabel
Definition: searchfields.h:589
void slotIndexChanged()
Definition: searchfields_monthday.cpp:126
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_monthday.cpp:75
Definition: searchfields.h:528
SearchFieldPageOrientation(QObject *const parent)
Definition: searchfields_pageorientation.cpp:30
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_pageorientation.cpp:45
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_pageorientation.cpp:35
Definition: searchfields.h:272
QLabel * m_betweenLabel
Definition: searchfields.h:307
Type
Definition: searchfields.h:278
@ DateOnly
Definition: searchfields.h:279
@ DateTime
Definition: searchfields.h:280
void setBetweenText(const QString &between)
Definition: searchfields_rangedate.cpp:81
DDateEdit * m_firstDateEdit
Definition: searchfields.h:304
DDateEdit * m_secondDateEdit
Definition: searchfields.h:306
QTimeEdit * m_secondTimeEdit
Definition: searchfields.h:305
void write(SearchXmlWriter &writer) override
Definition: searchfields_rangedate.cpp:167
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_rangedate.cpp:41
void reset() override
Definition: searchfields_rangedate.cpp:243
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_rangedate.cpp:86
QTimeEdit * m_firstTimeEdit
Definition: searchfields.h:303
Type m_type
Definition: searchfields.h:309
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_rangedate.cpp:270
void valueChanged()
Definition: searchfields_rangedate.cpp:309
QList< QRect > valueWidgetRects() const override
Definition: searchfields_rangedate.cpp:289
void setBoundary(const QDateTime &min, const QDateTime &max)
Definition: searchfields_rangedate.cpp:262
SearchFieldRangeDate(QObject *const parent, Type type)
Definition: searchfields_rangedate.cpp:30
Definition: searchfields.h:224
CustomStepsDoubleSpinBox * m_firstBox
Definition: searchfields.h:258
void setSuggestedValues(const QList< double > &values)
Definition: searchfields_rangedouble.cpp:172
void valueChanged()
Definition: searchfields_rangedouble.cpp:196
void setSuggestedInitialValue(double initialValue)
Definition: searchfields_rangedouble.cpp:178
void setBoundary(double min, double max, int decimals, double step)
Definition: searchfields_rangedouble.cpp:151
void setBetweenText(const QString &text)
Definition: searchfields_rangedouble.cpp:132
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_rangedouble.cpp:238
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_rangedouble.cpp:69
void write(SearchXmlWriter &writer) override
Definition: searchfields_rangedouble.cpp:95
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_rangedouble.cpp:43
QList< QRect > valueWidgetRects() const override
Definition: searchfields_rangedouble.cpp:245
void setInvertStepping(bool invert)
Definition: searchfields_rangedouble.cpp:190
QLabel * m_betweenLabel
Definition: searchfields.h:260
SearchFieldRangeDouble(QObject *const parent)
Definition: searchfields_rangedouble.cpp:30
CustomStepsDoubleSpinBox * m_secondBox
Definition: searchfields.h:259
void setFactor(double factor)
Definition: searchfields_rangedouble.cpp:167
void setNoValueText(const QString &text)
Definition: searchfields_rangedouble.cpp:137
void setNumberPrefixAndSuffix(const QString &prefix, const QString &suffix)
Definition: searchfields_rangedouble.cpp:143
double m_min
Definition: searchfields.h:255
double m_max
Definition: searchfields.h:256
void reset() override
Definition: searchfields_rangedouble.cpp:230
double m_factor
Definition: searchfields.h:257
void setSingleSteps(double smaller, double larger)
Definition: searchfields_rangedouble.cpp:184
Definition: searchfields.h:176
void enableFractionMagic(const QString &prefix)
Definition: searchfields_rangeint.cpp:269
void write(SearchXmlWriter &writer) override
Definition: searchfields_rangeint.cpp:156
int m_min
Definition: searchfields.h:207
void setSingleSteps(int smaller, int larger)
Definition: searchfields_rangeint.cpp:292
void setNoValueText(const QString &text)
int m_max
Definition: searchfields.h:208
QLabel * m_betweenLabel
Definition: searchfields.h:212
QList< QRect > valueWidgetRects() const override
Definition: searchfields_rangeint.cpp:387
void setSuggestedValues(const QList< int > &values)
Definition: searchfields_rangeint.cpp:280
bool m_reciprocal
Definition: searchfields.h:209
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_rangeint.cpp:380
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_rangeint.cpp:43
void setNumberPrefixAndSuffix(const QString &prefix, const QString &suffix)
Definition: searchfields_rangeint.cpp:239
void setBoundary(int min, int max, int step=1)
Definition: searchfields_rangeint.cpp:247
CustomStepsIntSpinBox * m_firstBox
Definition: searchfields.h:210
SearchFieldRangeInt(QObject *const parent)
Definition: searchfields_rangeint.cpp:30
void reset() override
Definition: searchfields_rangeint.cpp:372
void setBetweenText(const QString &text)
Definition: searchfields_rangeint.cpp:234
void valueChanged()
Definition: searchfields_rangeint.cpp:304
void setSuggestedInitialValue(int initialValue)
Definition: searchfields_rangeint.cpp:286
void setInvertStepping(bool invert)
Definition: searchfields_rangeint.cpp:298
CustomStepsIntSpinBox * m_secondBox
Definition: searchfields.h:211
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_rangeint.cpp:68
Definition: searchfields.h:423
void reset() override
Definition: searchfields_rating.cpp:188
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_rating.cpp:51
void setBetweenText(const QString &text)
Definition: searchfields_rating.cpp:139
SearchFieldRating(QObject *const parent)
Definition: searchfields_rating.cpp:30
QLabel * m_betweenLabel
Definition: searchfields.h:448
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_rating.cpp:38
QList< QRect > valueWidgetRects() const override
Definition: searchfields_rating.cpp:201
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_rating.cpp:194
void secondValueChanged()
Definition: searchfields_rating.cpp:170
RatingComboBox * m_secondBox
Definition: searchfields.h:447
void write(SearchXmlWriter &writer) override
Definition: searchfields_rating.cpp:98
RatingComboBox * m_firstBox
Definition: searchfields.h:446
void firstValueChanged()
Definition: searchfields_rating.cpp:144
Definition: searchfields.h:136
QLineEdit * m_edit
Definition: searchfields.h:156
void reset() override
Definition: searchfields_text.cpp:63
void write(SearchXmlWriter &writer) override
Definition: searchfields_text.cpp:51
SearchFieldText(QObject *const parent)
Definition: searchfields_text.cpp:30
void valueChanged(const QString &text)
Definition: searchfields_text.cpp:81
void setValueWidgetsVisible(bool visible) override
Definition: searchfields_text.cpp:68
void read(SearchXmlCachingReader &reader) override
Definition: searchfields_text.cpp:45
void setupValueWidgets(QGridLayout *layout, int row, int column) override
Definition: searchfields_text.cpp:36
QList< QRect > valueWidgetRects() const override
Definition: searchfields_text.cpp:73
Definition: searchfields.h:66
virtual bool supportsField(const QString &fieldName)
Definition: searchfields.cpp:110
QList< QRect > widgetRects(WidgetRectType=ValueWidgetRectsOnly) const
Definition: searchfields.cpp:156
void setValidValueState(bool valueIsValid)
Definition: searchfields.cpp:176
virtual QList< QRect > valueWidgetRects() const =0
void setup(QGridLayout *const layout, int row=-1)
Definition: searchfields.cpp:40
bool isVisible() override
Definition: searchfields.cpp:123
bool m_valueIsValid
Definition: searchfields.h:124
QString m_name
Definition: searchfields.h:116
void setVisible(bool visible) override
Definition: searchfields.cpp:115
void clearButtonClicked()
Definition: searchfields.cpp:171
void setCategoryLabelVisibleFromPreviousField(SearchField *const previousField)
Definition: searchfields.cpp:144
void setCategoryLabelVisible(bool visible)
Definition: searchfields.cpp:130
virtual void setupLabels(QGridLayout *layout, int line)
Definition: searchfields.cpp:91
void setFieldName(const QString &fieldName)
Definition: searchfields.cpp:99
static SearchField * createField(const QString &fieldName, SearchFieldGroup *const parent)
Definition: searchfields_createfield.cpp:30
QLabel * m_label
Definition: searchfields.h:118
virtual void read(SearchXmlCachingReader &reader)=0
AnimatedClearButton * m_clearButton
Definition: searchfields.h:121
virtual void setText(const QString &label, const QString &detailLabel)
Definition: searchfields.cpp:104
WidgetRectType
Definition: searchfields.h:72
@ LabelAndValueWidgetRects
Definition: searchfields.h:73
@ ValueWidgetRectsOnly
Definition: searchfields.h:74
SearchField(QObject *const parent)
Definition: searchfields.cpp:30
virtual void write(SearchXmlWriter &writer)=0
virtual void setValueWidgetsVisible(bool visible)=0
QLabel * m_detailLabel
Definition: searchfields.h:119
virtual void setupValueWidgets(QGridLayout *layout, int row, int column)=0
bool m_categoryLabelVisible
Definition: searchfields.h:123
Definition: coredbsearchxml.h:376
Definition: coredbsearchxml.h:224
Definition: squeezedcombobox.h:51
Definition: albumselectcombobox.h:183
Definition: visibilitycontroller.h:40
Definition: piwigotalker.h:48
QStringView prefix
Definition: itemviewutilities.cpp:593
QStringView suffix
Definition: itemviewutilities.cpp:594
Type
Definition: coredbconstants.h:44
Definition: datefolderview.cpp:43
Type
Definition: gpsitemcontainer.h:45