class CNotepadEditorDialog : public CNotepadDialogBase |
Dialog of editor mode. CNotepadEditorDialog is a dialog for both memo editor and template editor.
NpdLib.lib CNotepadDialogBase
Public Member Functions | |
---|---|
~CNotepadEditorDialog() | |
void | EditByKeyL(const TInt, CAknAppUi &) |
IMPORT_C TInt | ExecuteLD() |
void | FocusChanged(TDrawNow) |
IMPORT_C CNotepadEditorDialog * | NewL(TInt, CNotepadModel *, CNotepadListDialog *, CSendUi *) |
TInt | SaveOnExitL(TBool) |
void | SetInitialKeyEventL(const TKeyEvent &) |
void | SwitchTextL(TInt) |
Protected Member Functions | |
---|---|
void | ActivateL() |
void | DynInitMenuBarL(TInt, CEikMenuBar *) |
void | DynInitMenuPaneL(TInt, CEikMenuPane *) |
void | GetHelpContext(TCoeHelpContext &) |
void | HandleControlStateChangeL(TInt) |
void | HandleNotepadModelEventL(TEvent, TInt) |
void | HandleResourceChange(TInt) |
TKeyResponse | OfferKeyEventL(const TKeyEvent &, TEventCode) |
TBool | OkToExitL(TInt) |
void | PreLayoutDynInitL() |
void | ProcessCommandL(TInt) |
void | SizeChanged() |
Private Member Functions | |
---|---|
CNotepadEditorDialog(CNotepadModel &, CNotepadListDialog *) | |
IMPORT_C void | CNotepadEditorDialog_Reserved() |
void | ConstructL(TResourceReader &) |
void | CreateSequenceL() |
TInt | CurrentSequence() |
TInt | DoSearchL(CFindItemEngine::TFindItemSearchCase) |
TBool | IsContainLinefeedSymbol(const TDesC &) |
TBool | IsEmpty() |
TBool | IsModeAdding() |
TBool | IsModeEditing() |
TBool | IsSequenceAtFirst() |
TBool | IsSequenceAtLast() |
TInt | NextKeyInSequence() |
TInt | NumberKeyCallBack(TAny *) |
void | OnCmdAddL() |
void | OnCmdDeleteL() |
void | OnCmdNextMemoL() |
void | OnCmdPreviousMemoL() |
TInt | PreviousKeyInSequence() |
TInt | QueryDeleteSingleResId() |
TInt | SaveL() |
void | SyncSequenceL(const TBool) |
Private Member Enumerations | |
---|---|
enum | TNotepadEditorFlags { ENotepadFindItemRuning = 0x01, ENotepadMenuByOkKey = 0x02, ENotepadRequireSequenceUpdate = 0x04, ENotepadCatchSaveOnExitCallback = 0x08 } |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType | |
CEikDialog:@141 |
Private Attributes | |
---|---|
CNotepadEdwin * | iEditor |
TKeyEvent | iEvent |
TBool | iExitByTerminateKey |
CFindItemMenu * | iFindItemMenu |
TUint | iFlags |
CIdle * | iIdle |
TInt | iKey |
CNotepadListDialog * | iListDialog |
CNotepadModel & | iModel |
RProperty | iQwertyModeStatusProperty |
TBool | iRedrawBackground |
CSendUi * | iSendUi |
CArrayFixFlat< TInt > * | iSequence |
CAiwServiceHandler * | iServiceHandler |
CActiveSchedulerWait | iStoreWait |
TBool | iTaskSwapperFlag |
CNotepadEditorDialog | ( | CNotepadModel & | aModel, |
CNotepadListDialog * | aListDialog | ||
) | [private] |
C++ constructor.
CNotepadModel & aModel | |
CNotepadListDialog * aListDialog |
void | ConstructL | ( | TResourceReader & | aReader | ) | [private] |
Internal base constructor.
TResourceReader & aReader | resource reader already opened for "STRUCT NOTEPAD_EDITOR_DIALOG". |
TInt | CurrentSequence | ( | ) | const [private] |
The current index in Sequence of the item now editing.
TInt | DoSearchL | ( | CFindItemEngine::TFindItemSearchCase | aCase | ) | [private] |
Changes for Find Item. To search a given buffer for phone numbers, email ids, URLs.
CFindItemEngine::TFindItemSearchCase aCase |
void | DynInitMenuBarL | ( | TInt | aResourceId, |
CEikMenuBar * | aMenuBar | |||
) | [protected] |
From MEikMenuObserver.
TInt aResourceId | resource id. |
CEikMenuBar * aMenuBar |
void | DynInitMenuPaneL | ( | TInt | aResourceId, |
CEikMenuPane * | aMenuPane | |||
) | [protected, virtual] |
From MEikMenuObserver.
TInt aResourceId | resource id. |
CEikMenuPane * aMenuPane |
void | EditByKeyL | ( | const TInt | aKey, |
CAknAppUi & | aAppUi | |||
) |
Switch contents of the editor to text of specified item. Current contents of the editor is saved before the switching.
This method is called when receiving a message from Pinboard while editor dialog is running.
void | FocusChanged | ( | TDrawNow | aDrawNow | ) | [virtual] |
From CCoeControl.
Responds to a change in focus.
This is called whenever the control gains or loses focus, as a result of a call to SetFocus(). A typical use of FocusChanged() is to change the appearance of the control, for example by drawing a focus rectangle around it.
TDrawNow aDrawNow | Contains the value that was passed to it by SetFocus(). |
void | GetHelpContext | ( | TCoeHelpContext & | aContext | ) | const [protected, virtual] |
From CCoeControl.
TCoeHelpContext & aContext | TCoeHelpContext. |
void | HandleControlStateChangeL | ( | TInt | aControlId | ) | [protected, virtual] |
From CEikDialog. Override to implement dynamically changing decoration.
TInt aControlId | id of editor dialog line. |
void | HandleNotepadModelEventL | ( | TEvent | aEvent, |
TInt | aParam = 0 | |||
) | [protected] |
From MNotepadModelObserver.
TEvent aEvent | |
TInt aParam = 0 |
void | HandleResourceChange | ( | TInt | aType | ) | [protected, virtual] |
From CCoeControl
TInt aType | event type. |
TBool | IsContainLinefeedSymbol | ( | const TDesC & | aDes | ) | [private] |
test whether the text contains the linefeed character.
const TDesC & aDes |
TBool | IsEmpty | ( | ) | const [private, inline] |
Check the condition if the Notepad editor is empty or not.
TBool | IsSequenceAtFirst | ( | ) | const [private] |
Check wether we are at the top of Sequence.
TBool | IsSequenceAtLast | ( | ) | const [private] |
Check wether we are at the end of Sequence.
IMPORT_C CNotepadEditorDialog * | NewL | ( | TInt | aResId, |
CNotepadModel * | aModel, | |||
CNotepadListDialog * | aListDialog, | |||
CSendUi * | aSendUi | |||
) | [static] |
Constructor.
TInt aResId | resource id of type STRUCT NOTEPAD_EDITOR_DIALOG. |
CNotepadModel * aModel | pointer to CNotepadModel, never NULL. |
CNotepadListDialog * aListDialog | |
CSendUi * aSendUi | aSendUi object. |
TInt | NextKeyInSequence | ( | ) | const [private] |
Key id of the item next to the item now editing.
If the mode is Adding and iSequence is empty, return KNotepadPseudoKeyIdForNewNote.
If the mode is Adding and iSequence is not empty, return a key of the first item in iSequence.
If the mode is Editing and the item now editing is the last item in iSequence, return the key now editing.
If the mode is Editing and the item now editing is not the last item in iSequence, return the key of the next item.
TInt | NumberKeyCallBack | ( | TAny * | aSelf | ) | [private, static] |
Number key callback function for deferred key event (for FEP).
TAny * aSelf |
TKeyResponse | OfferKeyEventL | ( | const TKeyEvent & | aKeyEvent, |
TEventCode | aType | |||
) | [protected, virtual] |
From CCoeControl
const TKeyEvent & aKeyEvent | key event which includes ScanCode etc. |
TEventCode aType | event type ( up, in, down...). |
TBool | OkToExitL | ( | TInt | aButtonId | ) | [protected, virtual] |
From CEikDialog.
TInt aButtonId |
TInt | PreviousKeyInSequence | ( | ) | const [private] |
Key id of the item previous to the item now editing.
If the mode is Adding, return KNotepadPseudoKeyIdForNewNote.
If the mode is Editing and the item now editing is the first item in iSequence, return the key now editing.
If the mode is Editing and the item now editing is not the first item in iSequence, return the key of the previous item.
void | ProcessCommandL | ( | TInt | aCommandId | ) | [protected, virtual] |
From MEikCommandObserver
TInt aCommandId | command. |
TInt | QueryDeleteSingleResId | ( | ) | const [private, inline] |
Resource id of prompt text when deleting a single item.
TInt | SaveOnExitL | ( | TBool | aNeedListRefresh | ) |
Save current contents of the editor into database.
TBool aNeedListRefresh | Refresh List mode if ETrue. |
void | SetInitialKeyEventL | ( | const TKeyEvent & | aKeyEvent | ) |
Set a key event. This method is used when the editor is opened from list mode by pressing a number key.
const TKeyEvent & aKeyEvent | number key event. |
void | SwitchTextL | ( | TInt | aKey | ) |
Switch contents of the editor to text of specified item.
TInt aKey | Unique key id of Notepad items. |
void | SyncSequenceL | ( | const TBool | aForceSync | ) | [private] |
Sync between iSequence and iModel->iKeyArray.
const TBool aForceSync | if EFalse syncing is done only when the last SyncSequenceL failed on LEAVE, otherwise syncing is done always. |
ENotepadFindItemRuning = 0x01 | |
ENotepadMenuByOkKey = 0x02 | |
ENotepadRequireSequenceUpdate = 0x04 | |
ENotepadCatchSaveOnExitCallback = 0x08 |
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.