libyui-qt-pkg  2.45.6
YQPackageSelector Class Reference
Inheritance diagram for YQPackageSelector:
Collaboration diagram for YQPackageSelector:

Public Slots

int manualResolvePackageDependencies ()
 Resolve package dependencies manually. More...
 
void autoResolveDependencies ()
 Automatically resolve package dependencies if desired (if the "auto check" checkbox is on).
 
void pkgExport ()
 Export all current selection/package states.
 
void pkgImport ()
 Import selection/package states.
 
void installDevelPkgs ()
 Install any -devel package for packages that are installed or marked for installation.
 
void installDebugInfoPkgs ()
 Install available -debuginfo packages for packages that are installed or marked for installation.
 
void installDebugSourcePkgs ()
 Install available -debugsource packages for packages that are installed or marked for installation.
 
void installRecommendedPkgs ()
 Install recommended packages for packages that are installed.
 
void installSubPkgs (const QString &suffix)
 Install any subpackage that ends with 'suffix' for packages that are installed or marked for installation.
 
void pkgExcludeDebugChanged (bool on)
 Enable or disable the package exclude rules (show or suppress -debuginfo or -devel packages) according to the current menu settings and apply the exclude rules.
 
void pkgExcludeDevelChanged (bool on)
 
void pkgVerifySytemModeChanged (bool on)
 
void pkgInstallRecommendedChanged (bool on)
 
void pkgCleanDepsOnRemoveChanged (bool on)
 
void pkgAllowVendorChangeChanged (bool on)
 
void help ()
 Display (generic) online help.
 
void symbolHelp ()
 Display online help about symbols (package status icons).
 
void keyboardHelp ()
 Display online help about magic keys.
 
void updateRepositoryUpgradeLabel ()
 hides or shows the repository upgrade message
 
void loadSettings ()
 loads settings for the checkboxes in the option menu
 
void saveSettings ()
 saves settings of the checkboxes in the option menu
 
- Public Slots inherited from YQPackageSelectorBase
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 loadData ()
 Emitted once (!) when the dialog is about to be shown, when all widgets are created and all signal/slot connections are set up - when it makes sense to load data.
 
void refresh ()
 Emitted when the internal data base might have changed and a refresh of all displayed data might be necessary - e.g., when saved (exported) pkg states are reimported.
 
- Signals inherited from YQPackageSelectorBase
void resolvingStarted ()
 Emitted when package resolving is started. More...
 
void resolvingFinished ()
 Emitted when package resolving is finished.
 

Public Member Functions

 YQPackageSelector (YWidget *parent, long modeFlags=0)
 
- Public Member Functions inherited from YQPackageSelectorBase
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...
 

Static Public Member Functions

static std::string iconPath (const std::string &name, int size)
 returns the full path for an icon of a given size
 

Protected Slots

void addPatchFilterView ()
 Add the "Patches" filter view, if it is not already there.
 
void hotkeyInsertPatchFilterView ()
 Add the "Patches" filter view upon hotkey (F2).
 
void globalUpdatePkg ()
 Set the status of all installed packages (all in the pool, not only those currently displayed in the package list) to "update", if there is a candidate package that is newer than the installed package.
 
void globalUpdatePkgForce ()
 Set the status of all installed packages (all in the pool, not only those currently displayed in the package list) to "update", even if the candidate package is not newer than the installed package.
 
void showProducts ()
 Show all products in a popup dialog.
 
void showHistory ()
 Show dialog for pkgmgr history.
 
void slotRepoUpgradeLabelLinkClicked (const QString &link)
 a link in the repo upgrade label was clicked
 
- Protected Slots inherited from YQPackageSelectorBase
void resetIgnoredDependencyProblems ()
 Reset all previously ignored dependency problems.
 

Protected Member Functions

void basicLayout ()
 
QWidget * layoutRightPane (QWidget *parent)
 
void layoutFilters (QWidget *parent)
 
void layoutPkgList (QWidget *parent)
 
void layoutDetailsViews (QWidget *parent)
 
void layoutButtons (QWidget *parent)
 
void layoutMenuBar (QWidget *parent)
 
void makeConnections ()
 Establish Qt signal / slot connections. More...
 
void addMenus ()
 Add pulldown menus to the menu bar. More...
 
void connectFilter (QWidget *filter, QWidget *pkgList, bool hasUpdateSignal=true)
 Connect a filter view that provides the usual signals with a package list. More...
 
void connectPatchList ()
 Connect the patch list. More...
 
void globalUpdatePkg (bool force)
 Set the status of all installed packages (all in the pool, not only those currently displayed in the package list) to "update" and switch to the "Installation Summary" view afterwards. More...
 
void importSelectable (ZyppSel selectable, bool isWanted, const char *kind)
 Import one selectable: Set its status according to 'isWanted' based on its old status. More...
 
QString symHelp (const QString &imgFileName, const QString &summary, const QString &explanation)
 Return HTML code describing a symbol (an icon).
 
QString keyHelp (const QString &key, const QString &summary, const QString &explanation)
 Return HTML code describing a key.
 
