libyui-qt-pkg
2.45.15.2
|
Abstract base class for package selectors. More...
#include <YQPackageSelectorBase.h>
Public Slots | |
int | resolveDependencies () |
Resolve dependencies (unconditionally) for all resolvables. More... | |
int | verifySystem () |
Verifies dependencies of the currently installed system. More... | |
int | checkDiskUsage () |
Check for disk overflow and post a warning dialog if necessary. More... | |
void | showAutoPkgList () |
Display a list of automatically selected packages (excluding packages contained in any selections that are to be installed) | |
bool | reject () |
Close processing and abandon changes. More... | |
void | accept () |
Close processing and accept changes. | |
void | repoManager () |
Close processing and request start of the repository manager. | |
void | onlineUpdateConfiguration () |
Close processing and request start of the online update configuration. | |
void | notImplemented () |
Inform user about a feature that is not implemented yet. More... | |
Signals | |
void | resolvingStarted () |
Emitted when package resolving is started. More... | |
void | resolvingFinished () |
Emitted when package resolving is finished. | |
Public Member Functions | |
virtual void | setEnabling (bool enabled) |
Set enabled/disabled state. More... | |
virtual int | preferredWidth () |
Preferred width of the widget. More... | |
virtual int | preferredHeight () |
Preferred height of the widget. More... | |
virtual void | setSize (int newWidth, int newHeight) |
Set the new size of the widget. More... | |
virtual bool | setKeyboardFocus () |
Accept the keyboard focus. More... | |
Protected Slots | |
void | resetIgnoredDependencyProblems () |
Reset all previously ignored dependency problems. | |
Protected Member Functions | |
YQPackageSelectorBase (YWidget *parent, long modeFlags=0) | |
Constructor. More... | |
virtual | ~YQPackageSelectorBase () |
Destructor. | |
bool | showPendingLicenseAgreements () |
Show all license agreements the user has not confirmed yet (for all packages that will be installed, and in YOU mode also for patches). More... | |
bool | showPendingLicenseAgreements (ZyppPoolIterator begin, ZyppPoolIterator end) |
Show all license agreements in a resolvable range. More... | |
virtual void | keyPressEvent (QKeyEvent *ev) |
Event handler for keyboard input - for debugging and testing. More... | |
Protected Attributes | |
YQPkgSelWmCloseHandler * | _wmCloseHandler |
bool | _showChangesDialog |
YQPkgConflictDialog * | _pkgConflictDialog |
YQPkgDiskUsageList * | _diskUsageList |
QAction * | _actionResetIgnoredDependencyProblems |
Abstract base class for package selectors.
Definition at line 64 of file YQPackageSelectorBase.h.
|
protected |
Constructor.
Will initialize package and selection managers and create conflict dialogs.
Definition at line 74 of file YQPackageSelectorBase.cc.
|
slot |
Check for disk overflow and post a warning dialog if necessary.
The user can choose to override this warning.
Returns QDialog::Accepted if no warning is necessary or if the user wishes to override the warning, QDialog::Rejected otherwise.
Definition at line 173 of file YQPackageSelectorBase.cc.
|
protectedvirtual |
Event handler for keyboard input - for debugging and testing.
Reimplemented from QWidget.
Definition at line 434 of file YQPackageSelectorBase.cc.
|
slot |
Inform user about a feature that is not implemented yet.
This should NEVER show up in the final version.
Definition at line 418 of file YQPackageSelectorBase.cc.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Definition at line 461 of file YQPackageSelectorBase.cc.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Definition at line 455 of file YQPackageSelectorBase.cc.
|
slot |
Close processing and abandon changes.
If there were changes, this will post an "Abandon all changes?" pop-up.
Return 'true' if the user really wants to reject (or if there were no changes anyway), 'false' if not.
Definition at line 223 of file YQPackageSelectorBase.cc.
|
slot |
Resolve dependencies (unconditionally) for all resolvables.
Returns QDialog::Accepted or QDialog::Rejected.
Definition at line 126 of file YQPackageSelectorBase.cc.
|
signal |
Emitted when package resolving is started.
This can be used for some kind of "busy display".
|
virtual |
Set enabled/disabled state.
Reimplemented from YWidget.
Definition at line 475 of file YQPackageSelectorBase.cc.
|
virtual |
Accept the keyboard focus.
Reimplemented from YWidget.
Definition at line 482 of file YQPackageSelectorBase.cc.
|
virtual |
Set the new size of the widget.
Reimplemented from YWidget.
Definition at line 468 of file YQPackageSelectorBase.cc.
|
protected |
Show all license agreements the user has not confirmed yet (for all packages that will be installed, and in YOU mode also for patches).
Returns 'true' if all licenses were confirmed, 'false' if one or more licenses were not confirmed (in which case some packages might be set to S_TABOO, which might require another resolver run).
Definition at line 355 of file YQPackageSelectorBase.cc.
|
protected |
Show all license agreements in a resolvable range.
To be used with zyppPkgBegin() and zyppPkgEnd() or with zyppPatchesBegin() and zyppPatchesEnd().
Definition at line 371 of file YQPackageSelectorBase.cc.
|
slot |
Verifies dependencies of the currently installed system.
Returns QDialog::Accepted or QDialog::Rejected.
Definition at line 148 of file YQPackageSelectorBase.cc.