/** * @file tui.h * @brief display user interface * @author hendrik schutter * @date 03.08.2020 */ #ifndef TUI_H_ #define TUI_H_ #include "reHDD.h" #define COLOR_AREA_STDSCR 1 #define COLOR_AREA_OVERVIEW 2 #define COLOR_AREA_ENTRY 3 #define COLOR_GRAY 8 class TUI { protected: public: TUI(void); static void initTUI(); void updateTUI(vector * pvecDrives); private: static string sCpuUsage; static string sRamUsage; static string sLocalTime; WINDOW *detailview; WINDOW *overview; vector vWinDriveEntries; static void centerTitle(WINDOW *pwin, const char * title); static WINDOW *createOverViewWindow( int iXSize, int iYSize); static WINDOW *createDetailViewWindow( int iXSize, int iYSize, int iXStart); static WINDOW *createEntryWindow(int iXSize, int iYSize, int iXStart, int iYStart,string sModelFamily, string sModelName, string sCapacity); }; #endif // TUI_H_