📄 aknexformsaveform.cpp
字号:
Line( EAknExFormDlgCtrlIdDate04 )->GetFullCaptionText();
iDateLabel4 = dateLabel4;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdDate05 ) )
{
iDateData5 = TTimeEditorValue( EAknExFormDlgCtrlIdDate05 );
TPtrC dateLabel5 =
Line( EAknExFormDlgCtrlIdDate05 )->GetFullCaptionText();
iDateLabel5 = dateLabel5;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdDate06 ) )
{
iDateData6 = TTimeEditorValue( EAknExFormDlgCtrlIdDate06 );
TPtrC dateLabel6 =
Line( EAknExFormDlgCtrlIdDate06 )->GetFullCaptionText();
iDateLabel6 = dateLabel6;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdTime01 ) )
{
iTimeData1 = TTimeEditorValue( EAknExFormDlgCtrlIdTime01 );
TPtrC timeLabel1 =
Line( EAknExFormDlgCtrlIdTime01 )->GetFullCaptionText();
iTimeLabel1 = timeLabel1;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdTime02 ) )
{
iTimeData2 = TTimeEditorValue( EAknExFormDlgCtrlIdTime02 );
TPtrC timeLabel2 =
Line( EAknExFormDlgCtrlIdTime02 )->GetFullCaptionText();
iTimeLabel2 = timeLabel2;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdTime03 ) )
{
iTimeData3 = TTimeEditorValue( EAknExFormDlgCtrlIdTime03 );
TPtrC timeLabel3 =
Line( EAknExFormDlgCtrlIdTime03 )->GetFullCaptionText();
iTimeLabel3 = timeLabel3;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdTime04 ) )
{
iTimeData4 = TTimeEditorValue( EAknExFormDlgCtrlIdTime04 );
TPtrC timeLabel4 =
Line( EAknExFormDlgCtrlIdTime04 )->GetFullCaptionText();
iTimeLabel4 = timeLabel4;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdTime05 ) )
{
iTimeData5 = TTimeEditorValue( EAknExFormDlgCtrlIdTime05 );
TPtrC timeLabel5 =
Line( EAknExFormDlgCtrlIdTime05 )->GetFullCaptionText();
iTimeLabel5 = timeLabel5;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdTime06 ) )
{
iTimeData6 = TTimeEditorValue( EAknExFormDlgCtrlIdTime06 );
TPtrC timeLabel6 =
Line( EAknExFormDlgCtrlIdTime06 )->GetFullCaptionText();
iTimeLabel6 = timeLabel6;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdDuration01 ) )
{
iDurationData1 =
DurationEditorValue( EAknExFormDlgCtrlIdDuration01 );
TPtrC durationLabel1 =
Line( EAknExFormDlgCtrlIdDuration01 )->GetFullCaptionText();
iDurationLabel1 = durationLabel1;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdDuration02 ) )
{
iDurationData2 =
DurationEditorValue( EAknExFormDlgCtrlIdDuration02 );
TPtrC durationLabel2 =
Line( EAknExFormDlgCtrlIdDuration02 )->GetFullCaptionText();
iDurationLabel2 = durationLabel2;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdDuration03 ) )
{
iDurationData3 =
DurationEditorValue( EAknExFormDlgCtrlIdDuration03 );
TPtrC durationLabel3 =
Line( EAknExFormDlgCtrlIdDuration03 )->GetFullCaptionText();
iDurationLabel3 = durationLabel3;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdDuration04 ) )
{
iDurationData4 =
DurationEditorValue( EAknExFormDlgCtrlIdDuration04 );
TPtrC durationLabel4 =
Line( EAknExFormDlgCtrlIdDuration04 )->GetFullCaptionText();
iDurationLabel4 = durationLabel4;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdDuration05 ) )
{
iDurationData5 =
DurationEditorValue( EAknExFormDlgCtrlIdDuration05 );
TPtrC durationLabel5 =
Line( EAknExFormDlgCtrlIdDuration05 )->GetFullCaptionText();
iDurationLabel5 = durationLabel5;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdDuration06 ) )
{
iDurationData6 =
DurationEditorValue( EAknExFormDlgCtrlIdDuration06 );
TPtrC durationLabel6 =
Line( EAknExFormDlgCtrlIdDuration06 )->GetFullCaptionText();
iDurationLabel6 = durationLabel6;
}
CEikSecretEditor* secretEd1 =
( CEikSecretEditor* ) ControlOrNull( EAknExFormDlgCtrlIdSecret01 );
if ( secretEd1 )
{
secretEd1->GetText( iSecretData1 );
TPtrC secretLabel1 =
Line( EAknExFormDlgCtrlIdSecret01 )->GetFullCaptionText();
iSecretLabel1 = secretLabel1;
}
CEikSecretEditor* secretEd2 =
( CEikSecretEditor* ) ControlOrNull( EAknExFormDlgCtrlIdSecret02 );
if ( secretEd2 )
{
secretEd2->GetText( iSecretData2 );
TPtrC secretLabel2 =
Line( EAknExFormDlgCtrlIdSecret02 )->GetFullCaptionText();
iSecretLabel2 = secretLabel2;
}
CEikSecretEditor* secretEd3 =
( CEikSecretEditor* ) ControlOrNull( EAknExFormDlgCtrlIdSecret03 );
if ( secretEd3 )
{
secretEd3->GetText( iSecretData3 );
TPtrC secretLabel3 =
Line( EAknExFormDlgCtrlIdSecret03 )->GetFullCaptionText();
iSecretLabel3 = secretLabel3;
}
CEikSecretEditor* secretEd4 =
( CEikSecretEditor* ) ControlOrNull( EAknExFormDlgCtrlIdSecret04 );
if ( secretEd4 )
{
secretEd4->GetText( iSecretData4 );
TPtrC secretLabel4 =
Line( EAknExFormDlgCtrlIdSecret04 )->GetFullCaptionText();
iSecretLabel4 = secretLabel4;
}
CEikSecretEditor* secretEd5 =
( CEikSecretEditor* ) ControlOrNull( EAknExFormDlgCtrlIdSecret05 );
if ( secretEd5 )
{
secretEd5->GetText( iSecretData5 );
TPtrC secretLabel5 =
Line( EAknExFormDlgCtrlIdSecret05 )->GetFullCaptionText();
iSecretLabel5 = secretLabel5;
}
CEikSecretEditor* secretEd6 = ( CEikSecretEditor* ) ControlOrNull( EAknExFormDlgCtrlIdSecret06 );
if ( secretEd6 )
{
secretEd6->GetText( iSecretData6 );
TPtrC secretLabel6 =
Line( EAknExFormDlgCtrlIdSecret06 )->GetFullCaptionText();
iSecretLabel6 = secretLabel6;
}
break;
}
case R_AKNEXFORM_DOUBLE_AND_SINGLE_LINE_FORM:
{
if ( ControlOrNull( EAknExFormDlgCtrlIdEdwin01 ) )
{
GetEdwinText( iEdwinData1, EAknExFormDlgCtrlIdEdwin01 );
TPtrC edwinLabel1 =
Line( EAknExFormDlgCtrlIdEdwin01 )->GetFullCaptionText();
iEdwinLabel1 = edwinLabel1;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdEdwin02 ) )
{
GetEdwinText( iEdwinData2, EAknExFormDlgCtrlIdEdwin02 );
TPtrC edwinLabel2 =
Line( EAknExFormDlgCtrlIdEdwin02 )->GetFullCaptionText();
iEdwinLabel2 = edwinLabel2;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdEdwin03 ) )
{
GetEdwinText( iEdwinData3, EAknExFormDlgCtrlIdEdwin03 );
TPtrC edwinLabel3 =
Line( EAknExFormDlgCtrlIdEdwin03 )->GetFullCaptionText();
iEdwinLabel3 = edwinLabel3;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdEdwin11 ) )
{
GetEdwinText( iEdwinData4, EAknExFormDlgCtrlIdEdwin11 );
TPtrC edwinLabel4 =
Line( EAknExFormDlgCtrlIdEdwin11 )->GetFullCaptionText();
iEdwinLabel4 = edwinLabel4;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdNumber01 ) )
{
iNumberData1 = NumberEditorValue( EAknExFormDlgCtrlIdNumber01 );
TPtrC numberLabel1 =
Line( EAknExFormDlgCtrlIdNumber01 )->GetFullCaptionText();
iNumberLabel1 = numberLabel1;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdNumber02 ) )
{
iNumberData2 = NumberEditorValue( EAknExFormDlgCtrlIdNumber02 );
TPtrC numberLabel2 =
Line( EAknExFormDlgCtrlIdNumber02 )->GetFullCaptionText();
iNumberLabel2 = numberLabel2;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdNumber03 ) )
{
iNumberData3 = NumberEditorValue( EAknExFormDlgCtrlIdNumber03 );
TPtrC numberLabel3 =
Line( EAknExFormDlgCtrlIdNumber03 )->GetFullCaptionText();
iNumberLabel3 = numberLabel3;
}
if ( ControlOrNull( EAknExFormDlgCtrlIdNumber06 ) )
{
iNumberData4 = NumberEditorValue( EAknExFormDlgCtrlIdNumber06 );
TPtrC numberLabel4 =
Line( EAknExFormDlgCtrlIdNumber06 )->GetFullCaptionText();
iNumberLabel4 = numberLabel4;
}
break;
}
default:
break;
}
return ETrue;
}
// ----------------------------------------------------------------------------
// CAknExFormSaveForm::DoNotSaveFormDataL()
// Does not save form data.
// ----------------------------------------------------------------------------
//
void CAknExFormSaveForm::DoNotSaveFormDataL()
{
switch ( iCurrentId )
{
case R_AKNEXFORM_TEXT_NUMBER_FIELD_DIALOG:
{
if ( ControlOrNull( EAknExFormDlgCtrlIdEdwin01 ) )
{
SetEdwinTextL( EAknExFormDlgCtrlIdEdwin01, &iEdwinData1 );
Line( EAknExFormDlgCtrlIdEdwin01 )->SetCaptionL( iEdwinLabel1 );
Line( EAknExFormDlgCtrlIdEdwin01 )->iCaption->CropText();
}
if ( ControlOrNull( EAknExFormDlgCtrlIdNumber01 ) )
{
SetNumberEditorValue( EAknExFormDlgCtrlIdNumber01, iNumberData1 );
Line( EAknExFormDlgCtrlIdNumber01 )->SetCaptionL( iNumberLabel1 );
Line( EAknExFormDlgCtrlIdNumber01 )->iCaption->CropText();
}
}
break;
case R_AKNEXFORM_MANY_ROW_FIELD_DIALOG:
{
if ( ControlOrNull( EAknExFormDlgCtrlIdEdwin01 ) )
{
SetEdwinTextL( EAknExFormDlgCtrlIdEdwin01, &iEdwinData1 );
Line( EAknExFormDlgCtrlIdEdwin01 )->SetCaptionL( iEdwinLabel1 );
Line( EAknExFormDlgCtrlIdEdwin01 )->iCaption->CropText();
}
if ( ControlOrNull( EAknExFormDlgCtrlIdEdwin02 ) )
{
SetEdwinTextL( EAknExFormDlgCtrlIdEdwin02, &iEdwinData2 );
Line( EAknExFormDlgCtrlIdEdwin02 )->SetCaptionL( iEdwinLabel2 );
Line( EAknExFormDlgCtrlIdEdwin02 )->iCaption->CropText();
}
if ( ControlOrNull( EAknExFormDlgCtrlIdEdwin03 ) )
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -