Definition at line 168 of file TableWindow.h. References OglGui::OglWindow::GetDimensions(), mColumnCondense, mColumnCondenseEnabled, mColumns, mHorScrollPosition, Impala::Application::MediaTable::TableWindowColumn::SetUpdatingColumnWidths(), UpdateRows(), and OglGui::OglWindow::W(). Referenced by HandleColumnPositions(), OnScroll(), and SetColumnCondense(). 00169 { 00170 int x,y,w,h; 00171 int mx = -mHorScrollPosition; 00172 int maxw = W() - 60; 00173 int wpc = 20; 00174 00175 TableWindowColumn::SetUpdatingColumnWidths(true); 00176 for (int i=0; i<mColumns.size(); i++) 00177 { 00178 mColumns[i]->GetDimensions(x,y,w,h); 00179 x = mx; 00180 if (mColumns[i]->GetColumnWidthDynamic()) 00181 { 00182 if (mColumnCondenseEnabled) 00183 { 00184 int dc = (mColumnCondense-i); 00185 if (dc<0) dc=-dc; 00186 double multiplier = 1.0; 00187 if (dc == 4) multiplier = 1.1; 00188 if (dc == 3) multiplier = 1.2; 00189 if (dc == 2) multiplier = 1.6; 00190 if (dc == 1) multiplier = 2.2; 00191 if (dc == 0) multiplier = 6.0; 00192 w = wpc * multiplier; 00193 } else { 00194 w = wpc; 00195 } 00196 } 00197 mx += w + 2; 00198 mColumns[i]->SetDimensions(x,y,w,h); 00199 } 00200 UpdateRows(); 00201 TableWindowColumn::SetUpdatingColumnWidths(false); 00202 }
Here is the call graph for this function:
|