libyui-qt-pkg
Loading...
Searching...
No Matches
YQPkgDescriptionDialog.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: YQPkgDescriptionDialog.h
21 Author: Stefan Hundhammer <shundhammer.de>
22*/
23
24
25#ifndef YQPkgDescriptionDialog_h
26#define YQPkgDescriptionDialog_h
27
28#include <qdialog.h>
29
30
31class YQPkgList;
33
34
38class YQPkgDescriptionDialog : public QDialog
39{
40 Q_OBJECT
41
42public:
43
47 static void showDescriptionDialog( const QString & pkgName );
48
54 virtual QSize sizeHint () const;
55
56
57protected:
58
62 YQPkgDescriptionDialog( QWidget * parent,
63 const QString & pkgName );
64
69 void filter( const QString & pkgName );
70
75 bool isEmpty() const;
76
77
78 // Data members
79
80 YQPkgList * _pkgList;
81 YQPkgDescriptionView * _pkgDescription;
82};
83
84
85#endif // ifndef YQPkgDescriptionDialog_h
Definition YQPkgDescriptionDialog.h:39
virtual QSize sizeHint() const
Definition YQPkgDescriptionDialog.cc:169
bool isEmpty() const
Definition YQPkgDescriptionDialog.cc:158
static void showDescriptionDialog(const QString &pkgName)
Definition YQPkgDescriptionDialog.cc:180
void filter(const QString &pkgName)
Definition YQPkgDescriptionDialog.cc:123
Display the description of a ZyppObj derived object along with its name and summary.
Definition YQPkgDescriptionView.h:40
Display a list of zypp::Package objects.
Definition YQPkgList.h:39