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

void Impala::Visualization::DirImViewer::HandleDocDimensions ( bool  resizing = false,
bool  reset = false 
) [inline]

Definition at line 221 of file DirImViewer.h.

References OglGui::OglWindow::H(), mCellH, mCellW, OglGui::DocDimensions::mDocX, OglGui::DocDimensions::mDocY, mExtH, mFixedCellDims, mNrOfImOnRow, mOldStartIm, mShowNames, NrOfFiles(), NrRows(), OglGui::DocDimensions::SetDocDimensions(), and OglGui::OglWindow::W().

Referenced by OpenDir(), and ReshapeFunc().

00222     {
00223         if (!mFixedCellDims)
00224         {
00225             mCellW = W() / mNrOfImOnRow;
00226             mCellH = mCellW + (mShowNames ? mExtH : 0);
00227         }
00228         else if ((mNrOfImOnRow = W() / mCellW)<1)
00229             mNrOfImOnRow = 1;
00230 
00231         int docH = (NrOfFiles() / mNrOfImOnRow) * mCellH;
00232 
00233         if (resizing && mOldStartIm != -1)
00234         {
00235             int row = mOldStartIm / mNrOfImOnRow;
00236             mDocY = H() - (NrRows() - row) * mCellH;
00237         }
00238         if (mDocY < (-docH+H()))
00239             mDocY = -docH+H();
00240         if (reset)
00241             SetDocDimensions(0,-docH+H(),W(), docH);
00242         else
00243             SetDocDimensions(mDocX, mDocY, W(), docH);
00244     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:38 2011 for ImpalaSrc by  doxygen 1.5.1