void CNickForm::SetInitialCurrentLine()
{
	CALLSTACKITEM(_L("CNickForm::SetInitialCurrentLine"));

	ActivateFirstPageL();
	TryChangeFocusToL(2);
}
示例#2
0
void CVoIPForm::SetInitialCurrentLine() //virtual func from base class
    {
    CEikDialog::SetInitialCurrentLine();

    CEikCaptionedControl* control = GetFirstLineOnFirstPageOrNull();
    if (control)
        {
        TryChangeFocusToL(control->iId);//Id of focused control
        }
    }
// -----------------------------------------------------------------------------
// CLandmarksEditDialog::SetInitialCurrentLine
// 
// (other items were commented in a header).
// -----------------------------------------------------------------------------
//
void CLandmarksEditDialog::SetInitialCurrentLine()
    {
    CAknForm::SetInitialCurrentLine();
    
    if (iInitialFocusFieldId >= ELandmarkNameField &&
        iInitialFocusFieldId <= ELandmarkCountryField)
        {
        TInt err = KErrNone;
        TRAP(err, TryChangeFocusToL(iInitialFocusFieldId));
        }
    }
示例#4
0
// Checks if data entered by user is correct
TBool COptionsDialog::OkToExitL(TInt)
{
    if (CheckBoxState(EPingNumPackCheckBox)==CEikButtonBase::ESet)
    {
        iPingModel->iTotalPackets=NumberEditorValue(EPingNumPackNum);
        iPingModel->iPackLimit=ETrue;
    }
    else
        iPingModel->iPackLimit=EFalse;  //Indicates Unlimited Packets

    // This option is disabled by now. Code is commented pingmodel.cpp
    /* DO NOT REMOVE!!!
    if (CheckBoxState(EPingHopLimitCheckBox)==CEikButtonBase::ESet)
        iPingModel->iHopLimit=NumberEditorValue(EPingHopLimitNum);
    else
        iPingModel->iHopLimit=0;    //Indicates Hop Limit won't be set
    
    iPingModel->iNumericOutput=(CheckBoxState(EPingNoResolvCheckBox)==CEikButtonBase::ESet);
    */
    iPingModel->iQuiet=(CheckBoxState(EPingQuietCheckBox)== CEikButtonBase::ESet);
    iPingModel->iVerbose=(CheckBoxState(EPingVerboseCheckBox)== CEikButtonBase::ESet);
    iPingModel->iDebug=(CheckBoxState(EPingDebugCheckBox)== CEikButtonBase::ESet);

    iPingModel->iSecWait=NumberEditorValue(EPingSecNum);    //Time between packets
    iPingModel->iLastSecWait=NumberEditorValue(EPingLastSecNum);    //Time between packets  
    iPingModel->iPacketDataSize=NumberEditorValue(EPingPackSizeNum);
    GetEdwinText(iPingModel->iPattern,EPingPatternNum);
    //Check the pattern is hexadecimal
    TLex lex(iPingModel->iPattern);
    while (!lex.Eos())
    {
        if (!lex.Get().IsHexDigit())
        {
            CEikonEnv::Static()->InfoMsg(_L("Bad Pattern (Must be Hexadecimal)"));
            TryChangeFocusToL(EPingPatternNum);
            return EFalse;
        }

    }
    return ETrue;
}