00001 #ifndef __KMTRACE_LEAKS_FIND_HH__ 00002 #define __KMTRACE_LEAKS_FIND_HH__ 00003 00004 // Qt includes 00005 #include <qwidget.h> 00006 #include <qstring.h> 00007 #include <qbutton.h> 00008 #include <qvbuttongroup.h> 00009 #include <qcheckbox.h> 00010 00011 // KDE includes 00012 #include <kdialogbase.h> 00013 #include <kcombobox.h> 00014 00033 class KMtraceLeaksFindDialog : public KDialogBase 00034 { 00035 Q_OBJECT 00036 Q_PROPERTY( int type READ getType WRITE setType ) 00037 Q_PROPERTY( QString text READ getText WRITE setText ) 00038 Q_PROPERTY( bool caseSensitivity READ case_sensitive WRITE setCaseSensitive ) 00039 public: 00040 00041 KMtraceLeaksFindDialog( QWidget *parent = 0, const char *name=0, bool modal=true); 00042 ~KMtraceLeaksFindDialog(); 00043 00044 int getType() const; 00045 void setType(int index); 00046 QString getText() const; 00047 void setText(QString string); 00048 void setCaseSensitive( bool b ); 00049 bool case_sensitive() const; 00050 00055 KHistoryCombo *searchCombo() const; 00056 00057 protected slots: 00058 void slotCancel( void ); 00059 void slotUser1( void ); 00060 void textSearchChanged ( const QString & ); 00061 00062 protected: 00063 QVButtonGroup* group; 00064 00065 private: 00066 QCheckBox *sensitive; 00067 00068 virtual void done(int i ) { KDialogBase::done(i); } 00069 00070 signals: 00071 00072 void search(); 00073 void done(); 00074 protected: 00075 virtual void virtual_hook( int id, void* data ); 00076 private: 00077 class KMtraceLeaksFindPrivate; 00078 KMtraceLeaksFindPrivate *d; 00079 }; 00080 00081 #endif