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

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

Definition at line 105 of file TableWindow.h.

References OglGui::OglWindow::GetDimensions(), mColumns, mStaticColumnCount, mStaticColumnWidth, and OglGui::OglWindow::W().

Referenced by AddColumnsFromDataSource(), and ReshapeFunc().

00106     {
00107         int x,y,w,h;
00108         int mx = 0;
00109         int maxw = W() - 60;
00110         int wpc = 0;
00111         if (mColumns.size() - mStaticColumnCount > 0)
00112            wpc = (maxw-mStaticColumnWidth)/(mColumns.size()-mStaticColumnCount);
00113 
00114         for (int i=0; i<mColumns.size(); i++)
00115         {
00116             mColumns[i]->GetDimensions(x,y,w,h);
00117             x = mx;
00118             if (mColumns[i]->GetColumnWidthDynamic())
00119                 w = wpc;
00120 
00121             mx += w + 2;
00122             mColumns[i]->SetDimensions(x,y,w,h);
00123             /*
00124             ILOG_DEBUG("Col " << i << " dyn?" <<
00125                        mColumns[i]->GetColumnWidthDynamic() << " x=" << x <<
00126                        " w=" << w);
00127             */
00128         }
00129     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:16:50 2011 for ImpalaSrc by  doxygen 1.5.1