41 #ifndef YQPkgVersionsView_h 42 #define YQPkgVersionsView_h 44 #include <QScrollArea> 45 #include <QRadioButton> 47 #include <QButtonGroup> 142 void reload(
int newCurrent );
192 QTabWidget * _parentTab;
194 bool _isMixedMultiVersion;
195 QButtonGroup * _buttonGroup;
196 QVBoxLayout * _layout;
233 virtual QString
toolTip(
int column );
288 void slotIconClicked();
298 void setStatus( ZyppStatus newStatus );
299 QPixmap statusIcon( ZyppStatus status );
307 ZyppPoolItem _zyppPoolItem;
313 #endif // ifndef YQPkgVersionsView_h static void setRetractedColor(QWidget *widget)
Set the colors of a widget for a retracted zyppObj.
ZyppPoolItem zyppPoolItem() const
Returns the original ZYPP object.
ZyppObj zyppObj() const
Returns the original ZYPP object.
virtual QString toolTip(int column)
Returns a tool tip text for a specific column of this item.
bool isMixedMultiVersion() const
Return the cached value for the current selectable.
YQPkgMultiVersion(YQPkgVersionsView *parent, ZyppSel selectable, ZyppPoolItem zyppPoolItem)
Constructor.
YQPkgVersion(QWidget *parent, ZyppSel selectable, ZyppObj zyppObj)
Constructor.
void showDetailsIfVisible(ZyppSel selectable)
Show details for the specified package.
virtual ~YQPkgVersion()
Destructor.
virtual ~YQPkgMultiVersion()
Destructor.
YQPkgVersionsView(QWidget *parent)
Constructor.
Package version selector: Display a list of available versions from all the different installation so...
virtual QSize minimumSizeHint() const
Returns the minimum size required for this widget.
ZyppSel selectable() const
Return the selectable of this details view.
void paintEvent(QPaintEvent *)
Paints checkboxes with status icons instead of a checkmark.
void checkForChangedCandidate()
Check for changed candidates.
bool anyMultiVersionToInstall(bool multiversion) const
Check if any package version is marked for installation where its 'multiversion' flag is set to 'mult...
bool mixedMultiVersionPopup(bool multiversion) const
Ask user if he really wants to install incompatible package versions.
void unselectAllMultiVersion()
Unselect all multiversion package versions.
ZyppSel selectable() const
Returns the original ZYPP selectable.
void candidateChanged(ZyppObj newCandidate)
Emitted when the user changes the candidate.
virtual ~YQPkgVersionsView()
Destructor.
bool handleMixedMultiVersion(YQPkgMultiVersion *newSelected)
Negotiate between multiversion and non-multiversion packages if there are both kinds in that selectab...
ZyppSel selectable() const
Returns the original ZYPP selectable.
void statusChanged()
Emitted when the status of this package version is changed.
void cycleStatus()
Cycle the package status to the next valid value.
static bool installedIsRetracted(ZyppSel selectable, ZyppObj installed)
Return 'true' if 'installed' is retraced, i.e.
void statusChanged()
Emitted when the status of any package changed.
void reload(int newCurrent)
Show data for the current package.
void showDetails(ZyppSel selectable)
Show details for the specified package.