libyui-ncurses-pkg
2.43.4.1
|
Public Types | |
enum | FilterMode { Patterns, Languages, Repositories, RPMGroups, Search, Summary, PkgClassification } |
Public Member Functions | |
NCPackageSelector (long modeFlags) | |
virtual | ~NCPackageSelector () |
void | setFlags (long modeFlags) |
void | readSysconfig () |
void | writeSysconfig () |
void | createPkgLayout (YWidget *parent, NCPkgTable::NCPkgTableType type) |
void | createYouLayout (YWidget *parent) |
NCPkgTable * | PackageList () |
NCPkgPopupDeps * | DepsPopup () |
NCPkgDiskspace * | diskSpacePopup () |
YLabel * | PackageLabel () |
YLabel * | PatternLabel () |
NCPkgPackageDetails * | InfoText () |
void | setInfoText (NCPkgPackageDetails *itext) |
NCPkgTable * | VersionsList () |
void | setVersionsList (NCPkgTable *table) |
NCPkgTable * | PatchPkgs () |
NCPkgTable * | PatchPkgsVersions () |
YReplacePoint * | ReplacePoint () |
NCRichText * | FilterDescription () |
NCPkgSearchSettings * | SearchSettings () |
bool | checkNow (bool *ok) |
bool | systemVerification (bool *ok) |
bool | fillPatchList (NCPkgMenuFilter::PatchFilter filter) |
bool | fillUpdateList () |
bool | fillPatchPackages (NCPkgTable *pkgTable, ZyppObj youPatch, bool versions=false) |
bool | fillPatchSearchList (const std::string &expr, bool checkName, bool checkSum) |
bool | fillDefaultList () |
bool | isYouMode () |
bool | isUpdateMode () |
bool | isRepoMgrEnabled () |
bool | isTestMode () |
std::string | ActionAtExit () |
void | setActionAtExit (std::string action) |
bool | isCleanDepsOnRemove () |
void | setCleanDepsOnRemove (bool on) |
bool | isAllowVendorChange () |
void | setAllowVendorChange (bool on) |
bool | isInstallAlreadyRecommended () |
void | setInstallAlreadyRecommended (bool on) |
bool | InstallRecommended () |
bool | isVerifySystem () |
void | setVerifySystem (bool on) |
bool | VerifySystem () |
bool | isAutoCheck () |
void | setAutoCheck (bool check) |
bool | AutoCheck () |
bool | handleEvent (const NCursesEvent &event) |
void | showPatchPkgVersions () |
void | showPatchPackages () |
void | showVersionsList () |
void | showInformation () |
void | clearInfoArea () |
wrect | deleteReplacePoint () |
void | replaceFilter (FilterMode mode) |
void | replaceFilterDescr (bool b) |
bool | OkButtonHandler (const NCursesEvent &event) |
bool | CancelHandler (const NCursesEvent &event) |
bool | LinkHandler (std::string link) |
bool | showPackageDependencies (bool doit) |
void | showSelectionDependencies () |
void | updatePackageList () |
bool | checkPatch (ZyppPatch patch, ZyppSel selectable, NCPkgMenuFilter::PatchFilter filter) |
bool | showLicensePopup (std::string pkgName, std::string license) |
void | showDiskSpace () |
void | showDownloadSize () |
void | saveState () |
void | restoreState () |
bool | diffState () |
bool | showPendingLicenseAgreements () |
bool | showPendingLicenseAgreements (ZyppPoolIterator begin, ZyppPoolIterator end) |
bool | showLicenseAgreement (ZyppSel &slbPtr, std::string licenseText) |
std::set< std::string > | getVerifiedPkgs () |
void | insertVerifiedPkg (std::string pkgname) |
void | clearVerifiedPkgs () |
Friends | |
std::ostream & | operator<< (std::ostream &STREAM, const NCPackageSelector &OBJ) |
Definition at line 114 of file NCPackageSelector.h.
NCPackageSelector::NCPackageSelector | ( | long | modeFlags | ) |
The package selector class handles the events and holds the data needed for the package selection.
ui | The NCurses UI |
opt | The widget options |
Definition at line 109 of file NCPackageSelector.cc.
|
virtual |
Destructor
Definition at line 157 of file NCPackageSelector.cc.
bool NCPackageSelector::CancelHandler | ( | const NCursesEvent & | event | ) |
Handler function for "Cancel button pressed"
event | The Ncurses event |
Definition at line 1212 of file NCPackageSelector.cc.
bool NCPackageSelector::checkPatch | ( | ZyppPatch | patch, |
ZyppSel | selectable, | ||
NCPkgMenuFilter::PatchFilter | filter | ||
) |
Check if 'patch' matches the selected filter. Returns true if there is a match, false otherwise or if 'patch' is 0.
Definition at line 771 of file NCPackageSelector.cc.
|
inline |
Empty the std::set of packages selected for automatic changes
Definition at line 507 of file NCPackageSelector.h.
void NCPackageSelector::createPkgLayout | ( | YWidget * | parent, |
NCPkgTable::NCPkgTableType | type | ||
) |
Create layout for the PackageSelector
parent | Parent is PackageSelectorStart |
type | The package table type |
Definition at line 1720 of file NCPackageSelector.cc.
void NCPackageSelector::createYouLayout | ( | YWidget * | parent | ) |
Create layout for the Online Update
parent | Parent is PackageSelectorStart |
Definition at line 1636 of file NCPackageSelector.cc.
bool NCPackageSelector::fillDefaultList | ( | ) |
Fills the default package table
Definition at line 1839 of file NCPackageSelector.cc.
bool NCPackageSelector::fillPatchList | ( | NCPkgMenuFilter::PatchFilter | filter | ) |
Fills the package table with YOU patches matching the filter
filter |
Definition at line 560 of file NCPackageSelector.cc.
bool NCPackageSelector::fillPatchPackages | ( | NCPkgTable * | pkgTable, |
ZyppObj | youPatch, | ||
bool | versions = false |
||
) |
Fills the list of packages belonging to the youPatch
pkgTable | The table widget |
youPatch | Show all packages belonging to the patch |
versions | Show all versions of all packages belonging to the patch |
Definition at line 682 of file NCPackageSelector.cc.
bool NCPackageSelector::fillPatchSearchList | ( | const std::string & | expr, |
bool | checkName, | ||
bool | checkSum | ||
) |
Fills the package table with packages matching the search expression
expr | The search expression |
ignoreCase | Ignore case (true or false) |
checkName | Search in package name (true or false) |
checkSummary | Check the summary (true or false) |
checkProvides | Check in Provides (true or false) |
checkRequires | Check in Requires (true or false) |
Definition at line 508 of file NCPackageSelector.cc.
bool NCPackageSelector::fillUpdateList | ( | ) |
Fills the package table with packages with update problems
Definition at line 630 of file NCPackageSelector.cc.
|
inline |
Get list of packages already selected for automatic changes (usually via 'verify system' call)
Definition at line 490 of file NCPackageSelector.h.
bool NCPackageSelector::handleEvent | ( | const NCursesEvent & | event | ) |
Handle the given event. For the given event (the widget-id is contained in the event) the corresponding handler is executed.
event | The NCurses event |
Definition at line 436 of file NCPackageSelector.cc.
|
inline |
Insert package name into the list of already selected for automatic changes
pkgname | Package name |
Definition at line 499 of file NCPackageSelector.h.
bool NCPackageSelector::LinkHandler | ( | std::string | link | ) |
Handles hyperlinks in package description
link | The link |
Definition at line 1170 of file NCPackageSelector.cc.
bool NCPackageSelector::OkButtonHandler | ( | const NCursesEvent & | event | ) |
Handler function for "OK button pressed"
event | The Ncurses event |
Definition at line 1251 of file NCPackageSelector.cc.
void NCPackageSelector::saveState | ( | ) |
Check for changes
Definition at line 381 of file NCPackageSelector.cc.
void NCPackageSelector::showDiskSpace | ( | ) |
Calls the package mananager (updateDu()) and shows the required disk space
Definition at line 1524 of file NCPackageSelector.cc.
void NCPackageSelector::showDownloadSize | ( | ) |
Shows the total download size
Definition at line 1548 of file NCPackageSelector.cc.
void NCPackageSelector::showInformation | ( | ) |
Creates an NCRichText widget for package (patch) information
Definition at line 882 of file NCPackageSelector.cc.
bool NCPackageSelector::showLicenseAgreement | ( | ZyppSel & | slbPtr, |
std::string | licenseText | ||
) |
Show popup with license.
Definition at line 1399 of file NCPackageSelector.cc.
bool NCPackageSelector::showLicensePopup | ( | std::string | pkgName, |
std::string | license | ||
) |
Shows 'End User License Agreement' popup with license text
pkgName | the package name |
license | the license text |
Definition at line 1474 of file NCPackageSelector.cc.
bool NCPackageSelector::showPackageDependencies | ( | bool | doit | ) |
Checks and shows the dependencies
doit | true: do the check, false: only check if auto check is on |
Definition at line 1445 of file NCPackageSelector.cc.
void NCPackageSelector::showPatchPackages | ( | ) |
Creates an NCPkgTable widget and shows all packages belonging to a patch
Definition at line 939 of file NCPackageSelector.cc.
void NCPackageSelector::showPatchPkgVersions | ( | ) |
Creates an NCPkgTable widget and shows all versions of all packages belonging to a patch
Definition at line 974 of file NCPackageSelector.cc.
bool NCPackageSelector::showPendingLicenseAgreements | ( | ) |
Check for license
Definition at line 1340 of file NCPackageSelector.cc.
void NCPackageSelector::showSelectionDependencies | ( | ) |
Checks and shows the selectiondependencies
Definition at line 1465 of file NCPackageSelector.cc.
void NCPackageSelector::showVersionsList | ( | ) |
Creates an NCPkgTable widget and shows all verions a the selected package
Definition at line 904 of file NCPackageSelector.cc.
void NCPackageSelector::updatePackageList | ( | ) |
Updates the status in list of packages
Definition at line 1510 of file NCPackageSelector.cc.