CPeninputJapanesePredictiveWnd Class Reference

class CPeninputJapanesePredictiveWnd : public CFepLayoutPopupWnd

Inherits from

Public Member Functions
~CPeninputJapanesePredictiveWnd ()
void CancelRepeat ()
TInt CurrentItemIndexOfCandidate ()
void HandleControlEvent ( TInt , CFepUiBaseCtrl *, const TDesC &)
void HandleListBoxEventL ( CEikListBox *, TListBoxEvent)
CFepUiBaseCtrl * HandlePointerDownEventL (const TPoint &)
CFepUiBaseCtrl * HandlePointerMoveEventL (const TPoint &)
CFepUiBaseCtrl * HandlePointerUpEventL (const TPoint &)
void Hide ( TBool )
void HidePopup ()
TInt HitTest (const TPoint &)
CPeninputJapanesePredictiveListBox * ListBox ()
void MoveTo ( TPeninputUICtrlScroll )
IMPORT_C CPeninputJapanesePredictiveWnd * NewL ( CFepUiLayout *, TInt , const CCoeControl *)
void OnDeActivate ()
void ReDraw ()
void SetButtons ( CAknFepCtrlEventButton *, CAknFepCtrlEventButton *)
void SetCurrentItemIndex ( TInt )
void SetLineCount ( TInt )
IMPORT_C void SetRect (const TRect &)
void ShowPopupL (const CDesCArrayFlat *, TInt )
void SizeChanged ( TInt , TInt , TInt )
Protected Member Functions
CPeninputJapanesePredictiveWnd ( CFepUiLayout *, TInt )
Private Member Functions
void ActivateButtons ( TBool )
void ClearList ()
void ConstructL (const CCoeControl *)
void CreateListTextArrayL (const CPredictivePopupLineInfoArray &)
void CreatePredictivePopupLineInfoArrayL (const CDesCArrayFlat *, const TInt , const TInt )
void Draw ()
void PredictivePopupAppendLineL (const TPtr &, CPredictivePopupElementArray *)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
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()
CControlGroup::ActiveControl()
CControlGroup::AddControlL(CCoeControl *)
CControlGroup::AddControlL(CFepUiBaseCtrl *,TBool)
CControlGroup::AdjustBkCtrlPos()
CControlGroup::At(TInt)
CControlGroup::BringToBackInGroup(CFepUiBaseCtrl *)
CControlGroup::BringToTopInGroup(CFepUiBaseCtrl *)
CControlGroup::CControlGroup(CFepUiLayout *,TInt)
CControlGroup::CControlGroup(CFepUiLayout *,TInt,TBool)
CControlGroup::CalculateClipRegion()
CControlGroup::CalculateNonHwrStartPtArea()
CControlGroup::CancelPointerDownL()
CControlGroup::ConstructFromResourceL()
CControlGroup::ControlById(TInt)
CControlGroup::ControlByType(TControlType,TInt)
CControlGroup::ControlForKindOfType(TStockBaseCtrlType,TInt)
CControlGroup::ControlForPoints(const TPoint &)
CControlGroup::ControlList()const
CControlGroup::DrawControlGroupBackground(const TRect &)
CControlGroup::Find(CCoeControl *)
CControlGroup::GetIdx(const CFepUiBaseCtrl *)
CControlGroup::GetNestedLevel()
CControlGroup::GraphicDeviceSizeChanged()
CControlGroup::HandlePointerEnter(const TPoint &)
CControlGroup::HandlePointerLeave(const TPoint &)
CControlGroup::HideControl(CFepUiBaseCtrl *,TBool)
CControlGroup::HideControl(TInt,TBool)
CControlGroup::Move(const TPoint &)
CControlGroup::NeedRedrawBg()const
CControlGroup::NewL(CFepUiLayout *,CCoeControl *)
CControlGroup::NewL(CFepUiLayout *,TInt,TBool)
CControlGroup::NumOfControls()
CControlGroup::OnActivate()
CControlGroup::OnLayoutDraggingEnd()
CControlGroup::OnLayoutDraggingStart()
CControlGroup::PopCtrlList()const
CControlGroup::RedrawRectIfNeeded(const TRect &,CFepUiBaseCtrl *)
CControlGroup::RedrawRectInGrp(CFepUiBaseCtrl *,const TRect &)
CControlGroup::RemoveControl(CFepUiBaseCtrl *)
CControlGroup::SetActiveCtrl(CFepUiBaseCtrl *)
CControlGroup::SetActiveCtrl(TInt)
CControlGroup::SetNeedRedrawBg(TBool)
CControlGroup::SetTempActiveCtrl(CFepUiBaseCtrl *)
CControlGroup::UpdateAreaInGrp(CFepUiBaseCtrl *,const TRect &,TBool)
CControlGroup::UpdateAreaInGrpImmed(CFepUiBaseCtrl *,const TRect &,TBool)
CControlGroup::UpdateValidRegion(CFepUiBaseCtrl *,TBool)
CControlGroup::~CControlGroup()
CFepLayoutPopupWnd::AfterDisplayed()
CFepLayoutPopupWnd::CFepLayoutPopupWnd(const TSize &,CFepUiLayout *,TInt)
CFepLayoutPopupWnd::CloseWindow()
CFepLayoutPopupWnd::ConstructL()
CFepLayoutPopupWnd::DeterminePosition(const TRect &)
CFepLayoutPopupWnd::Display(const TPoint &)
CFepLayoutPopupWnd::Display(const TRect &)
CFepLayoutPopupWnd::Display(const TRect &,TDisplayPosition)
CFepLayoutPopupWnd::HandleResourceChange(TInt)
CFepLayoutPopupWnd::ReDrawRect(const TRect &)
CFepLayoutPopupWnd::~CFepLayoutPopupWnd()
CFepUiBaseCtrl::AbleToDraw()
CFepUiBaseCtrl::AbsOrderPos()
CFepUiBaseCtrl::ActiveExtResponseArea()
CFepUiBaseCtrl::AddEventObserver(MEventObserver *)
CFepUiBaseCtrl::AllowOverlap()
CFepUiBaseCtrl::BackgroundBmp()
CFepUiBaseCtrl::BaseConstructL()
CFepUiBaseCtrl::BaseConstructL(CFepUiLayoutRootCtrl *)
CFepUiBaseCtrl::BitGc()
CFepUiBaseCtrl::BitmapDevice()
CFepUiBaseCtrl::BkColor()
CFepUiBaseCtrl::BkMaskBmp()
CFepUiBaseCtrl::BorderColor()
CFepUiBaseCtrl::BorderSize()
CFepUiBaseCtrl::BringToBack()
CFepUiBaseCtrl::BringToTop()
CFepUiBaseCtrl::CFepUiBaseCtrl(CCoeControl *,CFepUiLayout *,TBool)
CFepUiBaseCtrl::CFepUiBaseCtrl(const TRect &,CFepUiLayout *,TInt)
CFepUiBaseCtrl::CancelExtResponseArea()
CFepUiBaseCtrl::CapturePointer(TBool)
CFepUiBaseCtrl::Clear()
CFepUiBaseCtrl::ClearRect(const TRect &)
CFepUiBaseCtrl::CompareOrder(CFepUiBaseCtrl *)
CFepUiBaseCtrl::CompareOrderInSameGroup(CFepUiBaseCtrl *)
CFepUiBaseCtrl::Contains(const TPoint &)
CFepUiBaseCtrl::ControlId()
CFepUiBaseCtrl::ControlType()
CFepUiBaseCtrl::CreateOwnDeviceL(CFbsBitmap *,CFbsBitmap *)
CFepUiBaseCtrl::DisableRegionUpdating()
CFepUiBaseCtrl::DrawBackground(TBool)
CFepUiBaseCtrl::DrawBackground(const TRect,TBool)
CFepUiBaseCtrl::DrawBackgroundToDevice(TRect,CFbsDevice *,CFbsBitmap *,const TRgb &,const TRgb &,TBool)
CFepUiBaseCtrl::DrawBitmap(const CFbsBitmap *,TBool)
CFepUiBaseCtrl::DrawBitmap(const TRect,const CFbsBitmap *,TBool)
CFepUiBaseCtrl::DrawMaskBackground(TBool)
CFepUiBaseCtrl::DrawOpaqueMaskBackground(TBool)
CFepUiBaseCtrl::DrawOpaqueMaskBackground(const TRect,TBool)
CFepUiBaseCtrl::DrawShadow()
CFepUiBaseCtrl::DrawTransparentMaskBackground(const TRect &,TBool)
CFepUiBaseCtrl::EnableExtResponseArea(TBool,const TRect &)
CFepUiBaseCtrl::EnableRegionUpdating()
CFepUiBaseCtrl::Extension_(TUint,TAny *&,TAny *)
CFepUiBaseCtrl::HandlePositionChange(const TPoint &)
CFepUiBaseCtrl::Hiden()
CFepUiBaseCtrl::IsActive()
CFepUiBaseCtrl::IsFepBaseControl()
CFepUiBaseCtrl::IsKindOfControl(TStockBaseCtrlType)
CFepUiBaseCtrl::IsOnTopOf(CFepUiBaseCtrl *)
CFepUiBaseCtrl::MaskBitmapDevice()
CFepUiBaseCtrl::MaskBkCol()
CFepUiBaseCtrl::MovingArea()
CFepUiBaseCtrl::NONSHARABLE_CLASS(CFepUiBaseCtrlExtension)
CFepUiBaseCtrl::OrderPos()const
CFepUiBaseCtrl::Overlapped(CFepUiBaseCtrl *)
CFepUiBaseCtrl::ParentCtrl()
CFepUiBaseCtrl::PenColor()
CFepUiBaseCtrl::PenSize()
CFepUiBaseCtrl::PointerDown()
CFepUiBaseCtrl::Ready()
CFepUiBaseCtrl::Rect()
CFepUiBaseCtrl::Region()
CFepUiBaseCtrl::RemoveEventObserver(MEventObserver *)
CFepUiBaseCtrl::ReportEvent(TInt,const TDesC &)
CFepUiBaseCtrl::RequireRegionUpdateL(TBool)
CFepUiBaseCtrl::ResizeDeviceL()
CFepUiBaseCtrl::ResourceId()
CFepUiBaseCtrl::RootControl()
CFepUiBaseCtrl::SetActive(TBool)
CFepUiBaseCtrl::SetAllowOverlap(TBool)
CFepUiBaseCtrl::SetBackgroundBitmapL(CFbsBitmap *)
CFepUiBaseCtrl::SetBackgroundBmp(CFbsBitmap *)
CFepUiBaseCtrl::SetBackgroundMaskBitmapL(CFbsBitmap *)
CFepUiBaseCtrl::SetBackgroundMaskBmp(CFbsBitmap *)
CFepUiBaseCtrl::SetBkColor(const TRgb &)
CFepUiBaseCtrl::SetBorderColor(const TRgb &)
CFepUiBaseCtrl::SetBorderSize(const TSize &)
CFepUiBaseCtrl::SetControlType(TControlType)
CFepUiBaseCtrl::SetHidenFlag(TBool)
CFepUiBaseCtrl::SetMaskBkCol(const TRgb &)
CFepUiBaseCtrl::SetOrdinalPos(TInt)
CFepUiBaseCtrl::SetParent(CFepUiBaseCtrl *)
CFepUiBaseCtrl::SetPenColor(const TRgb &)
CFepUiBaseCtrl::SetPenSize(const TSize &)
CFepUiBaseCtrl::SetPointerDown(TBool)
CFepUiBaseCtrl::SetReady(TBool)
CFepUiBaseCtrl::SetRegion(const RRegion &)
CFepUiBaseCtrl::SetResourceId(TInt32)
CFepUiBaseCtrl::SetShadowAreaRect(const TRect &,TShadowBitmapIndex)
CFepUiBaseCtrl::SetShadowBmp(CFbsBitmap *,CFbsBitmap *,TShadowBitmapIndex)
CFepUiBaseCtrl::SetShadowRect(const TRect &)
CFepUiBaseCtrl::SetTactileFeedbackType(TInt)
CFepUiBaseCtrl::ShadowAreaRect(TShadowBitmapIndex)
CFepUiBaseCtrl::ShadowRect()
CFepUiBaseCtrl::SimulateRawEvent(const TRawEvent &)
CFepUiBaseCtrl::TactileFeedbackType()const
CFepUiBaseCtrl::UiLayout()
CFepUiBaseCtrl::UpdateArea(const TRect &,TBool)
CFepUiBaseCtrl::UpdateAreaImmed(const TRect &,TBool)
CFepUiBaseCtrl::ValidClipRegion()
CFepUiBaseCtrl::WholeHiden()
CFepUiBaseCtrl::WndBasedControl()
CFepUiBaseCtrl::WndControl()
CFepUiBaseCtrl::~CFepUiBaseCtrl()
Public Member Enumerations
enum TPeninputUICtrlScroll { EScrollNone , EScrollLeft , EScrollRight , EScrollUp , EScrollDown }
Inherited Enumerations
CFepLayoutPopupWnd:TDisplayPosition
CFepUiBaseCtrl:TZOrder
Private Attributes
CPredictivePopupLineInfoArray * iLineInfoArray
CPeninputJapanesePredictiveListBox * iListBox
CDesCArrayFlat * iListTextArray
CAknFepCtrlEventButton * iScrollDownBtn
CAknFepCtrlEventButton * iScrollUpBtn
TInt iUnitHeight
TInt iUnitWidth
Inherited Attributes
CControlGroup::iActiveCtrl
CControlGroup::iCtrlList
CControlGroup::iCtrlWithPointerDown
CControlGroup::iNonHwrStartPtRegion
CControlGroup::iOwnedCtrlList
CControlGroup::iPopCtrlList
CFepUiBaseCtrl::iBorderColor
CFepUiBaseCtrl::iBorderSize
CFepUiBaseCtrl::iClipRegion
CFepUiBaseCtrl::iParentCtrl
CFepUiBaseCtrl::iPointerLeft
CFepUiBaseCtrl::iRect
CFepUiBaseCtrl::iResourceId
CFepUiBaseCtrl::iShadowAreaRect
CFepUiBaseCtrl::iShadowRect
CFepUiBaseCtrl::iUpdateFlagEnabled
CFepUiBaseCtrl::iValidRegion
CFepUiBaseCtrl::iWndControl

