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