Definition at line 266 of file CheckBoxDrum.h. References OglGui::CheckBox3D::GetSelected(), mCheckBoxes, mNrColumns, mNrRows, and OglGui::CheckBox3D::SetSelected(). Referenced by MouseFunc(). 00267 { 00268 bool mode = false; 00269 int i; 00270 00271 for (i=0; i<mNrRows; i++) 00272 if ( mode = (mCheckBoxes[i*mNrColumns] == cB) ) 00273 break; 00274 if( !mode ) 00275 return; 00276 00277 CheckBox3D *cbTarget; 00278 mode = cB->GetSelected(); 00279 00280 00281 do { 00282 for (int j=1; j<mNrColumns; j++ ) 00283 if (cbTarget = mCheckBoxes[i*mNrColumns+j] ) 00284 cbTarget->SetSelected(mode); 00285 i++; 00286 } while( i<mNrRows && !mCheckBoxes[i*mNrColumns] ); 00287 }
Here is the call graph for this function:
|