Constructor & Destructor Documentation

CPeninputJapanesePredictiveWnd(CFepUiLayout *, TInt)

CPeninputJapanesePredictiveWnd ( CFepUiLayout * aUiLayout,
TInt aControlId
) [protected]

Constructor.

Since
S60 V4.0

Parameters

CFepUiLayout * aUiLayout Ui layout who contains this control.Ownership not transferred
TInt aControlId control Id

~CPeninputJapanesePredictiveWnd()

~CPeninputJapanesePredictiveWnd ( ) [virtual]

Destructor.

Member Functions Documentation

ActivateButtons(TBool)

void ActivateButtons ( TBool aActive ) const [private]

activateButtons or disactivate

Parameters

TBool aActive

CancelRepeat()

void CancelRepeat ( )

Cancel repeat

Since
S60 v3.2

ClearList()

void ClearList ( ) [private]

called when prediction pane is not active

ConstructL(const CCoeControl *)

void ConstructL ( const CCoeControl * aParent ) [private]

Symbian 2nd phase constructor can leave.

Parameters

const CCoeControl * aParent

CreateListTextArrayL(const CPredictivePopupLineInfoArray &)

void CreateListTextArrayL ( const CPredictivePopupLineInfoArray & aLineArray ) [private]
Create arrary with string to show in a line
Since
2.6

