1 /*---------------------------------------------------------------------\
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
11 \----------------------------------------------------------------------/
13 File: YQPkgDescriptionDialog.h
15 Author: Stefan Hundhammer <sh@suse.de>
20 #ifndef YQPkgDescriptionDialog_h
21 #define YQPkgDescriptionDialog_h
27 class YQPkgDescriptionView;
31 * Pkg status and description as a standalone popup dialog.
33 class YQPkgDescriptionDialog : public QDialog
40 * Static convenience method: Post a description dialog for pkg 'pkgName'.
42 static void showDescriptionDialog( const QString & pkgName );
45 * Returns the preferred size.
47 * Reimplemented from QWidget to limit the dialog to the screen dimensions.
49 virtual QSize sizeHint () const;
55 * Constructor: Creates a description dialog for all packages that match 'pkgName'.
57 YQPkgDescriptionDialog( QWidget * parent,
58 const QString & pkgName );
61 * Apply the filter criteria: Fill the pkg list with pkgs that match the
62 * specified package name.
64 void filter( const QString & pkgName );
67 * Returns 'true' if the pkg list is empty.
68 * This is only meaningful after calling 'filter()' !
76 YQPkgDescriptionView * _pkgDescription;
80 #endif // ifndef YQPkgDescriptionDialog_h