1 /***********************************************************************
5 ***********************************************************************/
10 #include <QtGui/QTabWidget>
11 #include <QtGui/QValidator> // for KDigitValidator
14 #include <kmimetype.h>
16 #include "kdatecombo.h"
34 class KfindTabWidget
: public QTabWidget
39 KfindTabWidget(QWidget
* parent
= 0);
40 virtual ~KfindTabWidget();
42 void initSpecialMimeTypes();
43 void setQuery(class KQuery
* query
);
50 bool isSearchRecursive();
52 void setURL( const KUrl
& url
);
54 virtual QSize
sizeHint() const;
62 void slotSizeBoxChanged(int);
63 void slotEditRegExp();
74 QCheckBox
*useLocateCb
;
78 QCheckBox
*caseSensCb
;
79 QComboBox
*m_usernameBox
;
80 QComboBox
*m_groupBox
;
82 QLineEdit
*metainfoEdit
;
83 QLineEdit
*metainfokeyEdit
;
88 QString
date2String(const QDate
&);
89 QDate
&string2Date(const QString
&, QDate
* );
96 KfDirDialog
*dirselector
;
99 QCheckBox
*findCreated
;
100 QComboBox
*betweenType
;
104 KDateCombo
* fromDate
;
110 QComboBox
*sizeUnitBox
;
112 QCheckBox
*caseContextCb
;
113 QCheckBox
*binaryContextCb
;
114 QCheckBox
*regexpContentCb
;
115 QDialog
*regExpDialog
;
119 KMimeType::List m_types
;
120 QStringList m_ImageTypes
;
121 QStringList m_VideoTypes
;
122 QStringList m_AudioTypes
;
125 class KDigitValidator
: public QValidator
130 KDigitValidator(QWidget
* parent
);
133 QValidator::State
validate(QString
& input
, int &) const;