Parameters

const CPredictivePopupLineInfoArray & aLineArray arrary with line information

CreatePredictivePopupLineInfoArrayL(const CDesCArrayFlat *, const TInt, const TInt)

void CreatePredictivePopupLineInfoArrayL ( const CDesCArrayFlat * aItems,
const TInt aMaxDisplayWidthInPixel,
const TInt aFontId
) [private]
Setup array with line information in candidate list
Since
2.6

Parameters

const CDesCArrayFlat * aItems array with candidate string
const TInt aMaxDisplayWidthInPixel maximum width in pixel
const TInt aFontId font id

CurrentItemIndexOfCandidate()

TInt CurrentItemIndexOfCandidate ( ) const
Return a selected candidate item number currently
Since
2.6

Draw()

void Draw ( ) [private, virtual]

Called by the framework to draw the control

HandleControlEvent(TInt, CFepUiBaseCtrl *, const TDesC &)

void HandleControlEvent ( TInt aEventType,
CFepUiBaseCtrl * aCtrl,
const TDesC & aEventData
)

From MEventObserver Handle control event

Since
S60 v3.2

Parameters

TInt aEventType The event type
CFepUiBaseCtrl * aCtrl The control who sends the event
const TDesC & aEventData The event data

HandleListBoxEventL(CEikListBox *, TListBoxEvent)

