00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef YQPkgStatusFilterView_h
00023 #define YQPkgStatusFilterView_h
00024
00025 #include <qvbox.h>
00026 #include <qregexp.h>
00027 #include <y2pm/PMPackage.h>
00028
00029
00030 class QComboBox;
00031 class QCheckBox;
00032 class QPushButton;
00033
00034
00038 class YQPkgStatusFilterView : public QVBox
00039 {
00040 Q_OBJECT
00041
00042 public:
00043
00047 YQPkgStatusFilterView( QWidget * parent );
00048
00052 virtual ~YQPkgStatusFilterView();
00053
00058 virtual QSize minimumSizeHint() const;
00059
00060
00061 public slots:
00062
00070 void filter();
00071
00075 void filterIfVisible();
00076
00077
00078 signals:
00079
00084 void filterStart();
00085
00089 void filterMatch( PMPackagePtr pkg );
00090
00094 void filterFinished();
00095
00096
00097 protected:
00098
00102 bool check( PMPackagePtr pkg );
00103
00107 QCheckBox * addStatusCheckBox( QWidget * parent,
00108 const QString & label,
00109 const QPixmap & icon,
00110 bool initiallyChecked );
00111
00112
00113
00114 QCheckBox * _showAutoDel;
00115 QCheckBox * _showAutoInstall;
00116 QCheckBox * _showAutoUpdate;
00117 QCheckBox * _showDel;
00118 QCheckBox * _showInstall;
00119 QCheckBox * _showKeepInstalled;
00120 QCheckBox * _showNoInst;
00121 QCheckBox * _showTaboo;
00122 QCheckBox * _showProtected;
00123 QCheckBox * _showUpdate;
00124
00125 QPushButton * _refreshButton;
00126 };
00127
00128
00129
00130 #endif // ifndef YQPkgStatusFilterView_h