00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: YQPkgDescriptionDialog.h 00014 00015 Author: Stefan Hundhammer <sh@suse.de> 00016 00017 /-*/ 00018 00019 // -*- c++ -*- 00020 00021 00022 #ifndef YQPkgDescriptionDialog_h 00023 #define YQPkgDescriptionDialog_h 00024 00025 #include <qdialog.h> 00026 00027 00028 class YQPkgList; 00029 class YQPkgDescriptionView; 00030 00031 00035 class YQPkgDescriptionDialog : public QDialog 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 00044 static void showDescriptionDialog( const QString & pkgName ); 00045 00051 virtual QSize sizeHint () const; 00052 00053 00054 protected: 00055 00059 YQPkgDescriptionDialog( QWidget * parent, 00060 const QString & pkgName ); 00061 00066 void filter( const QString & pkgName ); 00067 00072 bool isEmpty() const; 00073 00074 00075 // Data members 00076 00077 YQPkgList * _pkgList; 00078 YQPkgDescriptionView * _pkgDescription; 00079 }; 00080 00081 00082 #endif // ifndef YQPkgDescriptionDialog_h