void HandleListBoxEventL ( CEikListBox * aListBox,
TListBoxEvent aEventType
) [virtual]

Parameters

CEikListBox * aListBox
TListBoxEvent aEventType

HandlePointerDownEventL(const TPoint &)

CFepUiBaseCtrl * HandlePointerDownEventL ( const TPoint & aPoint ) [virtual]

Handle pointer down event

Since
S60 V4.0

Parameters

const TPoint & aPoint The point position relative the layout

HandlePointerMoveEventL(const TPoint &)

CFepUiBaseCtrl * HandlePointerMoveEventL ( const TPoint & aPoint ) [virtual]

Handle pointer move event

Since
S60 V4.0

Parameters

const TPoint & aPoint The point position relative the layout

HandlePointerUpEventL(const TPoint &)

CFepUiBaseCtrl * HandlePointerUpEventL ( const TPoint & aPoint ) [virtual]

Handle pointer up event

Since
S60 V4.0

Parameters

const TPoint & aPoint The point position relative the layout

Hide(TBool)

void Hide ( TBool aFlag ) [virtual]

From CFepUiBaseCtrl Set control's rectangle

Since
S60 V4.0

Parameters

TBool aFlag ETrue if want to hide the control.

HidePopup()

void HidePopup ( )
From MAknFepUICtrlPredictivePaneInterface Hide candidate list popup window
Since
2.6

