void CRecordFormatOptionsDialog::PreLayoutDynInitL() { // set up bit rate, sample, channel, codec lists CFormatOptionsDialog::PreLayoutDynInitL(); // add gain and balance, which are recording specific parameters CEikNumberEditor* gain = static_cast<CEikNumberEditor*>(Control(EGain)); gain->SetMinimumAndMaximum(0,iMaxGain); gain->SetNumber(iMaxGain/2); CEikNumberEditor* balance = static_cast<CEikNumberEditor*>(Control(EBalance)); balance->SetMinimumAndMaximum(KMMFBalanceMaxLeft,KMMFBalanceMaxRight); balance->SetNumber(KMMFBalanceCenter); }
void CMVSVolumeDialog::InitControl( const TInt aId, const TInt aRamp, const TInt aStart, const TInt aFinish ) { CEikNumberEditor* control = static_cast<CEikNumberEditor*> ( Control(aId) ); if(control) { control->SetNumber(aRamp); control->SetMinimumAndMaximum( aStart, aFinish ); } }
void CMVSMultipleScreenDialog::PreLayoutDynInitL() { // Get a downcasted pointer to the controls CEikNumberEditor* myScreenControl = static_cast<CEikNumberEditor*>(Control(EMVSCmdMultiScreen)); //Now seed the controls with appropriate values if(myScreenControl) { myScreenControl->SetNumber(iScreenNumber); myScreenControl->SetMinimumAndMaximum(0, ControlEnv()->WsSession().NumberOfScreens() - 1); } }
void CMVSCropDialog::InitControl( const TInt aId, const TInt aPos, const TInt aStart, const TInt aFinish ) { CEikNumberEditor* control = static_cast<CEikNumberEditor*> ( Control(aId) ); control->SetNumber(aPos); control->SetMinimumAndMaximum( aStart, aFinish ); }