|
Nokia N97 SDK Example Applications Guide |
#include <aknexpopfieldmanylinedialog.h>
Inheritance diagram for CAknExPopFieldManyLineDialog:

Definition at line 38 of file aknexpopfieldmanylinedialog.h.
Public Member Functions |
|
| virtual | ~CAknExPopFieldManyLineDialog () |
| virtual void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
| virtual void | ProcessCommandL (TInt aCommandId) |
Static Public Member Functions |
|
| static CAknExPopFieldManyLineDialog * | NewLC () |
Protected Member Functions |
|
| virtual TBool | OkToExitL (TInt aButtonId) |
Private Member Functions |
|
| CAknExPopFieldManyLineDialog () | |
| void | DiscardTextArray () |
| void | ConfigurePopfieldValueL () |
| TBool | SaveFormDataL () |
| void | DoNotSaveFormDataL () |
Private Attributes |
|
| CDesCArray * | iTextArray |
| CAknQueryValueTextArray * | iValueTextArray |
| CAknQueryValueText * | iTextValues [KAknExPopFieldMaxMLTextValueField] |
| TInt | iIndexValue [KAknExPopFieldMaxMLTextValueField] |
|
|
CAknExPopFieldManyLineDialog Virtual Destructor. Definition at line 47 of file aknexpopfieldmanylinedialog.cpp. References DiscardTextArray(). 00048 { 00049 DiscardTextArray(); 00050 }
|
|
|
CAknExPopFieldManyLineDialog C++ default constructor. Definition at line 57 of file aknexpopfieldmanylinedialog.cpp. References iTextValues. 00057 : 00058 iTextArray( NULL ), 00059 iValueTextArray( NULL ) 00060 { 00061 00062 TInt index( KAknExPopFieldMLIndexInitialize ); 00063 for ( index = KAknExPopFieldMLIndexInitialize; 00064 index < KAknExPopFieldMaxMLTextValueField; index++ ) 00065 { 00066 iTextValues[ index ] = NULL; 00067 } 00068 }
|
|
|
NewLC Two-phase constructor. Definition at line 33 of file aknexpopfieldmanylinedialog.cpp. Referenced by CAknExPopFieldContainer::DisplayManyLineTextPopFieldL(). 00034 { 00035 CAknExPopFieldManyLineDialog* self = 00036 new ( ELeave ) CAknExPopFieldManyLineDialog; 00037 CleanupStack::PushL( self ); 00038 self->ConstructL(); 00039 return self; 00040 }
|
|
|
DiscardTextArray Discard text array in popup field object. Definition at line 75 of file aknexpopfieldmanylinedialog.cpp. References iTextArray, iTextValues, and iValueTextArray. Referenced by ConfigurePopfieldValueL(), and ~CAknExPopFieldManyLineDialog(). 00076 { 00077 TInt index( KAknExPopFieldMLIndexInitialize ); 00078 for ( index = KAknExPopFieldMLIndexInitialize; 00079 index < KAknExPopFieldMaxMLTextValueField; index++ ) 00080 { 00081 if ( iTextValues[ index ] ) 00082 { 00083 delete iTextValues[ index ]; 00084 iTextValues[ index ] = NULL; 00085 } 00086 } 00087 00088 if ( iValueTextArray ) 00089 { 00090 delete iValueTextArray; 00091 iValueTextArray = NULL; 00092 } 00093 00094 if ( iTextArray ) 00095 { 00096 delete iTextArray; 00097 iTextArray = NULL; 00098 } 00099 }
|
|
|
From CAknExPopFieldBaseDialog, ConfigurePopfieldTextL Configuration values (text) into Popup Fields. Implements CAknExPopFieldBaseDialog. Definition at line 106 of file aknexpopfieldmanylinedialog.cpp. References DiscardTextArray(), iTextArray, iTextValues, and iValueTextArray. 00107 { 00108 // Discard textarray. 00109 DiscardTextArray(); 00110 00111 // Calculate number of pop-up field. 00112 TInt index( KAknExPopFieldMLIndexInitialize ); 00113 TInt count( KAknExPopFieldMLCountInitialize ); 00114 TInt controlId( KAknExPopFieldMLControlIdInitialize ); 00115 CAknPopupField* popup[ KAknExPopFieldMaxMLTextValueField ]; 00116 for ( index = KAknExPopFieldMLIndexInitialize; 00117 index < KAknExPopFieldMaxMLTextValueField; index++ ) 00118 { 00119 popup[ index ] = NULL; 00120 controlId = EAknExPopFieldDlgCtrlIdPop01 + index; 00121 CCoeControl* control = ControlOrNull( controlId ); 00122 if ( control ) 00123 { 00124 popup[ count ] = static_cast<CAknPopupField*> ( control ); 00125 count++; 00126 } 00127 } 00128 00129 // Create textarray. 00130 iTextArray = iCoeEnv->ReadDesCArrayResourceL( 00131 R_AKNEXPOPFIELD_TWELVE_TEXT_ARRAY ); 00132 00133 iValueTextArray = CAknQueryValueTextArray::NewL(); 00134 iValueTextArray->SetArray( *iTextArray ); 00135 00136 // Set the same textarray into all the values, and initial value index. 00137 for ( index = KAknExPopFieldMLIndexInitialize; index < count; index++ ) 00138 { 00139 iTextValues[ index ] = CAknQueryValueText::NewL(); 00140 iTextValues[ index ]->SetArrayL( iValueTextArray ); 00141 iTextValues[ index ]->SetCurrentValueIndex( NULL ); 00142 iTextValues[ index ]->SetQueryCaption( R_AKNEXPOPFIELD_QUERY_PROMPT ); 00143 } 00144 00145 // Set values into popup fields. 00146 for ( index = KAknExPopFieldMLIndexInitialize; index < count; index++ ) 00147 { 00148 popup[ index ]->SetQueryValueL( iTextValues[ index ] ); 00149 } 00150 }
|
|
|
From CAknForm, SaveFormDataL Save the contents of the form.
Definition at line 157 of file aknexpopfieldmanylinedialog.cpp. References iIndexValue, and iTextValues. 00158 { 00159 for ( TInt i = KAknExPopFieldMLIndexInitialize; 00160 i < KAknExPopFieldMaxMLTextValueField; i++ ) 00161 { 00162 if ( ControlOrNull( EAknExPopFieldDlgCtrlIdPop01+i ) ) 00163 { 00164 iIndexValue[ i ] = iTextValues[ i ]->CurrentValueIndex(); 00165 } 00166 } 00167 00168 return ETrue; 00169 }
|
|
|
From CAknForm, DoNotSaveFormDataL Does not save the contents of the form. Definition at line 176 of file aknexpopfieldmanylinedialog.cpp. References iIndexValue, and iTextValues. 00177 { 00178 for ( TInt i = KAknExPopFieldMLIndexInitialize; 00179 i < KAknExPopFieldMaxMLTextValueField; i++ ) 00180 { 00181 if ( ControlOrNull( EAknExPopFieldDlgCtrlIdPop01+i ) ) 00182 { 00183 iTextValues[ i ]->SetCurrentValueIndex( iIndexValue[ i ] ); 00184 } 00185 } 00186 }
|
|
||||||||||||
|
From CAknDialog, DynInitMenuPaneL. Dims "Label", "Add" and "Delete" menu items.
Reimplemented in CAknExPopFieldAttribSetDialog. Definition at line 54 of file aknexpopfieldbasedialog.cpp. Referenced by CAknExPopFieldAttribSetDialog::DynInitMenuPaneL(). 00056 { 00057 CAknForm::DynInitMenuPaneL( aResourceId, aMenuPane ); 00058 if ( aResourceId == R_AVKON_FORM_MENUPANE ) 00059 { 00060 aMenuPane->SetItemDimmed( EAknFormCmdLabel, ETrue ); 00061 aMenuPane->SetItemDimmed( EAknFormCmdAdd, ETrue ); 00062 aMenuPane->SetItemDimmed( EAknFormCmdDelete, ETrue ); 00063 } 00064 }
|
|
|
From CAknDialog, ProcessCommandL.
Reimplemented in CAknExPopFieldAttribSetDialog. Definition at line 71 of file aknexpopfieldbasedialog.cpp.
|
|
|
From CAknDialog, OkToExitL.
Reimplemented in CAknExPopFieldAttribSetDialog, and CAknExPopFieldTextValueDialog. Definition at line 81 of file aknexpopfieldbasedialog.cpp. Referenced by CAknExPopFieldTextValueDialog::OkToExitL(), and CAknExPopFieldAttribSetDialog::OkToExitL().
|
|
|
iTextArray Owned by CAknExPopFieldManyLineDialog object. Definition at line 98 of file aknexpopfieldmanylinedialog.h. Referenced by ConfigurePopfieldValueL(), and DiscardTextArray(). |
|
|
iValueTextArray Owned by CAknExPopFieldManyLineDialog object. Definition at line 103 of file aknexpopfieldmanylinedialog.h. Referenced by ConfigurePopfieldValueL(), and DiscardTextArray(). |
|
|
iTextValues[] Owned by CAknExPopFieldManyLineDialog object. Definition at line 109 of file aknexpopfieldmanylinedialog.h. Referenced by CAknExPopFieldManyLineDialog(), ConfigurePopfieldValueL(), DiscardTextArray(), DoNotSaveFormDataL(), and SaveFormDataL(). |
|
|
Counter for indexvalues Definition at line 113 of file aknexpopfieldmanylinedialog.h. Referenced by DoNotSaveFormDataL(), and SaveFormDataL(). |
|
© Nokia 2009 |