kleopatra
searchbar.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef __KLEOPATRA_VIEW_SEARCHBAR_H__
00034 #define __KLEOPATRA_VIEW_SEARCHBAR_H__
00035
00036 #include <QWidget>
00037
00038 #include <utils/pimpl_ptr.h>
00039
00040 #include <boost/shared_ptr.hpp>
00041
00042 namespace Kleo {
00043
00044 class KeyFilter;
00045
00046 class SearchBar : public QWidget {
00047 Q_OBJECT
00048 public:
00049 explicit SearchBar( QWidget * parent=0, Qt::WindowFlags f=0 );
00050 ~SearchBar();
00051
00052 QString stringFilter() const;
00053 const boost::shared_ptr<KeyFilter> & keyFilter() const;
00054
00055 public Q_SLOTS:
00056 void setStringFilter( const QString & text );
00057 void setKeyFilter( const boost::shared_ptr<Kleo::KeyFilter> & filter );
00058
00059 void setChangeStringFilterEnabled( bool enable );
00060 void setChangeKeyFilterEnabled( bool enable );
00061
00062 Q_SIGNALS:
00063 void stringFilterChanged( const QString & text );
00064 void keyFilterChanged( const boost::shared_ptr<Kleo::KeyFilter> & filter );
00065
00066 private:
00067 class Private;
00068 kdtools::pimpl_ptr<Private> d;
00069 Q_PRIVATE_SLOT( d, void slotKeyFilterChanged(int) )
00070 };
00071
00072 }
00073
00074 #endif // __KLEOPATRA_VIEW_SEARCHBAR_H__