libyui-qt-pkg
Loading...
Searching...
No Matches
YQPackageSelector Class Reference
Inheritance diagram for YQPackageSelector:
Collaboration diagram for YQPackageSelector:

Public Slots

int manualResolvePackageDependencies ()
 
void autoResolveDependencies ()
 
void pkgExport ()
 
void pkgImport ()
 
void installDevelPkgs ()
 
void installDebugInfoPkgs ()
 
void installDebugSourcePkgs ()
 
void installRecommendedPkgs ()
 
void installSubPkgs (const QString &suffix)
 
void pkgExcludeDebugChanged (bool on)
 
void pkgExcludeDevelChanged (bool on)
 
void pkgVerifySytemModeChanged (bool on)
 
void pkgInstallRecommendedChanged (bool on)
 
void pkgCleanDepsOnRemoveChanged (bool on)
 
void pkgAllowVendorChangeChanged (bool on)
 
void help ()
 
void symbolHelp ()
 
void keyboardHelp ()
 
void updateRepositoryUpgradeLabel ()
 
void loadSettings ()
 
void saveSettings ()
 
- Public Slots inherited from YQPackageSelectorBase
int resolveDependencies ()
 
int verifySystem ()
 
int checkDiskUsage ()
 
void showAutoPkgList ()
 
bool reject ()
 
void accept ()
 
void repoManager ()
 
void onlineUpdateConfiguration ()
 
void onlineSearch ()
 
void notImplemented ()
 

Signals

void loadData ()
 
void refresh ()
 
- Signals inherited from YQPackageSelectorBase
void resolvingStarted ()
 
void resolvingFinished ()
 

Public Member Functions

 YQPackageSelector (YWidget *parent, long modeFlags=0)
 
- Public Member Functions inherited from YQPackageSelectorBase
virtual void setEnabling (bool enabled)
 
virtual int preferredWidth ()
 
virtual int preferredHeight ()
 
virtual void setSize (int newWidth, int newHeight)
 
virtual bool setKeyboardFocus ()
 

Protected Slots

void addPatchFilterView ()
 
void hotkeyInsertPatchFilterView ()
 
void globalUpdatePkg ()
 
void globalUpdatePkgForce ()
 
void showProducts ()
 
void showHistory ()
 
void slotRepoUpgradeLabelLinkClicked (const QString &link)
 
void busyCursor ()
 
void normalCursor ()
 
- Protected Slots inherited from YQPackageSelectorBase
void resetIgnoredDependencyProblems ()
 

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 ()
 
void addMenus ()
 
void connectFilter (QWidget *filter, QWidget *pkgList, bool hasUpdateSignal=true)
 
void connectPatchList ()
 
void globalUpdatePkg (bool force)
 
void importSelectable (ZyppSel selectable, bool isWanted, const char *kind)
 
bool anyRetractedPkgInstalled ()
 
QString symHelp (const QString &imgFileName, const QString &summary, const QString &explanation)
 
QString keyHelp (const QString &key, const QString &summary, const QString &explanation)
 
void loadCommonSettings ()
 
void saveCommonSettings ()
 
- Protected Member Functions inherited from YQPackageSelectorBase
 YQPackageSelectorBase (YWidget *parent, long modeFlags=0)
 
virtual ~YQPackageSelectorBase ()
 
bool showPendingLicenseAgreements ()
 
bool showPendingLicenseAgreements (ZyppPoolIterator begin, ZyppPoolIterator end)
 
virtual void keyPressEvent (QKeyEvent *ev)
 

Static Protected Member Functions

static QString para (const QString &text)
 
static QString listItem (const QString &text)
 

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
 
YQPkgServiceFilterView_serviceFilterView
 
YQPkgLangList_langList
 
YQPkgList_pkgList
 
YQPkgPatternList_patternList
 
YQPkgClassFilterView_pkgClassFilterView
 
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
 

Member Function Documentation

◆ addMenus()

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.

◆ addPatchFilterView

void YQPackageSelector::addPatchFilterView ( )
protectedslot

Add the "Patches" filter view, if it is not already there.

◆ anyRetractedPkgInstalled()

bool YQPackageSelector::anyRetractedPkgInstalled ( )
protected

Return 'true' if any selectable has any retracted package version installed.

◆ autoResolveDependencies

void YQPackageSelector::autoResolveDependencies ( )
slot

Automatically resolve package dependencies if desired (if the "auto check" checkbox is on).

◆ busyCursor