- Protected Member Functions inherited from YQPackageSelectorBase
 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...
 

Static Protected Member Functions

static QString para (const QString &text)
 Basic HTML formatting: Embed text into. More...
 
static QString listItem (const QString &text)
 Basic HTML formatting: Embed text into ... More...
 

Protected Attributes

QAction * _autoDependenciesAction
 
QPushButton * _checkDependenciesButton
 
QTabWidget * _detailsViews
 
YQPkgFilterTab_filters
 
YQPkgChangeLogView_pkgChangeLogView
 
YQPkgDependenciesView_pkgDependenciesView
 
YQPkgDescriptionView_pkgDescriptionView
 
YQPkgFileListView_pkgFileListView
 
QLabel * _repoUpgradeLabel
 
QLabel * _repoUpgradingLabel
 
QWidget * _notificationsContainer
 
YQPkgRepoFilterView_repoFilterView
 
YQPkgLangList_langList
 
YQPkgList_pkgList
 
YQPkgPatternList_patternList
 
YQPkgPackageKitGroupsFilterView_packageKitGroupsFilterView
 
YQPkgRpmGroupTagsFilterView_rpmGroupTagsFilterView
 
YQPkgSearchFilterView_searchFilterView
 
YQPkgStatusFilterView_statusFilterView
 
YQPkgTechnicalDetailsView_pkgTechnicalDetailsView
 
YQPkgUpdateProblemFilterView_updateProblemFilterView
 
YQPkgVersionsView_pkgVersionsView
 
YQPkgPatchFilterView_patchFilterView
 
YQPkgPatchList_patchList
 
QMenuBar * _menuBar
 
QMenu * _fileMenu
 
QMenu * _pkgMenu
 
QMenu * _patchMenu
 
QMenu * _configMenu
 
QMenu * _dependencyMenu
 
QMenu * _optionsMenu
 
QMenu * _extrasMenu
 
QMenu * _helpMenu
 
QAction * _showDevelAction
 
QAction * _showDebugAction
 
QAction * _verifySystemModeAction
 
QAction * _installRecommendedAction
 
QAction * _cleanDepsOnRemoveAction
 
QAction * _allowVendorChangeAction
 
YQPkgObjList::ExcludeRule_excludeDevelPkgs
 
YQPkgObjList::ExcludeRule_excludeDebugInfoPkgs
 
QColor _normalButtonBackground
 
- Protected Attributes inherited from YQPackageSelectorBase
YQPkgSelWmCloseHandler_wmCloseHandler
 
bool _showChangesDialog
 
YQPkgConflictDialog_pkgConflictDialog
 
YQPkgDiskUsageList_diskUsageList
 
QAction * _actionResetIgnoredDependencyProblems
 

Detailed Description

Definition at line 85 of file YQPackageSelector.h.

Member Function Documentation

void YQPackageSelector::addMenus ( )
protected

Add pulldown menus to the menu bar.

This really needs to be a separate method to make sure all affected wigets are created at this point.

Definition at line 671 of file YQPackageSelector.cc.

void YQPackageSelector::connectFilter ( QWidget *  filter,
QWidget *  pkgList,
bool  hasUpdateSignal = true 
)
protected

Connect a filter view that provides the usual signals with a package list.

By convention, filter views provide the following signals: filterStart() filterMatch() filterFinished() updatePackages() (optional)

Definition at line 928 of file YQPackageSelector.cc.

void YQPackageSelector::connectPatchList ( )
protected

Connect the patch list.

Caution: Possible bootstrap problem!

Definition at line 1157 of file YQPackageSelector.cc.

void YQPackageSelector::globalUpdatePkg ( bool  force)
protected

Set the status of all installed packages (all in the pool, not only those currently displayed in the package list) to "update" and switch to the "Installation Summary" view afterwards.

'force' indicates if this should also be done if the the candidate package is not newer than the installed package.

Definition at line 1410 of file YQPackageSelector.cc.

void YQPackageSelector::importSelectable ( ZyppSel  selectable,
bool  isWanted,
const char *  kind 
)
protected

Import one selectable: Set its status according to 'isWanted' based on its old status.

'kind' is 'package' or 'pattern' (used only for debug logging).

Definition at line 1331 of file YQPackageSelector.cc.

QString YQPackageSelector::listItem ( const QString &  text)
staticprotected

Basic HTML formatting: Embed text into ...

Definition at line 365 of file YQPackageSelectorHelp.cc.

void YQPackageSelector::makeConnections ( )
protected

Establish Qt signal / slot connections.

This really needs to be a separate method to make sure all affected wigets are created at this point.

Definition at line 978 of file YQPackageSelector.cc.

int YQPackageSelector::manualResolvePackageDependencies ( )
slot

Resolve package dependencies manually.

Returns QDialog::Accepted or QDialog::Rejected.

Definition at line 1092 of file YQPackageSelector.cc.

QString YQPackageSelector::para ( const QString &  text)
staticprotected

Basic HTML formatting: Embed text into.

...

Definition at line 358 of file YQPackageSelectorHelp.cc.


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