libyui-qt-pkg  2.47.5
YQPkgVersionsView Class Reference

Package version selector: Display a list of available versions from all the different installation sources and let the user change the candidate version for installation / update. More...

#include <YQPkgVersionsView.h>

Inheritance diagram for YQPkgVersionsView:
Collaboration diagram for YQPkgVersionsView:

Public Slots

void showDetailsIfVisible (ZyppSel selectable)
 Show details for the specified package. More...
 
void reload (int newCurrent)
 Show data for the current package.
 

Signals

void candidateChanged (ZyppObj newCandidate)
 Emitted when the user changes the candidate.
 
void statusChanged ()
 Emitted when the status of any package changed.
 

Public Member Functions

 YQPkgVersionsView (QWidget *parent)
 Constructor.
 
virtual ~YQPkgVersionsView ()
 Destructor.
 
virtual QSize minimumSizeHint () const
 Returns the minimum size required for this widget. More...
 
bool isMixedMultiVersion () const
 Return the cached value for the current selectable.
 
bool handleMixedMultiVersion (YQPkgMultiVersion *newSelected)
 Negotiate between multiversion and non-multiversion packages if there are both kinds in that selectable. More...
 
ZyppSel selectable () const
 Return the selectable of this details view.
 

Static Public Member Functions

static bool isMixedMultiVersion (ZyppSel selectable)
 Return 'true' if 'selectable' has mixed multiversion flags, 'false' if all its pool items are of the same kind (all multiversion or all non-multiversion).
 
static void setRetractedColor (QWidget *widget)
 Set the colors of a widget for a retracted zyppObj.
 
static bool installedIsRetracted (ZyppSel selectable, ZyppObj installed)
 Return 'true' if 'installed' is retraced, i.e. More...
 

Protected Slots

void checkForChangedCandidate ()
 Check for changed candidates.
 

Protected Member Functions

void showDetails (ZyppSel selectable)
 Show details for the specified package.
 
bool mixedMultiVersionPopup (bool multiversion) const
 Ask user if he really wants to install incompatible package versions. More...
 
bool anyMultiVersionToInstall (bool multiversion) const
 Check if any package version is marked for installation where its 'multiversion' flag is set to 'multiversion'.
 
void unselectAllMultiVersion ()
 Unselect all multiversion package versions.
 

Protected Attributes

QTabWidget * _parentTab
 
ZyppSel _selectable
 
bool _isMixedMultiVersion
 
QButtonGroup * _buttonGroup
 
QVBoxLayout * _layout
 

Detailed Description

Package version selector: Display a list of available versions from all the different installation sources and let the user change the candidate version for installation / update.

Definition at line 65 of file YQPkgVersionsView.h.

Member Function Documentation

◆ handleMixedMultiVersion()

bool YQPkgVersionsView::handleMixedMultiVersion ( YQPkgMultiVersion newSelected)

Negotiate between multiversion and non-multiversion packages if there are both kinds in that selectable.

'newSelected' is the item the user chose to install.

This returns 'true' if status setting etc. is already handled inside this function, 'false' otherwise.

Definition at line 372 of file YQPkgVersionsView.cc.

Here is the call graph for this function:

◆ installedIsRetracted()

bool YQPkgVersionsView::installedIsRetracted ( ZyppSel  selectable,
ZyppObj  installed 
)
static

Return 'true' if 'installed' is retraced, i.e.

if there is an available ZyppObj with the same edition, architeture and vendor that has the 'retracted' flag set.

Definition at line 275 of file YQPkgVersionsView.cc.

Here is the call graph for this function:

◆ minimumSizeHint()

QSize YQPkgVersionsView::minimumSizeHint ( ) const
virtual

Returns the minimum size required for this widget.

Inherited from QWidget.

Definition at line 365 of file YQPkgVersionsView.cc.

◆ mixedMultiVersionPopup()

bool YQPkgVersionsView::mixedMultiVersionPopup ( bool  multiversion) const
protected

Ask user if he really wants to install incompatible package versions.

Return 'true' if he hits [Continue], 'false' if [Cancel].

Definition at line 410 of file YQPkgVersionsView.cc.

◆ showDetailsIfVisible

void YQPkgVersionsView::showDetailsIfVisible ( ZyppSel  selectable)
slot

Show details for the specified package.

Delayed ( optimized ) display if this is embedded into a QTabWidget parent: In this case, wait until this page becomes visible.

Definition at line 98 of file YQPkgVersionsView.cc.

Here is the call graph for this function:

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