1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQPkgRepoFilterView.h
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQPkgRepoFilterView_h
21 #define YQPkgRepoFilterView_h
28 class QY2ComboTabWidget;
29 class YQPkgRpmGroupTagsFilterView;
30 class YQPkgSearchFilterView;
31 class YQPkgStatusFilterView;
34 class YQPkgRepoFilterView : public QWidget
43 YQPkgRepoFilterView( QWidget * parent );
48 virtual ~YQPkgRepoFilterView();
54 * Emitted when the filtering starts. Use this to clear package lists
55 * etc. prior to adding new entries.
60 * Emitted during filtering for each pkg that matches the filter
61 * and the candidate package comes from the respective repository
63 void filterMatch( ZyppSel selectable,
67 * Emitted during filtering for each pkg that matches the filter
68 * and the candidate package does not come from the respective repository
70 void filterNearMatch( ZyppSel selectable,
74 * Emitted when filtering is finished.
76 void filterFinished();
82 * Filter according to the view's rules and current selection.
83 * Emits those signals:
85 * filterMatch() for each pkg that matches the filter
91 * Same as filter(), but only if this widget is currently visible.
93 void filterIfVisible();
99 * Propagate a filter match from the primary filter
100 * and appy any selected secondary filter(s) to it
102 void primaryFilterMatch( ZyppSel selectable,
106 * Propagate a filter near match from the primary filter
107 * and appy any selected secondary filter(s) to it
109 void primaryFilterNearMatch( ZyppSel selectable,
116 * Widget layout for the secondary filters
118 QWidget * layoutSecondaryFilters( QWidget * parent );
121 * Check if pkg matches the the currently selected secondary filter
123 bool secondaryFilterMatch( ZyppSel selectable,
129 YQPkgRepoList * _repoList;
130 QY2ComboTabWidget * _secondaryFilters;
131 QWidget * _allPackages;
132 YQPkgRpmGroupTagsFilterView * _rpmGroupTagsFilterView;
133 YQPkgSearchFilterView * _searchFilterView;
134 YQPkgStatusFilterView * _statusFilterView;
139 #endif // ifndef YQPkgRepoFilterView_h