| class CAknLocationEditor : public CEikMfne |
Editor for TPosition type; latitude and longitude editor
There exists two ways to construct CAknLocationEditor :
CAknLocationEditor *editor = CAknLocationEditor::NewL(pos, context);
Using resources:
CAknLocationEditor *editor = new (ELeave) CAknLocationEditor
TResourceReader reader;
iCoeEnv->CreateResourceReaderLC(reader,R_RES_ID_FOR_EDITOR);
editor->ConstructFromResourceL(reader);
editor->Set(pos);
CleanupStack::PopAndDestroy();
LATITUDE_EDITOR
{
flags = ELocationEdFlagLatitude;
latlongresourceid = R_EIK_LATITUDE_AND_LONGITUDE;
};
or:
LONGITUDE_EDITOR
{
flags = ELocationEdFlagLongitude;
latlongresourceid = R_EIK_LATITUDE_AND_LONGITUDE;
};
| Public Member Functions | |
|---|---|
| CAknLocationEditor () | |
| ~CAknLocationEditor () | |
| IMPORT_C void | ConstructFromResourceL ( TResourceReader &) |
| void | CreateMfneFieldsL (const TPosition &) |
| IMPORT_C HBufC * | DisplayableLocationL (const TPosition &, TLocationContext ) |
| IMPORT_C void | Get ( TPosition &) |
| void | HandleCenRepChangedL ( TUint32 , TInt ) |
| IMPORT_C CAknLocationEditor * | NewL ( TPosition &, TLocationContext ) |
| IMPORT_C TKeyResponse | OfferKeyEventL (const TKeyEvent &, TEventCode ) |
| IMPORT_C void | PrepareForFocusLossL () |
| IMPORT_C void | Set (const TPosition &) |
| Protected Member Functions | |
|---|---|
| IMPORT_C void * | CAknLocationEditor_ExtensionInterface ( TUid ) |
| Private Member Functions | |
|---|---|
| void | CombineDD ( TPosition &, TLocationContext , TInt , TInt , TBool , TBool ) |
| void | CombineDMM ( TPosition &, TLocationContext , TInt , TInt , TInt , TBool , TBool ) |
| void | CombineDMSD ( TPosition &, TLocationContext , TInt , TInt , TInt , TInt , TBool , TBool ) |
| void | ConstructL ( TPosition &, TLocationContext ) |
| TInt | FieldMapping (const TInt , const TLocationType ) |
| void | LoadStringsL ( TInt ) |
| void | RefreshFromLocale () |
| void | SetUninitialised ( TBool ) |
| void | Split (const TPosition &, TLocationContext , TInt &, TInt &, TInt &, TInt &, TInt &, TInt &, TBool &, TBool &) |
| void | SplitDD (const TPosition &, TLocationContext , TInt &, TInt &, TBool &, TBool &) |
| void | SplitDMM (const TPosition &, TLocationContext , TInt &, TInt &, TInt &, TBool &, TBool &) |
| void | SplitDMSD (const TPosition &, TLocationContext , TInt &, TInt &, TInt &, TInt &, TBool &, TBool &) |
| TLocationType | Type () |
| Public Member Enumerations | |
|---|---|
| enum | TLocationContext { ELongitudeOnly = 0x1, ELatitudeOnly = 0x2 } |
| Private Member Enumerations | |
|---|---|
| enum | TLocationType { EDD , EDMM , EDMSD } |
| Inherited Enumerations | |
|---|---|
| CCoeControl:TZoomType | |
| CEikMfne:TFeatureId | |
| CEikMfne:TFingerSupportParams | |
| Private Attributes | |
|---|---|
| TLocationContext | iContext |
| CLocationStrings * | iStrings |
| Inherited Attributes | |
|---|---|
| CCoeControl::iCoeEnv | |
| CCoeControl::iPosition | |
| CCoeControl::iSize | |
| CEikBorderedControl::iBorder | |
| IMPORT_C void * | CAknLocationEditor_ExtensionInterface | ( | TUid | aInterface | ) | [protected, virtual] |
| TUid aInterface |
| void | CombineDD | ( | TPosition & | aValue, |
| TLocationContext | aContext, | |||
| TInt | aDegrees, | |||
| TInt | aDeciDegrees, | |||
| TBool | aNeg, | |||
| TBool | aNan | |||
| ) | [private, static] | |||
| void | CombineDMM | ( | TPosition & | aValue, |
| TLocationContext | aContext, | |||
| TInt | aDegrees, | |||
| TInt | aMinutes, | |||
| TInt | aDeciMinutes, | |||
| TBool | aNeg, | |||
| TBool | aNan | |||
| ) | [private, static] | |||
| void | CombineDMSD | ( | TPosition & | aValue, |
| TLocationContext | aContext, | |||
| TInt | aDegrees, | |||
| TInt | aMinutes, | |||
| TInt | aSeconds, | |||
| TInt | aDeciSeconds, | |||
| TBool | aNeg, | |||
| TBool | aNan | |||
| ) | [private, static] | |||
| IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aResourceReader | ) | [virtual] |
ConstructFromResourceL Constructs location editor using information from resource files
| TResourceReader & aResourceReader | resource reader |
| void | ConstructL | ( | TPosition & | aValue, |
| TLocationContext | aContext | |||
| ) | [private] | |||
| TPosition & aValue | |
| TLocationContext aContext |
| void | CreateMfneFieldsL | ( | const TPosition & | aValue | ) |
| const TPosition & aValue |
| IMPORT_C HBufC * | DisplayableLocationL | ( | const TPosition & | aValue, |
| TLocationContext | aContext | |||
| ) | [static] | |||
DisplayableLocationL() Converts TPosition into displayable descriptor usable for listboxes
| const TPosition & aValue | value of the location |
| TLocationContext aContext | which part of the TPosition is used |
| TInt | FieldMapping | ( | const TInt | aFieldNumber, |
| const TLocationType | aType | |||
| ) | const [private] | |||
Maps logical MFNE field order to correct visual order.
| const TInt aFieldNumber | Field position in logical format. |
| const TLocationType aType | Used location editor format. |
| IMPORT_C void | Get | ( | TPosition & | aValue | ) | const |
Get() Gets either longitude or latitude values of aValue
| TPosition & aValue | TPosition object that will be modified |
| IMPORT_C CAknLocationEditor * | NewL | ( | TPosition & | aValue, |
| TLocationContext | aContext | |||
| ) | [static] | |||
NewL() Creates location editor and initializes it's value to value determined by the aValue parameter.
| TPosition & aValue | Initial value for location editor. |
| TLocationContext aContext | Which part of the TPosition is used for this location editor |
| IMPORT_C TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
| TEventCode | aType | |||
| ) | [virtual] | |||
OfferKeyEventL() key event handling of location editor
| const TKeyEvent & aKeyEvent | |
| TEventCode aType |
| IMPORT_C void | PrepareForFocusLossL | ( | ) | [virtual] |
PrepareForFocusLossL() detects focus changes to validate editor contents
| IMPORT_C void | Set | ( | const TPosition & | aValue | ) |
Set() Sets either longitude or latitude values of aValue
| const TPosition & aValue | new value for the editor |
| void | SetUninitialised | ( | TBool | aInitialised | ) | [private] |
| TBool aInitialised |
| void | Split | ( | const TPosition & | aValue, |
| TLocationContext | aContext, | |||
| TInt & | aDegrees, | |||
| TInt & | aDeciDegrees, | |||
| TInt & | aMinutes, | |||
| TInt & | aDeciMinutes, | |||
| TInt & | aSeconds, | |||
| TInt & | aDeciSeconds, | |||
| TBool & | aNeg, | |||
| TBool & | aNan | |||
| ) | [private, static] | |||
| void | SplitDD | ( | const TPosition & | aValue, |
| TLocationContext | aContext, | |||
| TInt & | aDegrees, | |||
| TInt & | aDeciDegrees, | |||
| TBool & | aNeg, | |||
| TBool & | aNan | |||
| ) | [private, static] | |||
| void | SplitDMM | ( | const TPosition & | aValue, |
| TLocationContext | aContext, | |||
| TInt & | aDegrees, | |||
| TInt & | aMinutes, | |||
| TInt & | aDeciMinutes, | |||
| TBool & | aNeg, | |||
| TBool & | aNan | |||
| ) | [private, static] | |||
| void | SplitDMSD | ( | const TPosition & | aValue, |
| TLocationContext | aContext, | |||
| TInt & | aDegrees, | |||
| TInt & | aMinutes, | |||
| TInt & | aSeconds, | |||
| TInt & | aDeciSeconds, | |||
| TBool & | aNeg, | |||
| TBool & | aNan | |||
| ) | [private, static] | |||
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.