libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgSecondaryFilterView.h
1/*
2 Copyright (c) 2018-2021 SUSE LLC
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2.1 of the
7 License, or (at your option) version 3.0 of the License. This library
8 is distributed in the hope that it will be useful, but WITHOUT ANY
9 WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11 License for more details. You should have received a copy of the GNU
12 Lesser General Public License along with this library; if not, write
13 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14 Floor, Boston, MA 02110-1301 USA
15*/
16
17
18#ifndef YQPkgSecondaryFilterView_h
19#define YQPkgSecondaryFilterView_h
20
21#include "YQZypp.h"
22#include <QWidget>
23
24class QY2ComboTabWidget;
27
28
32class YQPkgSecondaryFilterView : public QWidget
33{
34 Q_OBJECT
35
36public:
37
43 YQPkgSecondaryFilterView( QWidget * parent );
44
49
55 void init(QWidget * primary_widget);
56
57signals:
58
64
69 void filterMatch( ZyppSel selectable,
70 ZyppPkg pkg );
71
76 void filterNearMatch( ZyppSel selectable,
77 ZyppPkg pkg );
78
83
84public slots:
85
93 void filter();
94
98 void filterIfVisible();
99
100
101protected slots:
102
107 void primaryFilterMatch( ZyppSel selectable,
108 ZyppPkg pkg );
109
114 void primaryFilterNearMatch( ZyppSel selectable,
115 ZyppPkg pkg );
116
117protected:
118
122 QWidget * layoutSecondaryFilters( QWidget * parent, QWidget * primary_widget );
123
127 bool secondaryFilterMatch( ZyppSel selectable,
128 ZyppPkg pkg );
129
130 virtual void primaryFilter() {}
131 virtual void primaryFilterIfVisible() {}
132
133
134 // Data members
135 QY2ComboTabWidget * _secondaryFilters;
136 QWidget * _allPackages;
137 QWidget *_unmaintainedPackages;
138 YQPkgSearchFilterView * _searchFilterView;
139 YQPkgStatusFilterView * _statusFilterView;
140};
141
142#endif // ifndef YQPkgSecondaryFilterView_h
Filter view for searching within packages.
Definition YQPkgSearchFilterView.h:47
Definition YQPkgSecondaryFilterView.h:33
void primaryFilterMatch(ZyppSel selectable, ZyppPkg pkg)
Definition YQPkgSecondaryFilterView.cc:158
virtual ~YQPkgSecondaryFilterView()
Definition YQPkgSecondaryFilterView.cc:79
void init(QWidget *primary_widget)
Definition YQPkgSecondaryFilterView.cc:43
YQPkgSecondaryFilterView(QWidget *parent)
Definition YQPkgSecondaryFilterView.cc:38
QWidget * layoutSecondaryFilters(QWidget *parent, QWidget *primary_widget)
Definition YQPkgSecondaryFilterView.cc:85
bool secondaryFilterMatch(ZyppSel selectable, ZyppPkg pkg)
Definition YQPkgSecondaryFilterView.cc:173
void primaryFilterNearMatch(ZyppSel selectable, ZyppPkg pkg)
Definition YQPkgSecondaryFilterView.cc:165
void filter()
Definition YQPkgSecondaryFilterView.cc:148
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
void filterIfVisible()
Definition YQPkgSecondaryFilterView.cc:153
void filterNearMatch(ZyppSel selectable, ZyppPkg pkg)
Filter view for packages that made problems during update.
Definition YQPkgStatusFilterView.h:44