Reimplemented from OglGui::Window. Definition at line 701 of file TableWindow.h. References OglGui::Window::DisplayFunc(), OglGui::OglWindow::GetDimensions(), Impala::Application::MediaTable::TableDataView::GetEndRow(), Impala::Application::MediaTable::TableWindowColumn::GetHeaderHeight(), Impala::Application::MediaTable::TableDataView::GetMark(), GetRowHeight(), Impala::Application::MediaTable::TableDataViewController::GetTableDataView(), OglGui::OglWindow::H(), HandleZoomView(), Impala::Application::MediaTable::TableDataViewController::MarkToColor(), mColumns, mHorScrollPosition, and OglGui::OglWindow::W(). 00702 { 00703 OGC myOGC; 00704 OGCSave(&myOGC); 00705 00706 int h = H(), w = W(); 00707 int mx = -mHorScrollPosition, my = 0; 00708 int cx, cy, cw, ch; 00709 00710 /* 00711 int mcx, mcy, mcw, mch; 00712 if (mSelecting) 00713 { 00714 mcx = (mMouseXS < mMouseXE) ? mMouseXS : mMouseXE; 00715 mcw = (mMouseXS < mMouseXE) ? mMouseXE-mMouseXS : mMouseXS-mMouseXE; 00716 mcy = (mMouseYS < mMouseYE) ? mMouseYS : mMouseYE; 00717 mch = (mMouseYS < mMouseYE) ? mMouseYE-mMouseYS : mMouseYS-mMouseYE; 00718 GetTableDataView()->MarkAllRows(1, false); 00719 }*/ 00720 00721 SetStipple((short)oglDot); 00722 SetSolidLineColor(0xff777777); 00723 for (int x = 0; x < mColumns.size(); x++) 00724 { 00725 mColumns[x]->GetDimensions(cx,cy,cw,ch); 00726 mx += cw + 2; 00727 if (mx > 0) 00728 DrawLine(mx, 0, mx, h); 00729 } 00730 int hheight = TableWindowColumn::GetHeaderHeight(); 00731 my = hheight; 00732 for (int y = GetTableDataView()->GetStartRow(); y < GetTableDataView()->GetEndRow(); y++) 00733 { 00734 my += GetRowHeight(y); 00735 00736 /*if (mSelecting && (mcy < (h-my + GetRowHeight(y)) && (h-my) < mcy + mch)) 00737 GetTableDataView()->MarkRow(y, 1);*/ 00738 00739 int mark = GetTableDataView()->GetMark(y); 00740 if (mark) 00741 { 00742 int markCol = MarkToColor(mark); // RvB: To prevent 4 calls 00743 SetSolidFillColor(markCol); 00744 FillRectangle(0, h - my, w - 20, GetRowHeight(y)); 00745 } 00746 00747 DrawLine(0, h - my, w - 20, h - my); 00748 } 00749 00750 SetStipple((short)oglSolid); 00751 DrawLine(0, h - hheight, w - 20, h - hheight); 00752 DrawLine(w - 20, 0, w - 20, h - hheight); 00753 00754 /* Disabled to fix MediaTable issue #32 00755 if (mSelecting) 00756 { 00757 // draw the current mouse selection: 00758 SetStipple((short)oglSolid); 00759 SetLineWidth(2.0f); 00760 SetSolidLineColor(0xff444466); 00761 DrawRectangle(mcx,mcy,mcw,mch); 00762 } */ 00763 00764 OGCRestore(&myOGC); 00765 HandleZoomView(); 00766 Window::DisplayFunc(); 00767 }
Here is the call graph for this function:
|