1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQPkgStatusFilterView.h
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQPkgStatusFilterView_h
21 #define YQPkgStatusFilterView_h
35 * @short Filter view for packages that made problems during update
37 class YQPkgStatusFilterView : public QWidget
46 YQPkgStatusFilterView( QWidget * parent );
51 virtual ~YQPkgStatusFilterView();
54 * Returns the minimum size required for this widget.
55 * Inherited from QWidget.
57 virtual QSize minimumSizeHint() const;
60 * Check if pkg matches the filter criteria.
62 bool check( ZyppSel selectable,
69 * Filter according to the view's rules and current selection.
70 * Emits those signals:
72 * filterMatch() for each pkg that matches the filter
78 * Same as filter(), but only if this widget is currently visible.
80 void filterIfVisible();
84 * Reset all check boxes (set them all to "off")
89 * Set up the check boxes so all pending transactions are displayed.
91 void showTransactions();
94 * Set up the check boxes so pending manual transactions (no "auto" states)
97 void showManualTransactions();
100 * Set up the check boxes so pending automatic transactions (the "auto" states)
103 void showAutoTransactions();
106 * Set the check boxes for locked packages ("Taboo" and "Protected") to "on".
111 * Set the check box for installed packages to "on".
113 void showInstalled();
116 * Set the check box for not installed packages to "on".
118 void showNotInstalled();
124 * Emitted when the filtering starts. Use this to clear package lists
125 * etc. prior to adding new entries.
130 * Emitted during filtering for each pkg that matches the filter.
132 void filterMatch( ZyppSel selectable,
136 * Emitted when filtering is finished.
138 void filterFinished();
146 QCheckBox * addStatusCheckBox( QWidget * parent,
147 const QString & label,
148 const QPixmap & icon,
149 bool initiallyChecked );
153 QCheckBox * _showAutoDel;
154 QCheckBox * _showAutoInstall;
155 QCheckBox * _showAutoUpdate;
156 QCheckBox * _showDel;
157 QCheckBox * _showInstall;
158 QCheckBox * _showKeepInstalled;
159 QCheckBox * _showNoInst;
160 QCheckBox * _showTaboo;
161 QCheckBox * _showProtected;
162 QCheckBox * _showUpdate;
164 QPushButton * _refreshButton;
169 #endif // ifndef YQPkgStatusFilterView_h