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
36 * @short Filter view for packages that made problems during update
38 class YQPkgStatusFilterView : public Q3VBox
47 YQPkgStatusFilterView( QWidget * parent );
52 virtual ~YQPkgStatusFilterView();
55 * Returns the minimum size required for this widget.
56 * Inherited from QWidget.
58 virtual QSize minimumSizeHint() const;
61 * Check if pkg matches the filter criteria.
63 bool check( ZyppSel selectable,
70 * Filter according to the view's rules and current selection.
71 * Emits those signals:
73 * filterMatch() for each pkg that matches the filter
79 * Same as filter(), but only if this widget is currently visible.
81 void filterIfVisible();
85 * Reset all check boxes (set them all to "off")
90 * Set up the check boxes so all pending transactions are displayed.
92 void showTransactions();
95 * Set up the check boxes so pending manual transactions (no "auto" states)
98 void showManualTransactions();
101 * Set up the check boxes so pending automatic transactions (the "auto" states)
104 void showAutoTransactions();
107 * Set the check boxes for locked packages ("Taboo" and "Protected") to "on".
112 * Set the check box for installed packages to "on".
114 void showInstalled();
117 * Set the check box for not installed packages to "on".
119 void showNotInstalled();
125 * Emitted when the filtering starts. Use this to clear package lists
126 * etc. prior to adding new entries.
131 * Emitted during filtering for each pkg that matches the filter.
133 void filterMatch( ZyppSel selectable,
137 * Emitted when filtering is finished.
139 void filterFinished();
147 QCheckBox * addStatusCheckBox( QWidget * parent,
148 const QString & label,
149 const QPixmap & icon,
150 bool initiallyChecked );
154 QCheckBox * _showAutoDel;
155 QCheckBox * _showAutoInstall;
156 QCheckBox * _showAutoUpdate;
157 QCheckBox * _showDel;
158 QCheckBox * _showInstall;
159 QCheckBox * _showKeepInstalled;
160 QCheckBox * _showNoInst;
161 QCheckBox * _showTaboo;
162 QCheckBox * _showProtected;
163 QCheckBox * _showUpdate;
165 QPushButton * _refreshButton;
170 #endif // ifndef YQPkgStatusFilterView_h