libyui-ncurses-pkg
2.48.2
|
Public Member Functions | |
NCPkgFilterPattern (YWidget *parent, YTableHeader *header, NCPackageSelector *pkg) | |
void | createLayout (YWidget *parent) |
bool | fillPatternList () |
Fills the std::list with the available selections (and the status info) More... | |
std::string | showDescription (ZyppObj objPtr) |
void | showPatternPackages () |
Shows the popup with the add ons (package categories). More... | |
![]() | |
NCPkgTable (YWidget *parent, YTableHeader *tableHeader) | |
Constructor. | |
virtual void | addLine (ZyppStatus status, const std::vector< std::string > &elements, ZyppObj objPtr, ZyppSel slbPtr) |
This method is called to add a line to the package list. More... | |
void | drawList () |
Draws the package list (has to be called after the loop with addLine() calls) | |
virtual void | itemsCleared () |
Clears the package list. | |
virtual void | cellChanged (int index, int colnum, const std::string &newtext) |
Changes the contents of a certain cell in table. More... | |
NClabel | getCellContents (int index, int colnum) |
Returns the contents of a certain cell in table. More... | |
void | setPackager (NCPackageSelector *pkg) |
Sets the member variable PackageSelector *packager. More... | |
bool | changeStatus (ZyppStatus newstat, const ZyppSel &slbPtr, ZyppObj objPtr, bool singleChange) |
Informs the package manager about the status change of the currently selected package and updates the states of all packages in the list. More... | |
bool | changeObjStatus (int key) |
bool | changeListObjStatus (NCPkgTableListAction key) |
bool | toggleObjStatus () |
bool | updateTable () |
Set the status information if status has changed. More... | |
ZyppStatus | getStatus (int index) |
Gets the currently displayed package status. More... | |
bool | setTableType (NCPkgTableType type, NCPkgStatusStrategy *strategy) |
Sets the type of the table and the status strategy (which means call particular methods to set/get the status for different zypp::ResObjects (zypp::Patch, zypp::Package or available zypp::Package) More... | |
NCPkgTableType | getTableType () |
ZyppObj | getDataPointer (int index) |
Gets the data pointer of a certain package. More... | |
ZyppSel | getSelPointer (int index) |
Gets the selectable pointer of a certain package. More... | |
unsigned int | getNumLines () |
Returns the number of lines in the table (the table size) More... | |
void | fillHeader () |
Fills the header of the table. More... | |
bool | createListEntry (ZyppPkg pkgPtr, ZyppSel slbPtr) |
Creates a line in the package table. More... | |
bool | createPatchEntry (ZyppPatch pkgPtr, ZyppSel slbPtr) |
Creates a line in the YOU patch table. More... | |
bool | createInfoEntry (std::string text) |
Creates a line in the table shwing an info text. More... | |
bool | showInformation () |
Show the corresponding information (e.g. More... | |
void | setVisibleInfo (NCPkgTableInfoType info) |
NCPkgTableInfoType | VisibleInfo () |
bool | fillAvailableList (ZyppSel slb) |
bool | fillSummaryList (NCPkgTableListType type) |
void | updateInfo (ZyppObj pkgPtr, ZyppSel slbPtr, NCPkgTableInfoType mode) |
Protected Member Functions | |
std::string | getCurrentLine () |
virtual NCursesEvent | wHandleInput (wint_t ch) |
Handles the events concerning the package table (e.g. More... | |
Additional Inherited Members | |
![]() | |
enum | NCPkgTableType { T_Packages, T_Availables, T_Patches, T_Update, T_PatchPkgs, T_Selections, T_Languages, T_MultiVersion, T_Unknown } |
enum | NCPkgTableListAction { A_Install, A_Delete, A_Keep, A_UpdateNewer, A_Update, A_Unknown } |
enum | NCPkgTableListType { L_Changes, L_Installed, L_Unknown } |
enum | NCPkgTableInfoType { I_Descr, I_Technical, I_Versions, I_Files, I_Deps, I_PatchDescr, I_PatchPkgs } |
Definition at line 60 of file NCPkgFilterPattern.h.
bool NCPkgFilterPattern::fillPatternList | ( | ) |
Fills the std::list with the available selections (and the status info)
Definition at line 281 of file NCPkgFilterPattern.cc.
void NCPkgFilterPattern::showPatternPackages | ( | ) |
Shows the popup with the add ons (package categories).
Definition at line 138 of file NCPkgFilterPattern.cc.
|
protectedvirtual |
Handles the events concerning the package table (e.g.
scroll the list, change the package status, ...)
key | The key which is pressed |
Reimplemented from NCPkgTable.
Definition at line 226 of file NCPkgFilterPattern.cc.