CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
TableBase Class Referenceabstract
Inheritance diagram for TableBase:
cards::CEventHandler TableCollection TablePackage

Public Member Functions

 TableBase (int x, int y, int w, int h, const char *l=0)
 Constructor. More...
 
virtual ~TableBase ()
 Destructor. More...
 
virtual void refresh_table ()=0
 Populate the tab with package installed. More...
 
void autowidth (int pad)
 Automatically set columns widths to the longuest string.
 
void resize_window ()
 Resize parent widows to size of tableau.
 
void setFilter (const string &pValue)
 Redefine filter and refresh the tab.
 

Protected Member Functions

void draw_cell (TableContext context, int R=0, int C=0, int X=0, int Y=0, int W=0, int H=0)
 Handle drawing all cells in table.
 
void sort_column (int col, int reverse=0)
 Sort a column up or down.
 
void draw_sort_arrow (int X, int Y, int W, int H)
 Draw sort arrow.
 
void OnDoJobListFinished (const CEH_RC rc)
 
void OnRefreshPackageFinished (const CEH_RC rc)
 
void OnJobListChange (const CEH_RC rc)
 Callback.
 
virtual void OnDrawCell (TableContext, int, int, int, int, int, int)
 
virtual void OnEvent (TableContext, int, int)
 
- Protected Member Functions inherited from cards::CEventHandler
virtual void OnLogMessage (const string &Message)
 
virtual void OnSyncFinished (const CEH_RC rc)
 
virtual void OnProgressInfo (int percent)
 
virtual void OnPackageInfo (CPackage &package)
 

Protected Attributes

vector< string > colTitle
 
string _filter
 
vector< Row_rowdata
 
int _sort_reverse
 
int _sort_lastcol
 
CWrapper_cards
 

Additional Inherited Members

- Static Public Member Functions inherited from cards::CEventHandler
static const string getReasonCodeString (const CEH_RC rc)
 Convert Reason Code Enum to human readable text.
 

Constructor & Destructor Documentation

◆ TableBase()

TableBase::TableBase ( int  x,
int  y,
int  w,
int  h,
const char *  l = 0 
)

Constructor.

Constructor of Tableau class

◆ ~TableBase()

virtual TableBase::~TableBase ( )
inlinevirtual

Destructor.

Destructor of Tableau class

Member Function Documentation

◆ refresh_table()

virtual void TableBase::refresh_table ( )
pure virtual

Populate the tab with package installed.

Get installed package from cards and extract a list to be displayed as a list sorted by package name, description, version

Implemented in TableCollection, and TablePackage.


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