libyui-qt-pkg
Loading...
Searching...
No Matches
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)
 
void reload (int newCurrent)
 

Signals

void candidateChanged (ZyppObj newCandidate)
 
void statusChanged ()
 

Public Member Functions

 YQPkgVersionsView (QWidget *parent)
 
virtual ~YQPkgVersionsView ()
 
virtual QSize minimumSizeHint () const
 
bool isMixedMultiVersion () const
 
bool handleMixedMultiVersion (YQPkgMultiVersion *newSelected)
 
ZyppSel selectable () const
 

Static Public Member Functions

static bool isMixedMultiVersion (ZyppSel selectable)
 
static void setRetractedColor (QWidget *widget)
 
static bool installedIsRetracted (ZyppSel selectable, ZyppObj installed)
 

Protected Slots

void checkForChangedCandidate ()
 

Protected Member Functions

void showDetails (ZyppSel selectable)
 
bool mixedMultiVersionPopup (bool multiversion) const
 
bool anyMultiVersionToInstall (bool multiversion) const
 
void unselectAllMultiVersion ()
 

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.

Constructor & Destructor Documentation

◆ YQPkgVersionsView()

YQPkgVersionsView::YQPkgVersionsView ( QWidget * parent)

Constructor.

◆ ~YQPkgVersionsView()

YQPkgVersionsView::~YQPkgVersionsView ( )
virtual

Destructor

Member Function Documentation

◆ anyMultiVersionToInstall()

bool YQPkgVersionsView::anyMultiVersionToInstall ( bool multiversion) const
protected

Check if any package version is marked for installation where its 'multiversion' flag is set to 'multiversion'.

◆ candidateChanged

void YQPkgVersionsView::candidateChanged ( ZyppObj newCandidate)
signal

Emitted when the user changes the candidate.

◆ checkForChangedCandidate

void YQPkgVersionsView::checkForChangedCandidate ( )
protectedslot

Check for changed candidates

◆ 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.

◆ 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.

◆ isMixedMultiVersion() [1/2]

bool YQPkgVersionsView::isMixedMultiVersion ( ) const
inline

Return the cached value for the current selectable.

◆ isMixedMultiVersion() [2/2]

bool YQPkgVersionsView::isMixedMultiVersion ( ZyppSel selectable)
static

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).

◆ minimumSizeHint()

QSize YQPkgVersionsView::minimumSizeHint ( ) const
virtual

Returns the minimum size required for this widget. Inherited from QWidget.

◆ 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].

◆ reload

void YQPkgVersionsView::reload ( int newCurrent)
slot

Show data for the current package.

◆ selectable()

ZyppSel YQPkgVersionsView::selectable ( ) const
inline

Return the selectable of this details view.

◆ setRetractedColor()

void YQPkgVersionsView::setRetractedColor ( QWidget * widget)
static

Set the colors of a widget for a retracted zyppObj.

◆ showDetails()

void YQPkgVersionsView::showDetails ( ZyppSel selectable)
protected

Show details for the specified package.

◆ 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.

◆ statusChanged

void YQPkgVersionsView::statusChanged ( )
signal

Emitted when the status of any package changed.

◆ unselectAllMultiVersion()

void YQPkgVersionsView::unselectAllMultiVersion ( )
protected

Unselect all multiversion package versions.


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