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

YQPkgChangesDialog Class Reference

#include <YQPkgChangesDialog.h>

List of all members.

Public Member Functions

virtual QSize sizeHint () const

Static Public Member Functions

bool showChangesDialog (const QString &message, 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)
bool isEmpty () const

Protected Attributes

YQPkgList_pkgList


Detailed Description

Changes dialog: Show a dialog with a list of packages that are changed. By default, only packages with an "auto" status ( not set via selections ) are displayed.


Constructor & Destructor Documentation

YQPkgChangesDialog::YQPkgChangesDialog QWidget *  parent,
const QString &  message,
const QString &  acceptButtonLabel,
const QString &  rejectButtonLabel = QString::null
[protected]
 

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.


Member Function Documentation

void YQPkgChangesDialog::filter bool  byAuto = true,
bool  byApp = false,
bool  byUser = false
[protected]
 

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.

bool YQPkgChangesDialog::isEmpty  )  const [protected]
 

Returns 'true' if the pkg list is empty. This is only meaningful after calling 'filter()' !

bool YQPkgChangesDialog::showChangesDialog const QString &  message,
const QString &  acceptButtonLabel,
const QString &  rejectButtonLabel = QString::null,
bool  showIfListEmpty = false
[static]
 

Static convenience method: Post a changes dialog with text 'message', a list of partitions that are at least 'thresholdPercent' full 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'.

QSize YQPkgChangesDialog::sizeHint  )  const [virtual]
 

Returns the preferred size.

Reimplemented from QWidget to limit the dialog to the screen dimensions.


Member Data Documentation

YQPkgList* YQPkgChangesDialog::_pkgList [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Oct 14 19:03:48 2005 for yast2-qt by doxygen 1.3.6