HitTest(const TPoint &)

TInt HitTest ( const TPoint & aPoint )

Get item whose region contains the point.

Since
S60 V4.0

Parameters

const TPoint & aPoint The point position the layout

ListBox()

CPeninputJapanesePredictiveListBox * ListBox ( ) const
Since
2.6

MoveTo(TPeninputUICtrlScroll)

void MoveTo ( TPeninputUICtrlScroll aDirection )
Since
2.6

Parameters

TPeninputUICtrlScroll aDirection

NewL(CFepUiLayout *, TInt, const CCoeControl *)

IMPORT_C CPeninputJapanesePredictiveWnd * NewL ( CFepUiLayout * aUiLayout,
TInt aControlId,
const CCoeControl * aParent
) [static]

Two-phased constructor.

CPeninputJapanesePredictiveWnd class.

Parameters

CFepUiLayout * aUiLayout
TInt aControlId
const CCoeControl * aParent

OnDeActivate()

void OnDeActivate ( ) [virtual]

From CFepUiBaseCtrl DeActivate popup window

Since
S60 V4.0

PredictivePopupAppendLineL(const TPtr &, CPredictivePopupElementArray *)

void PredictivePopupAppendLineL ( const TPtr & aLineText,
CPredictivePopupElementArray * aElementArray
) [private]
Append to array with line information
Since
2.6

Parameters

const TPtr & aLineText string to show in a line
CPredictivePopupElementArray * aElementArray array with element information

ReDraw()

void ReDraw ( )

called when listbox updated

SetButtons(CAknFepCtrlEventButton *, CAknFepCtrlEventButton *)

void SetButtons ( CAknFepCtrlEventButton * aScrollUpBtn,
CAknFepCtrlEventButton * aScrollDownBtn
)
set scroll up/down button
Since
2.6

Parameters

CAknFepCtrlEventButton * aScrollUpBtn
CAknFepCtrlEventButton * aScrollDownBtn

SetCurrentItemIndex(TInt)

void SetCurrentItemIndex ( TInt aItemIndex ) const
Specify the cursor position of a pop-up list
Since
2.6

Parameters

TInt aItemIndex The index of the cursor position

SetLineCount(TInt)

void SetLineCount ( TInt aLineCount )

Set linecount

Parameters

TInt aLineCount

SetRect(const TRect &)

IMPORT_C void SetRect ( const TRect & aRect ) [virtual]

From CFepUiBaseCtrl Set control's rectangle

Since
S60 V4.0

Parameters

const TRect & aRect The new control area

ShowPopupL(const CDesCArrayFlat *, TInt)

void ShowPopupL ( const CDesCArrayFlat * aItems,
TInt aIndex
)
From MAknFepUICtrlPredictivePaneInterface Show candidate list popup window
Since
2.6

Parameters

const CDesCArrayFlat * aItems array of candidate list
TInt aIndex selecting number when displaying

SizeChanged(TInt, TInt, TInt)

void SizeChanged ( TInt aWidth,
TInt aUnitWidth,
TInt aUnitHeight
)

Update Size

Parameters

TInt aWidth
TInt aUnitWidth
TInt aUnitHeight

Member Enumerations Documentation

Enum TPeninputUICtrlScroll

Enumerators

EScrollNone
EScrollLeft
EScrollRight
EScrollUp
EScrollDown

Member Data Documentation

CPredictivePopupLineInfoArray * iLineInfoArray

CPredictivePopupLineInfoArray * iLineInfoArray [private]

LineInfoArray Own

CPeninputJapanesePredictiveListBox * iListBox

CPeninputJapanesePredictiveListBox * iListBox [private]

listbox Own

CDesCArrayFlat * iListTextArray

CDesCArrayFlat * iListTextArray [private]

ListTextArray Own

CAknFepCtrlEventButton * iScrollDownBtn

CAknFepCtrlEventButton * iScrollDownBtn [private]

scroll down button Not Own

CAknFepCtrlEventButton * iScrollUpBtn

CAknFepCtrlEventButton * iScrollUpBtn [private]

scroll up button Not Own

TInt iUnitHeight

TInt iUnitHeight [private]

The unit height

TInt iUnitWidth

TInt iUnitWidth [private]

The unit width