libyui-qt-pkg
2.47.5
|
Public Member Functions | |
YQPkgUnsupportedPackagesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString()) | |
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. More... | |
![]() | |
Q_DECLARE_FLAGS (Filters, Filter) | |
Q_DECLARE_FLAGS (Options, Option) | |
void | setFilter (Filters f) |
Set the current filter This will change the combo box current selected filter and update the list. | |
void | setFilter (const QRegExp ®exp, Filters f) |
Set the current filter This will change the combo box current selected filter and update the list. | |
virtual QSize | sizeHint () const |
Returns the preferred size. More... | |
Static Public Member Functions | |
static bool | showUnsupportedPackagesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString(), Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty) |
Static convenience method: Post a changes dialog with text 'message', a list of changed packages and one ( default ) or two buttons. More... | |
![]() | |
static bool | showChangesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString(), Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty) |
Static convenience method: Post a changes dialog with text 'message', a list of changed packages and one ( default ) or two buttons. More... | |
static bool | showChangesDialog (QWidget *parent, const QString &message, const QRegExp ®exp, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString(), Filters f=FilterAutomatic, Options o=OptionAutoAcceptIfEmpty) |
Static convenience method: Post a changes dialog with text 'message', a list of changed packages whose names match the specified regular expression 'regexp' and one ( default ) or two buttons. More... | |
Protected Member Functions | |
virtual bool | extraFilter (ZyppSel sel, ZyppPkg pkg) |
leave supported packages out. | |
![]() | |
YQPkgChangesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString()) | |
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. More... | |
void | filter (Filters f=FilterAutomatic) |
Apply the filter criteria: Fill the pkg list with pkgs that have a "modify" status ( install, update, delete ) set by automatic ( i.e. More... | |
void | filter (const QRegExp ®exp, Filters f=FilterAutomatic) |
Apply the filter criteria: Fill the pkg list with pkgs that have a "modify" status ( install, update, delete ) set by automatic ( i.e. More... | |
bool | isEmpty () const |
Returns 'true' if the pkg list is empty. More... | |
Additional Inherited Members | |
![]() | |
enum | FilterIndex { FilterIndexAll = 0, FilterIndexUser = 1, FilterIndexAutomatic = 2 } |
filter combobox entries | |
enum | Filter { FilterNone = 0x0, FilterUser = 0x1, FilterAutomatic = 0x2, FilterAll = 0x1 | 0x2 } |
Filters. | |
enum | Option { OptionNone = 0x0, OptionAutoAcceptIfEmpty = 0x1 } |
Options. | |
![]() | |
void | slotFilterChanged (int index) |
called when the filter is changed | |
![]() | |
QComboBox * | _filter |
YQPkgList * | _pkgList |
Definition at line 216 of file YQPkgChangesDialog.h.
YQPkgUnsupportedPackagesDialog::YQPkgUnsupportedPackagesDialog | ( | QWidget * | parent, |
const QString & | message, | ||
const QString & | acceptButtonLabel, | ||
const QString & | rejectButtonLabel = QString() |
||
) |
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.
|
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.