Пример #1
0
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);
	}
Пример #2
0
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 );
		}
	
	}
// ----------------------------------------------------------------------------
// CCreateSpeakerSinkDialog::PreLayoutDynInitL()
// .
// ----------------------------------------------------------------------------
//
void CCreateSpeakerSinkDialog::PreLayoutDynInitL()
    {
    CAknForm::PreLayoutDynInitL();
    
    const RPointerArray<CMCETestUIEngineSink>& sinks = 
            iStream.SinksL();
   	CMceMediaSink& mediaSink = static_cast<CMceMediaSink&>(sinks[iSinkIndex]->Sink());
    	CMceSpeakerSink& speakerSink = static_cast<CMceSpeakerSink&>(mediaSink);
    	
    CEikNumberEditor* volume = static_cast<CEikNumberEditor*>(
                                  Control( ESpeakerSinkVolumeSetting ) );
    volume->SetNumber(speakerSink.VolumeL());   
 //   volume->SetNumber(50);   
 
 	CEikNumberEditor* routing = static_cast<CEikNumberEditor*>(
                                  Control( ESpeakerSinkRoutingSetting ) );
    routing->SetNumber(speakerSink.RoutingL());   
    
    
    }
Пример #4
0
void CSettingsDialog::PreLayoutDynInitL()
	{
	// Populate dialog with initial settings
	CEikEdwin* name=(CEikEdwin*)Control(EServerName);
	name->SetTextL(&iConnectSettings.iAddress);
	CEikEdwin* page=(CEikEdwin*)Control(EPage);
	TBuf<KSettingFieldWidth> temp;
	temp.Copy(iConnectSettings.iPage);
	page->SetTextL(&temp);
	CEikNumberEditor* port = (CEikNumberEditor*)Control(EPort);
	port->SetNumber(iConnectSettings.iPortNum);
	}
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);
    	}
    }
Пример #6
0
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 );
	}