two lines per entry
This commit is contained in:
parent
b73e1765b5
commit
70bc8cffb4
|
@ -122,7 +122,6 @@ void reHDD::ThreadCheckFrozenDrives()
|
|||
{
|
||||
if(it->state == Drive::SHRED_ACTIVE)
|
||||
{
|
||||
|
||||
it->checkFrozenDrive();
|
||||
}
|
||||
}
|
||||
|
|
18
src/tui.cpp
18
src/tui.cpp
|
@ -9,8 +9,8 @@
|
|||
|
||||
static std::mutex mxUIrefresh;
|
||||
|
||||
TUI::TUI(void)
|
||||
{
|
||||
TUI::TUI(void){
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,7 +61,7 @@ void TUI::updateTUI(list <Drive>* plistDrives, uint8_t u8SelectedEntry)
|
|||
|
||||
refresh();
|
||||
|
||||
overview=createOverViewWindow((int)(u16StdscrX/3), (u16StdscrY-3));
|
||||
overview=createOverViewWindow((int)(u16StdscrX/3), (u16StdscrY));
|
||||
wrefresh(overview);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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);
|
||||
u8Index++;
|
||||
}//end loop though drives
|
||||
|
@ -245,7 +251,7 @@ void TUI::centerTitle(WINDOW *pwin, const char * title)
|
|||
WINDOW* TUI::createOverViewWindow( int iXSize, int iYSize)
|
||||
{
|
||||
WINDOW *newWindow;
|
||||
newWindow = newwin(iYSize, iXSize, 2, 2);
|
||||
newWindow = newwin(iYSize, iXSize, 1, 2);
|
||||
|
||||
wbkgd(newWindow, COLOR_PAIR(COLOR_AREA_OVERVIEW));
|
||||
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 *newWindow;
|
||||
newWindow = newwin(iYSize, iXSize, 2, iXStart);
|
||||
newWindow = newwin(iYSize, iXSize, 1, iXStart);
|
||||
wbkgd(newWindow, COLOR_PAIR(COLOR_AREA_DETAIL));
|
||||
box(newWindow, ACS_VLINE, ACS_HLINE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue