CNotepadEditorDialog Class Reference

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()
voidEditByKeyL(const TInt, CAknAppUi &)
IMPORT_C TIntExecuteLD()
voidFocusChanged(TDrawNow)
IMPORT_C CNotepadEditorDialog *NewL(TInt, CNotepadModel *, CNotepadListDialog *, CSendUi *)
TInt SaveOnExitL(TBool)
voidSetInitialKeyEventL(const TKeyEvent &)
voidSwitchTextL(TInt)
Protected Member Functions
voidActivateL()
voidDynInitMenuBarL(TInt, CEikMenuBar *)
voidDynInitMenuPaneL(TInt, CEikMenuPane *)
voidGetHelpContext(TCoeHelpContext &)
voidHandleControlStateChangeL(TInt)
voidHandleNotepadModelEventL(TEvent, TInt)
voidHandleResourceChange(TInt)
TKeyResponse OfferKeyEventL(const TKeyEvent &, TEventCode)
TBool OkToExitL(TInt)
voidPreLayoutDynInitL()
voidProcessCommandL(TInt)
voidSizeChanged()
Private Member Functions
CNotepadEditorDialog(CNotepadModel &, CNotepadListDialog *)
IMPORT_C voidCNotepadEditorDialog_Reserved()
voidConstructL(TResourceReader &)
voidCreateSequenceL()
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 *)
voidOnCmdAddL()
voidOnCmdDeleteL()
voidOnCmdNextMemoL()
voidOnCmdPreviousMemoL()
TInt PreviousKeyInSequence()
TInt QueryDeleteSingleResId()
TInt SaveL()
voidSyncSequenceL(const TBool)
Inherited Functions
CAknControl::CAknControl()
CAknControl::~CAknControl()
CAknDialog::CAknDialog()
CAknDialog::ConstructL(TInt)
CAknDialog::CreateMenuBarL(TInt)
CAknDialog::DisplayMenuL()
CAknDialog::Draw(const TRect &)const
CAknDialog::ExecuteLD(TInt)
CAknDialog::HandlePointerEventL(const TPointerEvent &)
CAknDialog::HideMenu()
CAknDialog::MenuShowing()const
CAknDialog::MopSupplyObject(TTypeUid)
CAknDialog::PrepareLC(TInt)
CAknDialog::RunLD()
CAknDialog::SetEmphasis(CCoeControl *,TBool)
CAknDialog::~CAknDialog()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCoeControl::AccumulatedZoom()const
CCoeControl::ActivateGc()const
CCoeControl::BackedUpWindow()const
CCoeControl::Background()const
CCoeControl::CCoeControl()
CCoeControl::CCoeControl(CCoeEnv *)
CCoeControl::CCoeControl(const CCoeControl &)
CCoeControl::CapturesPointer()const
CCoeControl::ClaimPointerGrab(TBool)
CCoeControl::ClaimPointerGrab(TInt,TBool)
CCoeControl::CloseWindow()
CCoeControl::ComponentArrayExists()const
CCoeControl::Components()
CCoeControl::Components()const
CCoeControl::ControlContext()const
CCoeControl::ControlEnv()const
CCoeControl::CopyControlContextFrom(const CCoeControl *)
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &)
CCoeControl::CreateBackedUpWindowL(RWindowTreeNode &,TDisplayMode)
CCoeControl::CreateWindowL()
CCoeControl::CreateWindowL(RWindowGroup *)
CCoeControl::CreateWindowL(RWindowTreeNode &)
CCoeControl::CreateWindowL(const CCoeControl *)
CCoeControl::CustomGc()const
CCoeControl::DeactivateGc()const
CCoeControl::DrawBackground(const TRect &)const
CCoeControl::DrawDeferred()const
CCoeControl::DrawForeground(const TRect &)const
CCoeControl::DrawNow()const
CCoeControl::DrawNow(const TRect &)const
CCoeControl::DrawableWindow()const
CCoeControl::EnableDragEvents()
CCoeControl::EnableReportControlStateChange(TBool)
CCoeControl::EnableWindowTransparency()
CCoeControl::FindBackground()const
CCoeControl::FindFontProvider()const
CCoeControl::GetColor(TInt,TRgb &)const
CCoeControl::GetGc()const
CCoeControl::GrabbingComponent()const
CCoeControl::GrabbingComponent(TInt)const
CCoeControl::HandleComponentControlsResourceChange(TInt)
CCoeControl::HandleControlArrayEventL(CCoeControlArray::TEvent,const CCoeControlArray *,CCoeControl *,TInt)
CCoeControl::HandlePointerBufferReadyL()
CCoeControl::HandleRedrawEvent(const TRect &)const
CCoeControl::HitTest()const
CCoeControl::IgnoreEventsUntilNextPointerUp()
CCoeControl::Index(const CCoeControl *)const
CCoeControl::InitComponentArrayL()
CCoeControl::IsActivated()const
CCoeControl::IsBackedUp()const
CCoeControl::IsBeingDestroyed()const
CCoeControl::IsBlank()const
CCoeControl::IsDimmed()const
CCoeControl::IsFocused()const
CCoeControl::IsNonFocusing()const
CCoeControl::IsReadyToDraw()const
CCoeControl::IsVisible()const
CCoeControl::LayoutManager()const
CCoeControl::MaximumWidth()const
CCoeControl::NotifyFontChange(const CCoeFontProvider *)
CCoeControl::Observer()const
CCoeControl::OverrideColorL(TInt,TRgb)
CCoeControl::OwnsWindow()const
CCoeControl::Parent()
CCoeControl::Parent()const
CCoeControl::Position()const
CCoeControl::PositionChanged()
CCoeControl::PositionRelativeToScreen()const
CCoeControl::PrepareForFocusGainL()
CCoeControl::PrepareForFocusLossL()
CCoeControl::ProcessPointerBufferReadyL()
CCoeControl::ProcessPointerEventL(const TPointerEvent &)
CCoeControl::Rect()const
CCoeControl::RecursivelyMergeInputCapabilities(TCoeInputCapabilities &)const
CCoeControl::RecursivelyMergedInputCapabilities()const
CCoeControl::RefetchPixelMappingL()
CCoeControl::RemoveFromParent()
CCoeControl::ReportEventL(MCoeControlObserver::TCoeEvent)
CCoeControl::RequestRelayout(const CCoeControl *)
CCoeControl::ResetGc()const
CCoeControl::ScreenFont(const TCoeFont &)const
CCoeControl::SetAllowStrayPointers()
CCoeControl::SetBackground(const MCoeControlBackground *)
CCoeControl::SetBlank()
CCoeControl::SetCanDrawOutsideRect()
CCoeControl::SetComponentsToInheritVisibility(TBool)
CCoeControl::SetContainerWindowL(RBackedUpWindow &)
CCoeControl::SetContainerWindowL(RWindow &)
CCoeControl::SetContainerWindowL(const CCoeControl &)
CCoeControl::SetControlContext(MCoeControlContext *)
CCoeControl::SetCornerAndSize(TGulAlignment,const TSize &)
CCoeControl::SetCustomGc(CWindowGc *)
CCoeControl::SetDimmed(TBool)
CCoeControl::SetExtent(const TPoint &,const TSize &)
CCoeControl::SetExtentToWholeScreen()
CCoeControl::SetFocus(TBool,TDrawNow)
CCoeControl::SetFocusing(TBool)
CCoeControl::SetFontProviderL(const CCoeFontProvider &)
CCoeControl::SetGc(CWindowGc *)const
CCoeControl::SetGloballyCapturing(TBool)
CCoeControl::SetHitTest(const MCoeControlHitTest *)
CCoeControl::SetLayoutManagerL(MCoeLayoutManager *)
CCoeControl::SetMaximumWidth(TInt)
CCoeControl::SetMopParent(MObjectProvider *)
CCoeControl::SetNeighbor(CCoeControl *)
CCoeControl::SetNonFocusing()
CCoeControl::SetObserver(MCoeControlObserver *)
CCoeControl::SetParent(CCoeControl *)
CCoeControl::SetPointerCapture(TBool)
CCoeControl::SetPosition(const TPoint &)
CCoeControl::SetRect(const TRect &)
CCoeControl::SetSize(const TSize &)
CCoeControl::SetSizeWithoutNotification(const TSize &)
CCoeControl::SetTextBaselineSpacing(TInt)
CCoeControl::SetUniqueHandle(TInt)
CCoeControl::SetZoomFactorL(TInt,TZoomType)
CCoeControl::Size()const
CCoeControl::SystemGc()const
CCoeControl::TextBaselineOffset(const TSize &)const
CCoeControl::TextDrawer(TInt)const
CCoeControl::UniqueHandle()const
CCoeControl::Window()const
CCoeControl::WriteInternalStateNowL(RWriteStream &)const
CCoeControl::ZoomWithType()const
CCoeControl::operator=(const CCoeControl &)
CCoeControl::~CCoeControl()
CEikBorderedControl::Border()const
CEikBorderedControl::CEikBorderedControl()
CEikBorderedControl::CEikBorderedControl(const TGulBorder &)
CEikBorderedControl::HasBorder()const
CEikBorderedControl::SetAdjacent(TInt)
CEikBorderedControl::SetBorder(TGulBorder::TBorderType)
CEikBorderedControl::SetBorder(TInt)
CEikDialog::ActivateFirstPageL()const
CEikDialog::ActivePageId()const
CEikDialog::ActivePageIndex()const
CEikDialog::AddAutoDateEditorL(const TDesC &,TInt,const TTime &,const TTime &,TBool,TTime *)
CEikDialog::AddAutoDurationEditorL(const TDesC &,TInt,const TTimeIntervalSeconds &,const TTimeIntervalSeconds &,TBool,TTimeIntervalSeconds *)
CEikDialog::AddAutoFixedPointEditorL(const TDesC &,TInt,TInt,TInt,TInt *,TInt)
CEikDialog::AddAutoFloatEditorL(const TDesC &,TInt,const TReal &,const TReal &,TReal *)
CEikDialog::AddAutoGlobalTextEditorL(const TDesC &,TInt,TInt,TInt,TInt,TInt,CGlobalText *,TInt,TInt)
CEikDialog::AddAutoNumberEditorL(const TDesC &,TInt,TInt,TInt,TInt *)
CEikDialog::AddAutoRangeEditorL(const TDesC &,TInt,TInt,TInt,HBufC *,SEikRange *)
CEikDialog::AddAutoRichTextEditorL(const TDesC &,TInt,TInt,TInt,TInt,TInt,CGlobalText *,TInt,TInt)
CEikDialog::AddAutoSecretEditorL(const TDesC &,TInt,TDes *)
CEikDialog::AddAutoTextEditorL(const TDesC &,TInt,TInt,TInt,TInt,TDes *)
CEikDialog::AddAutoTimeAndDateEditorL(const TDesC &,TInt,const TTime &,const TTime &,TBool,TBool,HBufC *,TTime *)
CEikDialog::AddAutoTimeEditorL(const TDesC &,TInt,const TTime &,const TTime &,TBool,TTime *)
CEikDialog::AddAutoTimeOffsetEditorL(const TDesC &,TInt,const TTimeIntervalSeconds &,const TTimeIntervalSeconds &,TBool,TTimeIntervalSeconds *)
CEikDialog::AdjustAllIdsOnPage(TInt,TInt)
CEikDialog::BorderStyle()
CEikDialog::ButtonCommandObserver()const
CEikDialog::ButtonGroupContainer()const
CEikDialog::CEikDialog()
CEikDialog::ComponentControl(TInt)const
CEikDialog::ConstructAutoDialogLC(TInt,TInt)
CEikDialog::ConstructSleepingAlertDialogL(TInt)
CEikDialog::ConstructSleepingDialogL(TInt)
CEikDialog::Control(TInt)const
CEikDialog::ControlCaption(TInt)const
CEikDialog::ControlOrNull(TInt)const
CEikDialog::ControlsOnPage(RArray< CEikCaptionedControl * > &,TInt)const
CEikDialog::ConvertCustomControlTypeToBaseControlType(TInt)const
CEikDialog::CountComponentControls()const
CEikDialog::CreateLineByTypeL(const TDesC &,TInt,TInt,TAny *)
CEikDialog::CreateLineByTypeL(const TDesC &,TInt,TInt,TInt,TAny *)
CEikDialog::CurrentLine()const
CEikDialog::DeclareAutoDateEditor(TInt,TTime *)
CEikDialog::DeclareAutoDurationEditor(TInt,TTimeIntervalSeconds *)
CEikDialog::DeclareAutoFixedPointEditor(TInt,TInt *)
CEikDialog::DeclareAutoNumberEditor(TInt,TInt *)
CEikDialog::DeclareAutoRangeEditor(TInt,SEikRange *)
CEikDialog::DeclareAutoSecretEditor(TInt,TDes *)
CEikDialog::DeclareAutoTextEditorL(TInt,TDes *)
CEikDialog::DeclareAutoTimeAndDateEditor(TInt,TTime *)
CEikDialog::DeclareAutoTimeEditor(TInt,TTime *)
CEikDialog::DeclareAutoTimeOffsetEditor(TInt,TTimeIntervalSeconds *)
CEikDialog::DeclareItemAuto(TInt,TInt,TAny *)
CEikDialog::DeleteLine(TInt,TBool)
CEikDialog::DialogFlags()
CEikDialog::DurationEditorValue(TInt)const
CEikDialog::ExitSleepingDialog()
CEikDialog::Extension()const
CEikDialog::FindLineIndex(const CCoeControl &)const
CEikDialog::FixedPointEditorDecimal(TInt)const
CEikDialog::FixedPointEditorValue(TInt)const
CEikDialog::FloatEditorValue(TInt)const
CEikDialog::FloatingPointEditorValue(TInt)const
CEikDialog::FormFlagsFromActivePage()
CEikDialog::GetAutoValuesFromPage(CEikCapCArray *)
CEikDialog::GetColorUseListL(CArrayFix< TCoeColorUse > &)const
CEikDialog::GetCustomAutoValue(TAny *,TInt,const CCoeControl *)
CEikDialog::GetEdwinText(TDes &,TInt)const
CEikDialog::GetFileName(TFileName *,TInt)const
CEikDialog::GetFirstLineOnFirstPageOrNull()
CEikDialog::GetLabelText(TDes &,TInt)const
CEikDialog::GetLineByLineAndPageIndex(TInt,TInt)const
CEikDialog::GetNumberOfLinesOnPage(TInt)const
CEikDialog::GetNumberOfPages()const
CEikDialog::GetSecretEditorText(TDes &,TInt)const
CEikDialog::GetTextEditorText(CGlobalText *&,TInt)
CEikDialog::HandleControlEventL(CCoeControl *,TCoeEvent)
CEikDialog::HandleDialogPageEventL(TInt)
CEikDialog::HandleInteractionRefused(TInt)
CEikDialog::IdOfFocusControl()const
CEikDialog::InputCapabilities()const
CEikDialog::InsertLineL(TInt,TInt,TInt)
CEikDialog::IsEditable()const
CEikDialog::Layout()
CEikDialog::Line(TInt)const
CEikDialog::LineChangedL(TInt)
CEikDialog::ListBoxCurrentItem(TInt)const
CEikDialog::MakeLineVisible(TInt,TBool)
CEikDialog::MakePanelButtonVisible(TInt,TBool)
CEikDialog::MakeVisible(TBool)
CEikDialog::MakeWholeLineVisible(TInt,TBool)
CEikDialog::MappedCommandId(TInt)
CEikDialog::NumberEditorValue(TInt)const
CEikDialog::PageChangedL(TInt)
CEikDialog::PostLayoutDynInitL()
CEikDialog::PreferredSize(const TSize &)const
CEikDialog::PrepareContext(CWindowGc &)const
CEikDialog::PrepareForFocusTransitionL()
CEikDialog::PublishDialogL(TInt,TUid)
CEikDialog::RangeEditorValue(TInt)const
CEikDialog::ReadResourceLC(TInt)
CEikDialog::RegisterDialgWithPageSelector()
CEikDialog::ResetLineMinimumSizes()
CEikDialog::ResetSecretEditor(TInt)
CEikDialog::RotateFocusByL(TInt)
CEikDialog::RouseSleepingDialog()
CEikDialog::SetControlCaptionL(TInt,TInt)
CEikDialog::SetControlCaptionL(TInt,const TDesC &)
CEikDialog::SetDurationEditorMinAndMax(TInt,const TTimeIntervalSeconds &,const TTimeIntervalSeconds &)
CEikDialog::SetDurationEditorValue(TInt,const TTimeIntervalSeconds &)
CEikDialog::SetEditableL(TBool)
CEikDialog::SetEdwinTextL(TInt,const TDesC *)
CEikDialog::SetFileNameL(TInt,const TDesC *)
CEikDialog::SetFixedPointEditorDecimal(TInt,TInt)
CEikDialog::SetFixedPointEditorValueL(TInt,TInt)
CEikDialog::SetFloatEditorMinAndMax(TInt,TInt,TInt)
CEikDialog::SetFloatEditorValueL(TInt,TReal)
CEikDialog::SetFloatingPointEditorValueL(TInt,const TReal *)
CEikDialog::SetInitialCurrentLine()
CEikDialog::SetLabelL(TInt,TInt)
CEikDialog::SetLabelL(TInt,const TDesC &)
CEikDialog::SetLabelReserveLengthL(TInt,TInt)
CEikDialog::SetLineDimmedNow(TInt,TBool)
CEikDialog::SetLineNonFocusing(TInt)
CEikDialog::SetListBoxCurrentItem(TInt,TInt)
CEikDialog::SetMediatorObserver(MAknDialogMediatorObserver *)
CEikDialog::SetMultilineQuery(TBool)
CEikDialog::SetNumberEditorMinAndMax(TInt,TInt,TInt)
CEikDialog::SetNumberEditorValue(TInt,TInt)
CEikDialog::SetPageDensePacking(TInt,TBool)
CEikDialog::SetPageDimmedNow(TInt,TBool)
CEikDialog::SetRangeEditorMinAndMax(TInt,TInt,TInt)
CEikDialog::SetRangeEditorValue(TInt,const SEikRange &)
CEikDialog::SetSizeAndPosition(const TSize &)
CEikDialog::SetTTimeEditorMinAndMax(TInt,const TTime &,const TTime &)
CEikDialog::SetTTimeEditorValue(TInt,const TTime &)
CEikDialog::SetTextEditorTextL(TInt,const CGlobalText *)
CEikDialog::SetTimeOffsetEditorMinAndMax(TInt,const TTimeIntervalSeconds &,const TTimeIntervalSeconds &)
CEikDialog::SetTimeOffsetEditorValue(TInt,const TTimeIntervalSeconds &)
CEikDialog::SetTitleL(TInt)
CEikDialog::SetTitleL(const TDesC &)
CEikDialog::SlideDialog()
CEikDialog::SwapButtonGroupContainer(CEikButtonGroupContainer *)
CEikDialog::SwitchLineLatency(TInt,TInt)
CEikDialog::TTimeEditorValue(TInt)const
CEikDialog::TimeOffsetEditorValue(TInt)const
CEikDialog::Title()const
CEikDialog::TryChangeFocusToL(TInt)
CEikDialog::TryExitL(TInt)
CEikDialog::UpdatePageL(TBool)
CEikDialog::WriteInternalStateL(RWriteStream &)const
CEikDialog::~CEikDialog()
CNotepadDialogBase::CreateCustomControlL(TInt)
CNotepadDialogBase::ExecuteConfirmationQueryL(TDesC *)
CNotepadDialogBase::ExecuteConfirmationQueryL(TInt)
CNotepadDialogBase::InsertSendMenuItemAfterL(CSendUi &,CEikMenuPane &,TInt)
CNotepadDialogBase::IsExitDelayedBySendUi()const
CNotepadDialogBase::IsModeless()
CNotepadDialogBase::IsNoteListDialog()const
CNotepadDialogBase::IsNotepad()const
CNotepadDialogBase::IsTemplateListDialog()const
CNotepadDialogBase::IsTemplates()const
CNotepadDialogBase::IsWaiting()const
CNotepadDialogBase::NONSHARABLE_CLASS(CCreateAndAppendFiles)
CNotepadDialogBase::RefreshTitleL()
CNotepadDialogBase::SendAsL(CSendUi &,TInt,TBool,const TDesC *,const CPlainText *)
CNotepadDialogBase::SendAsL(CSendUi &,TInt,const TDesC *,const CPlainText *,const TDesC *)
CNotepadDialogBase::SendByKeysL(CSendUi &,TInt,CNotepadModel &,const RArray< TInt > &)
CNotepadDialogBase::SetFileHandleL(RFile &)
CNotepadDialogBase::SetTitleL(const TDesC *)
CNotepadDialogBase::~CNotepadDialogBase()
Private Member Enumerations
enumTNotepadEditorFlags { 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
Inherited Attributes
CAknDialog::iMenuBar
CCoeControl::iCoeEnv
CCoeControl::iContext
CCoeControl::iPosition
CCoeControl::iSize
CEikBorderedControl::iBorder
CNotepadDialogBase::iCreateFile
CNotepadDialogBase::iMskFlag
CNotepadDialogBase::iResId
CNotepadDialogBase::iSelfPtr

Constructor & Destructor Documentation

CNotepadEditorDialog(CNotepadModel &, CNotepadListDialog *)

CNotepadEditorDialog(CNotepadModel &aModel,
CNotepadListDialog *aListDialog
)[private]

C++ constructor.

Parameters

CNotepadModel & aModel
CNotepadListDialog * aListDialog

~CNotepadEditorDialog()

IMPORT_C~CNotepadEditorDialog()[virtual]

Destructor.

Member Functions Documentation

ActivateL()

voidActivateL()[protected, virtual]

From CCoeControl.

CNotepadEditorDialog_Reserved()

IMPORT_C voidCNotepadEditorDialog_Reserved()[private]

Reserved.

ConstructL(TResourceReader &)

voidConstructL(TResourceReader &aReader)[private]

Internal base constructor.

Parameters

TResourceReader & aReaderresource reader already opened for "STRUCT NOTEPAD_EDITOR_DIALOG".

CreateSequenceL()

voidCreateSequenceL()[private]

Create iSequence.

CurrentSequence()

TInt CurrentSequence()const [private]

The current index in Sequence of the item now editing.

DoSearchL(CFindItemEngine::TFindItemSearchCase)

TInt DoSearchL(CFindItemEngine::TFindItemSearchCaseaCase)[private]

Changes for Find Item. To search a given buffer for phone numbers, email ids, URLs.

DynInitMenuBarL(TInt, CEikMenuBar *)

voidDynInitMenuBarL(TIntaResourceId,
CEikMenuBar *aMenuBar
)[protected]

Parameters

TInt aResourceIdresource id.
CEikMenuBar * aMenuBar

DynInitMenuPaneL(TInt, CEikMenuPane *)

voidDynInitMenuPaneL(TIntaResourceId,
CEikMenuPane *aMenuPane
)[protected, virtual]

Parameters

TInt aResourceIdresource id.
CEikMenuPane * aMenuPane

EditByKeyL(const TInt, CAknAppUi &)

voidEditByKeyL(const TIntaKey,
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.

Parameters

const TInt aKeyunique memo id.
CAknAppUi & aAppUibase app ui.

ExecuteLD()

IMPORT_C TIntExecuteLD()

Execute a dialog.

FocusChanged(TDrawNow)

voidFocusChanged(TDrawNowaDrawNow)[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.

Parameters

TDrawNow aDrawNowContains the value that was passed to it by SetFocus().

GetHelpContext(TCoeHelpContext &)

voidGetHelpContext(TCoeHelpContext &aContext)const [protected, virtual]

From CCoeControl.

Parameters

TCoeHelpContext & aContextTCoeHelpContext.

HandleControlStateChangeL(TInt)

voidHandleControlStateChangeL(TIntaControlId)[protected, virtual]

From CEikDialog. Override to implement dynamically changing decoration.

Parameters

TInt aControlIdid of editor dialog line.

HandleNotepadModelEventL(TEvent, TInt)

voidHandleNotepadModelEventL(TEventaEvent,
TIntaParam = 0
)[protected]

Parameters

TEvent aEvent
TInt aParam = 0

HandleResourceChange(TInt)

voidHandleResourceChange(TIntaType)[protected, virtual]

Parameters

TInt aTypeevent type.

IsContainLinefeedSymbol(const TDesC &)

TBool IsContainLinefeedSymbol(const TDesC &aDes)[private]

test whether the text contains the linefeed character.

Parameters

const TDesC & aDes

IsEmpty()

TBool IsEmpty()const [private, inline]

Check the condition if the Notepad editor is empty or not.

IsModeAdding()

TBool IsModeAdding()const [private, inline]

Check if current mode is Adding.

IsModeEditing()

TBool IsModeEditing()const [private, inline]

Check if current mode is Editing.

IsSequenceAtFirst()

TBool IsSequenceAtFirst()const [private]

Check wether we are at the top of Sequence.

IsSequenceAtLast()

TBool IsSequenceAtLast()const [private]

Check wether we are at the end of Sequence.

NewL(TInt, CNotepadModel *, CNotepadListDialog *, CSendUi *)

IMPORT_C CNotepadEditorDialog *NewL(TIntaResId,
CNotepadModel *aModel,
CNotepadListDialog *aListDialog,
CSendUi *aSendUi
)[static]

Constructor.

Parameters

TInt aResIdresource id of type STRUCT NOTEPAD_EDITOR_DIALOG.
CNotepadModel * aModelpointer to CNotepadModel, never NULL.
CNotepadListDialog * aListDialog
CSendUi * aSendUiaSendUi object.

NextKeyInSequence()

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.

NumberKeyCallBack(TAny *)

TInt NumberKeyCallBack(TAny *aSelf)[private, static]

Number key callback function for deferred key event (for FEP).

Parameters

TAny * aSelf

OfferKeyEventL(const TKeyEvent &, TEventCode)

TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent,
TEventCodeaType
)[protected, virtual]

Parameters

const TKeyEvent & aKeyEventkey event which includes ScanCode etc.
TEventCode aTypeevent type ( up, in, down...).

OkToExitL(TInt)

TBool OkToExitL(TIntaButtonId)[protected, virtual]

From CEikDialog.

Parameters

TInt aButtonId

OnCmdAddL()

voidOnCmdAddL()[private]

Called on ENotepadCmdAdd.

OnCmdDeleteL()

voidOnCmdDeleteL()[private]

Called on ENotepadCmdDelete

OnCmdNextMemoL()

voidOnCmdNextMemoL()[private]

Called on ENotepadCmdNextMemo

OnCmdPreviousMemoL()

voidOnCmdPreviousMemoL()[private]

Called on ENotepadCmdPreviousMemo

PreLayoutDynInitL()

voidPreLayoutDynInitL()[protected, virtual]

From CEikDialog.

PreviousKeyInSequence()

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.

ProcessCommandL(TInt)

voidProcessCommandL(TIntaCommandId)[protected, virtual]

Parameters

TInt aCommandIdcommand.

QueryDeleteSingleResId()

TInt QueryDeleteSingleResId()const [private, inline]

Resource id of prompt text when deleting a single item.

SaveL()

TInt SaveL()[private]

Save current content of editor into database.

SaveOnExitL(TBool)

TInt SaveOnExitL(TBoolaNeedListRefresh)

Save current contents of the editor into database.

Parameters

TBool aNeedListRefreshRefresh List mode if ETrue.

SetInitialKeyEventL(const TKeyEvent &)

voidSetInitialKeyEventL(const TKeyEvent &aKeyEvent)

Set a key event. This method is used when the editor is opened from list mode by pressing a number key.

Parameters

const TKeyEvent & aKeyEventnumber key event.

SizeChanged()

voidSizeChanged()[protected, virtual]

From CCoeControl. Called when SizeChanged.

SwitchTextL(TInt)

voidSwitchTextL(TIntaKey)

Switch contents of the editor to text of specified item.

Parameters

TInt aKeyUnique key id of Notepad items.

SyncSequenceL(const TBool)

voidSyncSequenceL(const TBoolaForceSync)[private]

Sync between iSequence and iModel->iKeyArray.

Parameters

const TBool aForceSyncif EFalse syncing is done only when the last SyncSequenceL failed on LEAVE, otherwise syncing is done always.

Member Enumerations Documentation

Enum TNotepadEditorFlags

Enumerators

ENotepadFindItemRuning = 0x01
ENotepadMenuByOkKey = 0x02
ENotepadRequireSequenceUpdate = 0x04
ENotepadCatchSaveOnExitCallback = 0x08

Member Data Documentation

CNotepadEdwin * iEditor

CNotepadEdwin *iEditor[private]

TKeyEvent iEvent

TKeyEvent iEvent[private]

TBool iExitByTerminateKey

TBool iExitByTerminateKey[private]

CFindItemMenu * iFindItemMenu

CFindItemMenu *iFindItemMenu[private]

TUint iFlags

TUint iFlags[private]

CIdle * iIdle

CIdle *iIdle[private]

TInt iKey

TInt iKey[private]

CNotepadListDialog * iListDialog

CNotepadListDialog *iListDialog[private]

CNotepadModel & iModel

CNotepadModel &iModel[private]

RProperty iQwertyModeStatusProperty

RProperty iQwertyModeStatusProperty[private]

TBool iRedrawBackground

TBool iRedrawBackground[private]

CSendUi * iSendUi

CSendUi *iSendUi[private]

CArrayFixFlat< TInt > * iSequence

CArrayFixFlat< TInt > *iSequence[private]

CAiwServiceHandler * iServiceHandler

CAiwServiceHandler *iServiceHandler[private]

CActiveSchedulerWait iStoreWait

CActiveSchedulerWait iStoreWait[private]

TBool iTaskSwapperFlag

TBool iTaskSwapperFlag[private]