#include <NCFileSelection.h>
Inheritance diagram for NCFileSelection:
Public Types | |
enum | NCFileSelectionType { T_Overview, T_Detailed, T_Unknown } |
Public Member Functions | |
NCFileSelection (NCWidget *parent, const YWidgetOpt &opt, NCFileSelectionType type, const YCPString &iniDir) | |
virtual | ~NCFileSelection () |
NCFileInfo | getFileInfo (int index) |
void | setTableType (NCFileSelectionType type) |
virtual void | addLine (const vector< string > &elements, const NCFileInfo &fileInfo) |
unsigned int | getNumLines () |
void | drawList () |
virtual void | itemsCleared () |
virtual void | fillHeader ()=0 |
virtual bool | createListEntry (const NCFileInfo &fileInfo)=0 |
string | getCurrentDir () |
virtual bool | fillList ()=0 |
void | setStartDir (const YCPString &start) |
Protected Member Functions | |
void | setCurrentDir () |
string | getCurrentLine () |
NCursesEvent | handleKeyEvents (wint_t key) |
Protected Attributes | |
string | startDir |
string | currentDir |
NCFileSelectionType | tableType |
Private Member Functions | |
NCFileSelection & | operator= (const NCFileSelection &) |
NCFileSelection (const NCFileSelection &) | |
NCFileSelectionTag * | getTag (const int &index) |
|
|
|
|
|
Constructor |
|
|
|
This method is called to add a line to the file list.
|
|
Creates a line in the package table.
Implemented in NCFileTable, and NCDirectoryTable. |
|
Draws the file list (has to be called after the loop with addLine() calls) |
|
Fills the header of the table
Implemented in NCFileTable, and NCDirectoryTable. |
|
Fill the list of diretcories or files
Implemented in NCFileTable, and NCDirectoryTable. |
|
Get the current directory
|
|
|
|
Get the file info.
|
|
Get number of lines ( list entries ) |
|
|
|
|
|
Clears the package list Reimplemented from NCTable. |
|
|
|
|
|
Set the start directory |
|
Set the type of the table widget
|
|
|
|
|
|
|