libyui-qt-pkg
 
Loading...
Searching...
No Matches
YQPkgStatusFilterView.h
1/*
2 Copyright (c) 2000 - 2010 Novell, Inc.
3 Copyright (c) 2021 SUSE LLC
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as
7 published by the Free Software Foundation; either version 2.1 of the
8 License, or (at your option) version 3.0 of the License. This library
9 is distributed in the hope that it will be useful, but WITHOUT ANY
10 WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12 License for more details. You should have received a copy of the GNU
13 Lesser General Public License along with this library; if not, write
14 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
15 Floor, Boston, MA 02110-1301 USA
16*/
17
18
19/*
20 File: YQPkgStatusFilterView.h
21 Author: Stefan Hundhammer <shundhammer.de>
22*/
23
24
25#ifndef YQPkgStatusFilterView_h
26#define YQPkgStatusFilterView_h
27
28#include "YQZypp.h"
29#include <QWidget>
30#include <QRegExp>
31#include <QPixmap>
32#include <QScrollArea>
33
34
35class QComboBox;
36class QCheckBox;
37class QPushButton;
38
39
43class YQPkgStatusFilterView : public QScrollArea
44{
45 Q_OBJECT
46
47public:
48
52 YQPkgStatusFilterView( QWidget * parent );
53
57 virtual ~YQPkgStatusFilterView();
58
63 virtual QSize minimumSizeHint() const;
64
68 bool check( ZyppSel selectable,
69 ZyppObj pkg );
70
71
72public slots:
73
81 void filter();
82
86 void filterIfVisible();
87
88
92 void clear();
93
97 void showTransactions();
98
104
110
114 void showLocks();
115
119 void showInstalled();
120
124 void showNotInstalled();
125
126
127signals:
128
134
138 void filterMatch( ZyppSel selectable,
139 ZyppPkg pkg );
140
145
146
147protected:
148
152 QCheckBox * addStatusCheckBox( QWidget * parent,
153 const QString & label,
154 const QPixmap & icon,
155 bool initiallyChecked );
156
157 // Data members
158
159 QCheckBox * _showAutoDel;
160 QCheckBox * _showAutoInstall;
161 QCheckBox * _showAutoUpdate;
162 QCheckBox * _showDel;
163 QCheckBox * _showInstall;
164 QCheckBox * _showKeepInstalled;
165 QCheckBox * _showNoInst;
166 QCheckBox * _showTaboo;
167 QCheckBox * _showProtected;
168 QCheckBox * _showUpdate;
169
170 QPushButton * _refreshButton;
171};
172
173
174
175#endif // ifndef YQPkgStatusFilterView_h
void filter()
Definition YQPkgStatusFilterView.cc:179
void showManualTransactions()
Definition YQPkgStatusFilterView.cc:267
bool check(ZyppSel selectable, ZyppObj pkg)
Definition YQPkgStatusFilterView.cc:207
void showTransactions()
Definition YQPkgStatusFilterView.cc:260
virtual QSize minimumSizeHint() const
Definition YQPkgStatusFilterView.cc:164
void showAutoTransactions()
Definition YQPkgStatusFilterView.cc:275
void showInstalled()
Definition YQPkgStatusFilterView.cc:290
QCheckBox * addStatusCheckBox(QWidget *parent, const QString &label, const QPixmap &icon, bool initiallyChecked)
Definition YQPkgStatusFilterView.cc:132
void clear()
Definition YQPkgStatusFilterView.cc:245
void filterIfVisible()
Definition YQPkgStatusFilterView.cc:171
YQPkgStatusFilterView(QWidget *parent)
Definition YQPkgStatusFilterView.cc:51
void showLocks()
Definition YQPkgStatusFilterView.cc:283
void showNotInstalled()
Definition YQPkgStatusFilterView.cc:296
void filterMatch(ZyppSel selectable, ZyppPkg pkg)
virtual ~YQPkgStatusFilterView()
Definition YQPkgStatusFilterView.cc:124