libyui-qt-pkg  2.42.13
 All Classes Functions Variables Enumerations
YQPkgUnsupportedPackagesDialog Class Reference
Inheritance diagram for YQPkgUnsupportedPackagesDialog:
Collaboration diagram for YQPkgUnsupportedPackagesDialog:

Public Member Functions

 YQPkgUnsupportedPackagesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null)
 
- Public Member Functions inherited from YQPkgChangesDialog
 Q_DECLARE_FLAGS (Filters, Filter)
 
 Q_DECLARE_FLAGS (Options, Option)
 
void setFilter (Filters f)
 
void setFilter (const QRegExp &regexp, Filters f)
 
virtual QSize sizeHint () const
 

Static Public Member Functions

static bool showUnsupportedPackagesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null, Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty)
 
- Static Public Member Functions inherited from YQPkgChangesDialog
static bool showChangesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null, Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty)
 
static bool showChangesDialog (QWidget *parent, const QString &message, const QRegExp &regexp, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null, Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty)
 

Protected Member Functions

virtual bool extraFilter (ZyppSel sel, ZyppPkg pkg)
 
- Protected Member Functions inherited from YQPkgChangesDialog
 YQPkgChangesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null)
 
void filter (Filters f=FilterAutomatic)
 
void filter (const QRegExp &regexp, Filters f=FilterAutomatic)
 
bool isEmpty () const
 

Additional Inherited Members

- Public Types inherited from YQPkgChangesDialog
enum  FilterIndex { FilterIndexAll = 0, FilterIndexUser = 1, FilterIndexAutomatic = 2 }
 
enum  Filter { FilterNone = 0x0, FilterUser = 0x1, FilterAutomatic = 0x2, FilterAll = 0x1 | 0x2 }
 
enum  Option { OptionNone = 0x0, OptionAutoAcceptIfEmpty = 0x1 }
 
- Protected Slots inherited from YQPkgChangesDialog
void slotFilterChanged (int index)
 
- Protected Attributes inherited from YQPkgChangesDialog
QComboBox * _filter
 
YQPkgList_pkgList
 

Detailed Description

Definition at line 216 of file YQPkgChangesDialog.h.

Constructor & Destructor Documentation

YQPkgUnsupportedPackagesDialog::YQPkgUnsupportedPackagesDialog ( QWidget *  parent,
const QString &  message,
const QString &  acceptButtonLabel,
const QString &  rejectButtonLabel = QString::null 
)

Constructor: Creates a changes dialog with text 'message' on top, a list packages with an "auto" status that is not set via selections and one ( default ) or two buttons.

Not meant for public use. Applications should use the static 'showChangesDialog' method instead.

This constructor does not call filter() yet - this is the caller's responsibility.

Definition at line 375 of file YQPkgChangesDialog.cc.

Member Function Documentation

bool YQPkgUnsupportedPackagesDialog::extraFilter ( ZyppSel  sel,
ZyppPkg  pkg 
)
protectedvirtual

leave supported packages out.

Reimplemented from YQPkgChangesDialog.

Definition at line 383 of file YQPkgChangesDialog.cc.

bool YQPkgUnsupportedPackagesDialog::showUnsupportedPackagesDialog ( QWidget *  parent,
const QString &  message,
const QString &  acceptButtonLabel,
const QString &  rejectButtonLabel = QString::null,
Filters  f = FilterAutomatic,
Options  o = OptionAutoAcceptIfEmpty 
)
static

Static convenience method: Post a changes dialog with text 'message', a list of changed packages and one ( default ) or two buttons.

Returns 'true' if the user accepted ( i.e. clicked the 'accept' button ) and 'false' if the user rejected ( i.e. clicked the 'reject' button or the window manager close button ).

If the list is empty ( i.e., there are no packages with an "auto" status ), the dialog is not shown at all ( and returns 'true' ) - unless 'showIfListEmpty' is 'true'.

Definition at line 393 of file YQPkgChangesDialog.cc.

Here is the call graph for this function:


The documentation for this class was generated from the following files: