added states for tasks
This commit is contained in:
@ -23,12 +23,21 @@ protected:
|
||||
public:
|
||||
|
||||
enum UserInput { UpKey, DownKey, Abort, Shred, Delete, Enter, ESC, Undefined};
|
||||
struct MenuState
|
||||
{
|
||||
bool bAbort;
|
||||
bool bShred;
|
||||
bool bDelete;
|
||||
bool bConfirmAbort;
|
||||
bool bConfirmShred;
|
||||
bool bConfirmDelete;
|
||||
};
|
||||
|
||||
TUI(void);
|
||||
|
||||
static void initTUI();
|
||||
|
||||
void updateTUI(vector <Drive>* pvecDrives, int32_t i32SelectedEntry);
|
||||
void updateTUI(vector <Drive>* pvecDrives, int32_t i32SelectedEntry, struct MenuState menustate);
|
||||
|
||||
static enum UserInput readUserInput();
|
||||
|
||||
@ -37,17 +46,17 @@ private:
|
||||
static string sRamUsage;
|
||||
static string sLocalTime;
|
||||
|
||||
WINDOW *detailview;
|
||||
WINDOW *overview;
|
||||
WINDOW *systemview;
|
||||
|
||||
WINDOW* detailview;
|
||||
WINDOW* overview;
|
||||
WINDOW* systemview;
|
||||
WINDOW* menuview;
|
||||
|
||||
static void centerTitle(WINDOW *pwin, const char * title);
|
||||
static WINDOW *createOverViewWindow( int iXSize, int iYSize);
|
||||
static WINDOW *createDetailViewWindow( int iXSize, int iYSize, int iXStart, Drive drive);
|
||||
static WINDOW *createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart,string sModelFamily, string sModelName, string sCapacity, bool bSelected);
|
||||
static WINDOW *createSystemStats(int iXSize, int iYSize, int iYStart);
|
||||
|
||||
static WINDOW *createMenuView(int iXSize, int iYSize, int iXStart, int iYStart, struct MenuState menustate);
|
||||
};
|
||||
|
||||
#endif // TUI_H_
|
Reference in New Issue
Block a user