Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

YQPkgChangesDialog.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013   File:       YQPkgChangesDialog.h
00014 
00015   Author:     Stefan Hundhammer <sh@suse.de>
00016 
00017 /-*/
00018 
00019 // -*- c++ -*-
00020 
00021 
00022 #ifndef YQPkgChangesDialog_h
00023 #define YQPkgChangesDialog_h
00024 
00025 #include <qdialog.h>
00026 #include <qregexp.h>
00027 
00028 
00029 class YQPkgList;
00030 
00031 
00037 class YQPkgChangesDialog : public QDialog
00038 {
00039     Q_OBJECT
00040 
00041 public:
00042 
00055     static bool showChangesDialog( const QString &      message,
00056                                    const QString &      acceptButtonLabel,
00057                                    const QString &      rejectButtonLabel = QString::null,
00058                                    bool                 showIfListEmpty   = false       );
00059 
00060 
00074     static bool showChangesDialog( const QString &      message,
00075                                    const QRegExp &      regexp,
00076                                    const QString &      acceptButtonLabel,
00077                                    const QString &      rejectButtonLabel = QString::null,
00078                                    bool                 showIfListEmpty   = false       );
00079 
00085     virtual QSize sizeHint () const;
00086 
00087 protected:
00088 
00100     YQPkgChangesDialog( QWidget *               parent,
00101                         const QString &         message,
00102                         const QString &         acceptButtonLabel,
00103                         const QString &         rejectButtonLabel = QString::null );
00104 
00111     void filter( bool byAuto    = true,
00112                  bool byApp     = false,
00113                  bool byUser    = false );
00114 
00121     void filter( const QRegExp & regexp,
00122                  bool byAuto    = true,
00123                  bool byApp     = false,
00124                  bool byUser    = false );
00125 
00130     bool isEmpty() const;
00131 
00132 
00133     // Data members
00134 
00135     YQPkgList *         _pkgList;
00136 };
00137 
00138 
00139 #endif // ifndef YQPkgChangesDialog_h

Generated on Wed Sep 14 10:59:02 2005 for yast2-qt by  doxygen 1.4.4