Definition at line 232 of file ImageSetIdxGrid.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 AddImageSetIdxs(), ReshapeFunc(), and UpdateLayout(). 00233 { 00234 if (!mFixedCellDims) 00235 { 00236 mCellW = W() / mNrOfImOnRow; 00237 mCellH = mCellW + (mShowNames ? mExtH : 0); 00238 } 00239 else if ((mNrOfImOnRow = W() / mCellW)<1) 00240 mNrOfImOnRow = 1; 00241 00242 int docH = (NrOfFiles() / mNrOfImOnRow + 1) * mCellH; 00243 00244 if (resizing && mOldStartIm != -1) 00245 { 00246 int row = mOldStartIm / mNrOfImOnRow; 00247 mDocY = H() - (NrRows() - row + 1) * mCellH; 00248 } 00249 if (mDocY < (-docH+H())) 00250 mDocY = -docH+H(); 00251 if (reset) 00252 SetDocDimensions(0,-docH+H(),W(), docH); 00253 else 00254 SetDocDimensions(mDocX, mDocY, W(), docH); 00255 }
Here is the call graph for this function:
|