Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::MediaTable::TableWindow::HandleColumnPositions (  )  [inline]

Definition at line 132 of file TableWindow.h.

References OglGui::OglWindow::GetDimensions(), mColumns, mHorScrollBar, OglGui::ScrollBar::SetRange(), UpdateHorColumnPositions(), and OglGui::OglWindow::W().

Referenced by AddColumnsFromDataSource(), ColumnCondense(), ColumnWidthUpdated(), and ReshapeFunc().

00133     {
00134         int x,y,w,h;
00135         int mx = 0;
00136         int maxw = W() - 60;
00137         int wpc = 20;
00138 
00139         // phase 1: establish where each column should be displayed in an infinite table:
00140         for (int i=0; i<mColumns.size(); i++)
00141         {
00142             mColumns[i]->GetDimensions(x,y,w,h);
00143             x = mx;
00144             if (mColumns[i]->GetColumnWidthDynamic())
00145                 w = wpc;
00146             mx += w + 2;
00147         }
00148         mHorScrollBar->SetRange(mx, W());
00149 
00150         // phase 2: redraw using the current scrollbar position:
00151         UpdateHorColumnPositions();
00152     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:15:37 2011 for ImpalaSrc by  doxygen 1.5.1