»
UIQ 3.1 SDK »
UIQ API reference »
C++ component reference »
Qikon »
CQikViewDialog
Location:
QikViewDialog.h
Link against: qikcore.lib
class CQikViewDialog : public CQikMultiPageViewBase;
Description
A view that can be invoked like a dialog
Derivation
MEikBorderedControl - Interface for bordered controlsMObjectProvider - An interface that allows an object to be part of a network of object providersCBase - Base class for all classes to be instantiated on the heapCCoeControl - Control base class from which all other controls are derived
Members
Defined in CQikViewDialog:
ActivateL(), ActivatePageL(), AddControlLC(), BeginUpdateLC(), Border(), CQikViewDialog(), CQikViewDialog(), CalculateRowInfo(), CloseDialog(), ConstructFromResourceL(), ConstructL(), ContainerWindow(), Draw(), EndUpdateL(), ExecuteLD(), FocusChanged(), FocusedControl(), GetColorUseListL(), GetHelpContext(), GetTextDrawer(), HandleCommandL(), HandleControlArrayEventL(), HandleControlEventL(), HandleErrorL(), HandlePointerBufferReadyL(), HandlePointerEventL(), HandleResourceChange(), HandleUiConfigChangedL(), HasBorder(), InitializeFromResourceL(), InitializeViewFromResourceL(), InitializeViewFromResourceL(), InputCapabilities(), Launched(), MakeVisible(), MinimumSize(), MopSupplyObject(), OfferKeyEventL(), PersistsAfterRelayout(), PositionChanged(), PreferredUiConfigMode(), PrepareForFocusGainL(), PrepareForFocusLossL(), PrepareForViewActivation(), PrepareL(), PrepareLC(), RelayoutFinishedL(), ReleaseControls(), RemoveControl(), RequestRelayout(), RetCode(), RunL(), RunLD(), SaveL(), SetAdjacent(), SetBorder(), SetBorder(), SetContainerWindowL(), SetDimmed(), SetForcedExitCommandId(), SetInitialFocusL(), SetNeighbor(), SetParent(), SetTextBaselineSpacing(), SizeChanged(), TabActivatedL(), TextBaselineOffset(), TransferPersistentControlStateL(), ViewActivatedL(), ViewConstructL(), ViewDeactivated(), ViewId(), ViewScreenDeviceChangedL(), ViewScreenModeCompatible(), WriteInternalStateL(), ~CQikViewDialog()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeControl:
AccumulatedZoom(),
ActivateGc(),
BackedUpWindow(),
Background(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
ComponentArrayExists(),
Components(),
ControlContext(),
ControlEnv(),
CopyControlContextFrom(),
CreateBackedUpWindowL(),
CreateWindowL(),
DeactivateGc(),
DrawBackground(),
DrawDeferred(),
DrawForeground(),
DrawNow(),
DrawableWindow(),
EAbsoluteZoom,
ERelativeZoom,
EnableDragEvents(),
FindBackground(),
FindFontProvider(),
GetColor(),
GetGc(),
GrabbingComponent(),
HandleComponentControlsResourceChange(),
HandleRedrawEvent(),
HitTest(),
IgnoreEventsUntilNextPointerUp(),
Index(),
InitComponentArrayL(),
IsActivated(),
IsBackedUp(),
IsBeingDestroyed(),
IsBlank(),
IsDimmed(),
IsFocused(),
IsNonFocusing(),
IsReadyToDraw(),
IsVisible(),
LayoutManager(),
MaximumWidth(),
MopNext(),
Observer(),
OverrideColorL(),
OwnsWindow(),
Parent(),
Position(),
PositionRelativeToScreen(),
Rect(),
RecursivelyMergedInputCapabilities(),
ReportEventL(),
Reserved_2(),
ResetGc(),
ScreenFont(),
SetAllowStrayPointers(),
SetBackground(),
SetBlank(),
SetCanDrawOutsideRect(),
SetComponentsToInheritVisibility(),
SetControlContext(),
SetCornerAndSize(),
SetExtent(),
SetExtentToWholeScreen(),
SetFocus(),
SetFocusing(),
SetFontProviderL(),
SetGc(),
SetGloballyCapturing(),
SetHitTest(),
SetMaximumWidth(),
SetMopParent(),
SetNonFocusing(),
SetObserver(),
SetPointerCapture(),
SetPosition(),
SetRect(),
SetSize(),
SetSizeWithoutNotification(),
SetUniqueHandle(),
SetZoomFactorL(),
Size(),
SystemGc(),
TZoomType,
TextDrawer(),
UniqueHandle(),
Window(),
ZoomWithType(),
iCoeEnv,
iContext,
iPosition,
iSize
Inherited from CEikBorderedControl:
iBorder
Inherited from CQikContainer:
ClosestFocusingControl(),
ComponentControl(),
CountComponentControls(),
InnerContainer()
Inherited from CQikContainerBase:
CQikContainerBase_Reserved_1(),
CQikContainerBase_Reserved_2(),
CQikContainerBase_Reserved_3(),
ControlsOwnedExternally(),
CtrlById(),
HandlesRelayoutRequests(),
HorizontalWrappingEnabled(),
IsRelayoutInProgress(),
LocateControlByUniqueHandle(),
RowBasedMode(),
SetDebugMode(),
SetHandleRelayoutRequests(),
SetHorizontalWrappingEnabled(),
SetPersistsAfterRelayout(),
SetRelayoutInProgress(),
SetRowBasedMode(),
SetVerticalWrappingEnabled(),
VerticalWrappingEnabled()
Inherited from CQikMultiPageViewBase:
ActivePageId(),
BaseConstructL(),
CQikMultiPageViewBase_Reserved_1(),
CQikMultiPageViewBase_Reserved_2(),
CQikMultiPageViewBase_Reserved_3(),
ConstructPageL(),
ConstructPageWithoutActivationL(),
Controls(),
DeactivatePageL(),
DeletePageL(),
Page(),
ReleasePageL(),
SetLayoutManagerL(),
SetPageCommandListL()
Inherited from CQikViewBase:
ActivatePreviousViewL(),
ActivateTabL(),
ActiveTabId(),
AddTabL(),
CQikViewBase_Reserved_1(),
CQikViewBase_Reserved_2(),
CQikViewBase_Reserved_3(),
CQikViewBase_Reserved_4(),
CategoryHandleForCommandId(),
CategoryModel(),
CheckForPendingViewSwitchL(),
CommandIdForCategoryHandle(),
ControlProvider(),
CurrentCategoryHandle(),
DynInitOrDeleteCommandL(),
ECancel,
ESave,
ETypeId,
EViewActivatedL,
EViewCategoryAdded,
EViewConstructL,
EViewInitializeViewFromResourceL,
EViewRequestFocusL,
EViewSaveL,
EViewSetInitialFocusL,
EmbeddedLinkEnabled(),
FindCompatibleUiConfig(),
GetCompatibleViewConfigData(),
GetCurrentViewConfigData(),
IsCommandListActive(),
IsDefaultView(),
IsTabDimmed(),
MapCommandHandler(),
ParentView(),
PerformLayout(),
PreemptViewConstructionL(),
RemoveTabL(),
RequestFocusL(),
ResetBackBehavior(),
SaveThenDnlToL(),
SelectCategoryL(),
SetAppTitleIconL(),
SetAppTitleNameL(),
SetCategoryModel(),
SetCategoryModelAsCommandsL(),
SetEmbeddedLinkEnabled(),
SetParentView(),
SetTabDimmed(),
SetTabIndex(),
SetTabResponsiveWhenActive(),
SetViewModeL(),
SetViewToolbarL(),
TSaveMode,
TViewError,
Tab(),
TabCount(),
ViewConstructFromResourceL(),
ViewContext(),
ViewMode(),
ViewToolbar(),
ViewToolbarResourceId(),
anonymous,
iQikAppUi,
iViewConfigList,
operator class MCoeView &(),
operator class MCoeView *()
Inherited from MCoeControlObserver:
EEventInteractionRefused,
EEventPrepareFocusTransition,
EEventRequestCancel,
EEventRequestExit,
EEventRequestFocus,
EEventStateChanged,
MCoeControlObserver_Reserved1(),
MCoeControlObserver_Reserved2(),
TCoeEvent
Inherited from MObjectProvider:
MObjectProvider_Reserved1(),
MObjectProvider_Reserved2(),
MopGetObject(),
MopGetObjectNoChaining()
Inherited from MQikCommandHandler:
HandleAttemptDimmedSelectionL()
Inherited from MQikContainer:
ControlById()
Construction and destruction
virtual ~CQikViewDialog();
Description
Destructor. Panics with VIEWDLG-2 should the view-dialog be currently launched.
protected: IMPORT_C CQikViewDialog(CQikAppUi &aAppUi, const TVwsViewId &aParentViewId);
Description
Constructor. Passes the parameters to the CQikMultiPageViewBase::CQikMultiPageViewBase() constructor.
Parameters
protected: IMPORT_C CQikViewDialog();
Description
Constructor. Creates a parentless View.
virtual IMPORT_C void ConstructL();
Description
See also:
IMPORT_C TInt ExecuteLD();
Description
Execute the dialog, and destroys it. This single call encapsulates both CQikViewDialog::PrepareLC and CQikViewDialog::RunLD
Example usage:
CQikViewDialog* vdlg = new(ELeave) CMyCustomDialog();
TInt ret = vdlg->ExecuteLD();
// vdlg no longer exists
switch(ret)
{
...
Return value
IMPORT_C void PrepareLC();
Description
Prepares the dialog. This places the view-dialog on the cleanup-stack, to be destroyed by CQikViewDialog::RunLD. This calls CQikViewBase::BaseConstructL(), and then does a synchronous view construction. Subclasses will receive a CQikViewBase::ViewConstructL() for the view-dialog, which must call CQikviewDialog::BaseViewConstructL() before constructing.
IMPORT_C TInt RunLD();
Description
Launch the view-dialog as a dialog. This function returns when the dialog has been dismissed. This method pops and destroys the view-dialog, which was pushed with CQikViewDialog::PrepareLC
Return value
IMPORT_C void PrepareL();
Description
Prepares the dialog. This calls CQikViewBase::BaseConstructL(), and then does a synchronous view construction. Subclasses will receive a CQikViewBase::ViewConstructL() for the view-dialog, which must call CQikviewDialog::BaseViewConstructL() before constructing.
IMPORT_C TInt RunL();
Description
Launch the view-dialog as a dialog. This function returns when the dialog has been dismissed. The view-dialog is not destroyed; this function is for use with CQikViewDialog::PrepareL, on sleeping view-dialogs.
Return value
IMPORT_C void SetForcedExitCommandId(TInt aCommandId);
Description
Sets the id of the command that will be executed when the dialog is forced to exit by the system. The id must point to a command that is added to the list of commands for this dialog. If a command with the specified id is not found the normal behaviour will apply, which is if any command of type EQikCommandTypeDone is found it will be executed, otherwise the first command of type cancel that is found will be executed.
Parameters
TInt aCommandId |
The id of the command that shall be executed when the dialog is forced to exit by the system. |
|
virtual IMPORT_C void HandleCommandL(CQikCommand &aCommand);
Description
To be overridden by derived classes. Handles commands in the view-dialog. The default implementation attempts to close the dialog, should it be launched, if the command type is Yes, No, Done or Cancel.
Overriding implementations are responsible for calling CQikViewDialog::CloseDialog should a command that dismisses the dialog be encountered.
Parameters
virtual IMPORT_C TVwsViewId ViewId() const;
Description
To be overridden by derived classes if going to be used as a true view
Return value
protected: IMPORT_C TBool Launched() const;
Description
Query if the view-dialog is currently "launched" as a dialog
Return value
protected: IMPORT_C TInt RetCode() const;
Description
Query the return value as set by CQikViewDialog::CloseDialog
Return value
protected: IMPORT_C TInt CloseDialog(TInt aRetCode);
Description
Asynchronously initiates the closure the dialog with the specified return-code
Parameters
Return value
IMPORT_C void ActivatePageL(TInt aPageId);
Description
Parameters
See also:
InitializeViewFromResourceL()
virtual IMPORT_C void InitializeViewFromResourceL(TInt aViewResourceId);
Description
Parameters
See also:
InitializeViewFromResourceL()
virtual IMPORT_C void InitializeViewFromResourceL(const TQikViewConfigData &aViewConfigData);
Description
Parameters
See also:
virtual IMPORT_C void SetInitialFocusL();
Description
See also:
virtual IMPORT_C void ReleaseControls(RQikReleasedControlsArray &aReleasedControls);
Description
Parameters
See also:
CQikMultiPageViewBase::ReleaseControls
virtual IMPORT_C CCoeControl *FocusedControl();
Description
Return value
See also:
virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
Description
Parameters
Return value
See also:
virtual IMPORT_C void MakeVisible(TBool aVisible);
Description
Parameters
See also:
virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
Description
Parameters
Return value
See also:
virtual IMPORT_C void GetTextDrawer(CCoeTextDrawerBase *&aTextDrawer, const CCoeControl *aDrawingControl, TInt aKey) const;
Description
Parameters
See also:
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aReader);
Description
Parameters
See also:
virtual IMPORT_C TBool RequestRelayout(const CCoeControl *aChildControl);
Description
Parameters
Return value
See also:
virtual IMPORT_C TSize MinimumSize();
Description
Return value
See also:
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
Description
Parameters
See also:
virtual IMPORT_C void HandleResourceChange(TInt aType);
Description
Parameters
See also:
virtual IMPORT_C void PrepareForFocusGainL();
Description
See also:
virtual IMPORT_C void PrepareForFocusLossL();
Description
See also:
virtual IMPORT_C TBool HasBorder() const;
Description
Return value
See also:
virtual IMPORT_C void SetAdjacent(TInt aAdjacent);
Description
Parameters
See also:
virtual IMPORT_C void SetDimmed(TBool aDimmed);
Description
Parameters
See also:
virtual IMPORT_C void SetContainerWindowL(const CCoeControl &aContainer);
Description
Parameters
See also:
virtual IMPORT_C void ActivateL();
Description
See also:
virtual IMPORT_C void SetNeighbor(CCoeControl *aNeighbor);
Description
Parameters
See also:
virtual IMPORT_C void GetHelpContext(TCoeHelpContext &aContext) const;
Description
Parameters
See also:
virtual IMPORT_C TInt SetParent(CCoeControl *aParent);
Description
Parameters
Return value
See also:
virtual IMPORT_C TInt TextBaselineOffset(const TSize &aSize) const;
Description
Parameters
Return value
See also:
virtual IMPORT_C void SetTextBaselineSpacing(TInt aSpacing);
Description
Parameters
See also:
virtual IMPORT_C TCoeInputCapabilities InputCapabilities() const;
Description
Return value
See also:
virtual IMPORT_C const CCoeControl &ContainerWindow() const;
Description
Return value
See also:
InitializeFromResourceL()
virtual IMPORT_C void InitializeFromResourceL(TResourceReader &aReader, MQikControlProvider &aProvider);
Description
Parameters
See also:
virtual IMPORT_C void BeginUpdateLC();
Description
See also:
virtual IMPORT_C void EndUpdateL();
Description
See also:
virtual IMPORT_C void AddControlLC(CCoeControl *aControl, TInt aComponentId=KErrNotFound);
Description
Parameters
See also:
virtual IMPORT_C TInt RemoveControl(CCoeControl &aControl);
Description
Parameters
Return value
See also:
virtual IMPORT_C TBool PersistsAfterRelayout() const;
Description
Return value
See also:
virtual IMPORT_C void SetBorder(TGulBorder::TBorderType aBorderType);
Description
Parameters
See also:
virtual IMPORT_C void SetBorder(TInt aBorderType);
Description
Parameters
See also:
virtual IMPORT_C TGulBorder Border() const;
Description
Return value
See also:
virtual IMPORT_C void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEventType);
Description
Parameters
See also:
ViewScreenModeCompatible()
virtual IMPORT_C TBool ViewScreenModeCompatible(TInt aScreenMode);
Description
Parameters
Return value
See also:
TransferPersistentControlStateL()
virtual IMPORT_C void TransferPersistentControlStateL(const CCoeControl &aOldControl, CCoeControl &aNewControl) const;
Description
Parameters
See also:
MQikControlStateTransferrer::TransferPersistentControlStateL()
protected: virtual IMPORT_C void TabActivatedL(TInt aTabId);
Description
Parameters
See also: