#include <YQPkgChangesDialog.h>
Public Member Functions | |
virtual QSize | sizeHint () const |
Static Public Member Functions | |
static bool | showChangesDialog (const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null, bool showIfListEmpty=false) |
static bool | showChangesDialog (const QString &message, const QRegExp ®exp, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null, bool showIfListEmpty=false) |
Protected Member Functions | |
YQPkgChangesDialog (QWidget *parent, const QString &message, const QString &acceptButtonLabel, const QString &rejectButtonLabel=QString::null) | |
void | filter (bool byAuto=true, bool byApp=false, bool byUser=false) |
void | filter (const QRegExp ®exp, bool byAuto=true, bool byApp=false, bool byUser=false) |
bool | isEmpty () const |
Protected Attributes | |
YQPkgList * | _pkgList |
|
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. |
|
Apply the filter criteria: Fill the pkg list with pkgs that have a "modify" status ( install, update, delete ) set by automatic ( i.e. via the dependency solver ), by application ( i.e. via software selections ) or manually by the user and whose name matches 'regexp'. |
|
Apply the filter criteria: Fill the pkg list with pkgs that have a "modify" status ( install, update, delete ) set by automatic ( i.e. via the dependency solver ), by application ( i.e. via software selections ) or manually by the user. |
|
Returns 'true' if the pkg list is empty. This is only meaningful after calling 'filter()' ! |
|
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. 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'. |
|
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'. |
|
Returns the preferred size. Reimplemented from QWidget to limit the dialog to the screen dimensions. |
|
|