two lines per entry

This commit is contained in:
Hendrik Schutter 2022-09-30 21:20:23 +02:00
parent b73e1765b5
commit 70bc8cffb4
2 changed files with 12 additions and 7 deletions

View File

@ -122,7 +122,6 @@ void reHDD::ThreadCheckFrozenDrives()
{ {
if(it->state == Drive::SHRED_ACTIVE) if(it->state == Drive::SHRED_ACTIVE)
{ {
it->checkFrozenDrive(); it->checkFrozenDrive();
} }
} }

View File

@ -9,8 +9,8 @@
static std::mutex mxUIrefresh; static std::mutex mxUIrefresh;
TUI::TUI(void) TUI::TUI(void){
{
} }
/** /**
@ -61,7 +61,7 @@ void TUI::updateTUI(list <Drive>* plistDrives, uint8_t u8SelectedEntry)
refresh(); refresh();
overview=createOverViewWindow((int)(u16StdscrX/3), (u16StdscrY-3)); overview=createOverViewWindow((int)(u16StdscrX/3), (u16StdscrY));
wrefresh(overview); wrefresh(overview);
systemview=createSystemStats((int)(u16StdscrX/3), 10, u16StdscrX-(int)(u16StdscrX/3)-2, (u16StdscrY-11 )); systemview=createSystemStats((int)(u16StdscrX/3), 10, u16StdscrX-(int)(u16StdscrX/3)-2, (u16StdscrY-11 ));
@ -167,7 +167,13 @@ void TUI::updateTUI(list <Drive>* plistDrives, uint8_t u8SelectedEntry)
break; break;
} }
WINDOW * tmp = createEntryWindow( ((int)(u16StdscrX/3) - 2), 5, 3, (5* (u8Index) )+3, (distance(plistDrives->begin(), it)+1), sModelFamily, sSerial, sCapacity, sState, sTime, sSpeed, sTemp, bSelectedEntry); uint16_t u16StartOffsetY = (6 * (u8Index));
if(u8Index == 0){
u16StartOffsetY = u16StartOffsetY + 2;
}
WINDOW * tmp = createEntryWindow( ((int)(u16StdscrX/3) - 2), 4, 3, u16StartOffsetY, (distance(plistDrives->begin(), it)+1), sModelFamily, sSerial, sCapacity, sState, sTime, sSpeed, sTemp, bSelectedEntry);
wrefresh(tmp); wrefresh(tmp);
u8Index++; u8Index++;
}//end loop though drives }//end loop though drives
@ -245,7 +251,7 @@ void TUI::centerTitle(WINDOW *pwin, const char * title)
WINDOW* TUI::createOverViewWindow( int iXSize, int iYSize) WINDOW* TUI::createOverViewWindow( int iXSize, int iYSize)
{ {
WINDOW *newWindow; WINDOW *newWindow;
newWindow = newwin(iYSize, iXSize, 2, 2); newWindow = newwin(iYSize, iXSize, 1, 2);
wbkgd(newWindow, COLOR_PAIR(COLOR_AREA_OVERVIEW)); wbkgd(newWindow, COLOR_PAIR(COLOR_AREA_OVERVIEW));
box(newWindow, ACS_VLINE, ACS_HLINE); box(newWindow, ACS_VLINE, ACS_HLINE);
@ -258,7 +264,7 @@ WINDOW* TUI::createOverViewWindow( int iXSize, int iYSize)
WINDOW* TUI::createDetailViewWindow( int iXSize, int iYSize, int iXStart, Drive drive) WINDOW* TUI::createDetailViewWindow( int iXSize, int iYSize, int iXStart, Drive drive)
{ {
WINDOW *newWindow; WINDOW *newWindow;
newWindow = newwin(iYSize, iXSize, 2, iXStart); newWindow = newwin(iYSize, iXSize, 1, iXStart);
wbkgd(newWindow, COLOR_PAIR(COLOR_AREA_DETAIL)); wbkgd(newWindow, COLOR_PAIR(COLOR_AREA_DETAIL));
box(newWindow, ACS_VLINE, ACS_HLINE); box(newWindow, ACS_VLINE, ACS_HLINE);