41 #ifndef YQPkgVersionsView_h
42 #define YQPkgVersionsView_h
44 #include <QScrollArea>
45 #include <QRadioButton>
47 #include <QButtonGroup>
108 ZyppSel selectable()
const {
return _selectable; }
126 void reload(
int newCurrent );
177 QTabWidget * _parentTab;
179 bool _isMixedMultiVersion;
180 QButtonGroup * _buttons;
181 QList<QWidget*> _installed;
182 QVBoxLayout * _layout;
219 virtual QString
toolTip(
int column );
274 void slotIconClicked();
284 void setStatus( ZyppStatus newStatus );
285 QPixmap statusIcon( ZyppStatus status );
293 ZyppPoolItem _zyppPoolItem;
299 #endif // ifndef YQPkgVersionsView_h
virtual QSize minimumSizeHint() const
Returns the minimum size required for this widget.
virtual QString toolTip(int column)
Returns a tool tip text for a specific column of this item.
ZyppSel selectable() const
Returns the original ZYPP 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.
bool mixedMultiVersionPopup(bool multiversion) const
Ask user if he really wants to install incompatible package versions.
bool isMixedMultiVersion() const
Return the cached value for the current selectable.
ZyppSel selectable() const
Returns the original ZYPP selectable.
YQPkgVersionsView(QWidget *parent)
Constructor.
Package version selector: Display a list of available versions from all the different installation so...
void paintEvent(QPaintEvent *)
Paints checkboxes with status icons instead of a checkmark.
bool anyMultiVersionToInstall(bool multiversion) const
Check if any package version is marked for installation where its 'multiversion' flag is set to 'mult...
void checkForChangedCandidate()
Check for changed candidates.
void unselectAllMultiVersion()
Unselect all multiversion package versions.
void candidateChanged(ZyppObj newCandidate)
Emitted when the user changes the candidate.
ZyppObj zyppObj() const
Returns the original ZYPP object.
virtual ~YQPkgVersionsView()
Destructor.
bool handleMixedMultiVersion(YQPkgMultiVersion *newSelected)
Negotiate between multiversion and non-multiversion packages if there are both kinds in that selectab...
void statusChanged()
Emitted when the status of this package version is changed.
void cycleStatus()
Cycle the package status to the next valid value.
void statusChanged()
Emitted when the status of any package changed.
void reload(int newCurrent)
Show data for the current package.
ZyppPoolItem zyppPoolItem() const
Returns the original ZYPP object.
void showDetails(ZyppSel selectable)
Show details for the specified package.