void YQPackageSelector::busyCursor ( )
protectedslot

Show the busy cursor (clock)

◆ connectFilter()

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)

◆ connectPatchList()

void YQPackageSelector::connectPatchList ( )
protected

Connect the patch list. Caution: Possible bootstrap problem!

◆ globalUpdatePkg [1/2]

void YQPackageSelector::globalUpdatePkg ( )
inlineprotectedslot

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.

◆ globalUpdatePkg() [2/2]

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.

◆ globalUpdatePkgForce

void YQPackageSelector::globalUpdatePkgForce ( )
inlineprotectedslot

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.

◆ help

void YQPackageSelector::help ( )
slot

Display (generic) online help.

◆ hotkeyInsertPatchFilterView

void YQPackageSelector::hotkeyInsertPatchFilterView ( )
protectedslot

Add the "Patches" filter view upon hotkey (F2).

◆ importSelectable()

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).

◆ installDebugInfoPkgs

void YQPackageSelector::installDebugInfoPkgs ( )
slot

Install available -debuginfo packages for packages that are installed or marked for installation

◆ installDebugSourcePkgs

void YQPackageSelector::installDebugSourcePkgs ( )
slot

Install available -debugsource packages for packages that are installed or marked for installation

◆ installDevelPkgs

void YQPackageSelector::installDevelPkgs ( )
slot

Install any -devel package for packages that are installed or marked for installation

◆ installRecommendedPkgs

void YQPackageSelector::installRecommendedPkgs ( )
slot

Install recommended packages for packages that are installed

◆ installSubPkgs

void YQPackageSelector::installSubPkgs ( const QString &  suffix)
slot

Install any subpackage that ends with 'suffix' for packages that are installed or marked for installation

◆ keyboardHelp

void YQPackageSelector::keyboardHelp ( )
slot

Display online help about magic keys.

◆ keyHelp()

QString YQPackageSelector::keyHelp ( const QString &  key,
const QString &  summary,
const QString &  explanation 
)
protected

Return HTML code describing a key.

◆ listItem()

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

Basic HTML formatting: Embed text into ...

◆ loadCommonSettings()

void YQPackageSelector::loadCommonSettings ( )
protected

loads settings that are shared with other frontends

◆ loadData

void YQPackageSelector::loadData ( )
signal

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.

◆ loadSettings

void YQPackageSelector::loadSettings ( )
slot

loads settings for the checkboxes in the option menu

◆ makeConnections()

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.

◆ manualResolvePackageDependencies

int YQPackageSelector::manualResolvePackageDependencies ( )
slot

Resolve package dependencies manually.

Returns QDialog::Accepted or QDialog::Rejected.

◆ normalCursor

void YQPackageSelector::normalCursor ( )
protectedslot

Show the standard cursor (arrow)

◆ para()

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

Basic HTML formatting: Embed text into

...

◆ pkgExcludeDebugChanged

void YQPackageSelector::pkgExcludeDebugChanged ( bool  on)
slot

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.

◆ pkgExport

void YQPackageSelector::pkgExport ( )
slot

Export all current selection/package states

◆ pkgImport

void YQPackageSelector::pkgImport ( )
slot

Import selection/package states

◆ refresh

void YQPackageSelector::refresh ( )
signal

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.

◆ saveCommonSettings()

void YQPackageSelector::saveCommonSettings ( )
protected

saves settings that are shared with other frontends

◆ saveSettings

void YQPackageSelector::saveSettings ( )
slot

saves settings of the checkboxes in the option menu

◆ showHistory

void YQPackageSelector::showHistory ( )
protectedslot

Show dialog for pkgmgr history

◆ showProducts

void YQPackageSelector::showProducts ( )
protectedslot

Show all products in a popup dialog.

◆ slotRepoUpgradeLabelLinkClicked

void YQPackageSelector::slotRepoUpgradeLabelLinkClicked ( const QString &  link)
protectedslot

a link in the repo upgrade label was clicked

◆ symbolHelp

void YQPackageSelector::symbolHelp ( )
slot

Display online help about symbols (package status icons).

◆ symHelp()

QString YQPackageSelector::symHelp ( const QString &  imgFileName,
const QString &  summary,
const QString &  explanation 
)
protected

Return HTML code describing a symbol (an icon).

◆ updateRepositoryUpgradeLabel

void YQPackageSelector::updateRepositoryUpgradeLabel ( )
slot

hides or shows the repository upgrade message


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