UIQ Technology
 Developer Library

UIQ 3 SDK

UIQ developer portal

FEEDBACK 

[Index] [Spacer] [Previous] [Next]



Location: QikMultiPageViewBase.h
Link against: qikcore.lib

Class CQikMultiPageViewBase

class CQikMultiPageViewBase : public CQikViewBase;

Description

A base class for views with multiple pages.

It is possible to create a view class that inherits directly from CQikViewBase but this class should be sufficient in most cases.

Derivation

  • MEikBorderedControl - Interface for bordered controls
  • MObjectProvider - An interface that allows an object to be part of a network of object providers
  • CBase - Base class for all classes to be instantiated on the heap
  • Members

    Defined in CQikMultiPageViewBase:
    ActivateL(), ActivatePageL(), ActivePageId(), AddControlLC(), BaseConstructL(), BeginUpdateLC(), Border(), CQikMultiPageViewBase(), CalculateRowInfo(), ConstructFromResourceL(), ConstructL(), ConstructPageL(), ConstructPageL(), ConstructPageWithoutActivationL(), ConstructPageWithoutActivationL(), ContainerWindow(), DeactivatePageL(), DeletePageL(), Draw(), EndUpdateL(), FocusChanged(), FocusedControl(), GetColorUseListL(), GetHelpContext(), GetTextDrawer(), HandleCommandL(), HandleControlArrayEventL(), HandleControlEventL(), HandleErrorL(), HandlePointerBufferReadyL(), HandlePointerEventL(), HandleResourceChange(), HandleUiConfigChangedL(), HasBorder(), InitializeFromResourceL(), InitializeViewFromResourceL(), InitializeViewFromResourceL(), InputCapabilities(), MakeVisible(), MinimumSize(), MopSupplyObject(), OfferKeyEventL(), Page(), Page(), PersistsAfterRelayout(), PositionChanged(), PreferredUiConfigMode(), PrepareForFocusGainL(), PrepareForFocusLossL(), PrepareForViewActivation(), RelayoutFinishedL(), ReleaseControls(), ReleasePageL(), RemoveControl(), RequestRelayout(), SaveL(), SetAdjacent(), SetBorder(), SetBorder(), SetContainerWindowL(), SetDimmed(), SetInitialFocusL(), SetNeighbor(), SetPageCommandListL(), SetParent(), SetTextBaselineSpacing(), SizeChanged(), TabActivatedL(), TextBaselineOffset(), TransferPersistentControlStateL(), ViewActivatedL(), ViewConstructL(), ViewDeactivated(), ViewScreenDeviceChangedL(), ViewScreenModeCompatible(), WriteInternalStateL(), ~CQikMultiPageViewBase()

    Inherited from CBase:
    Delete(), Extension_(), operator new()

    Inherited from CCoeControl:
    AccumulatedZoom(), ActivateGc(), BackedUpWindow(), Background(), CapturesPointer(), ClaimPointerGrab(), CloseWindow(), 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(), Observer(), OverrideColorL(), OwnsWindow(), Parent(), Position(), PositionRelativeToScreen(), Rect(), RecursivelyMergedInputCapabilities(), ReportEventL(), Reserved_CCoeControl_10(), Reserved_CCoeControl_11(), Reserved_CCoeControl_12(), Reserved_CCoeControl_13(), 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:
    ComponentControl(), CountComponentControls(), iBorder

    Inherited from CQikContainer:
    ClosestFocusingControl()

    Inherited from CQikContainerBase:
    ControlsOwnedExternally(), HandlesRelayoutRequests(), HorizontalWrappingEnabled(), IsRelayoutInProgress(), RowBasedMode(), SetDebugMode(), SetHandleRelayoutRequests(), SetHorizontalWrappingEnabled(), SetPersistsAfterRelayout(), SetRelayoutInProgress(), SetRowBasedMode(), SetVerticalWrappingEnabled(), VerticalWrappingEnabled()

    Inherited from CQikViewBase:
    ActivatePreviousViewL(), ActivateTabL(), ActiveTabId(), AddTabL(), CQikViewBase_Reserved_4(), CategoryHandleForCommandId(), CategoryModel(), CommandIdForCategoryHandle(), ControlProvider(), Controls(), CurrentCategoryHandle(), ECancel, ESave, ETypeId, EViewActivatedL, EViewCategoryAdded, EViewConstructL, EViewInitializeViewFromResourceL, EViewRequestFocusL, EViewSaveL, EViewSetInitialFocusL, EmbeddedLinkEnabled(), GetCompatibleViewConfigData(), GetCurrentViewConfigData(), IsCommandListActive(), IsDefaultView(), IsTabDimmed(), ParentView(), PerformLayout(), PreemptViewConstructionL(), RemoveTabL(), RequestFocusL(), ResetBackBehavior(), SaveThenDnlToL(), SelectCategoryL(), SetAppTitleIconL(), SetAppTitleNameL(), SetCategoryModel(), SetCategoryModelAsCommandsL(), SetEmbeddedLinkEnabled(), SetLayoutManagerL(), SetParentView(), SetTabDimmed(), SetTabIndex(), SetTabResponsiveWhenActive(), SetViewModeL(), SetViewToolbarL(), TSaveMode, TViewError, Tab(), TabCount(), ViewConstructFromResourceL(), ViewContext(), ViewId(), ViewMode(), ViewToolbar(), ViewToolbarResourceId(), anonymous, iQikAppUi, iViewConfigList, operator class MCoeView &(), operator class MCoeView *()

    Inherited from MCoeControlObserver:
    EEventInteractionRefused, EEventPrepareFocusTransition, EEventRequestCancel, EEventRequestExit, EEventRequestFocus, EEventStateChanged, TCoeEvent

    Inherited from MObjectProvider:
    MopGetObject(), MopGetObjectNoChaining()

    Inherited from MQikCommandHandler:
    HandleAttemptDimmedSelectionL()

    Inherited from MQikCommandListOwner:
    MapCommandHandler()

    Inherited from MQikCommandModelOwner:
    DynInitOrDeleteCommandL(), FindCompatibleUiConfig()


    Construction and destruction


    ~CQikMultiPageViewBase()

    IMPORT_C ~CQikMultiPageViewBase();

    Description

    Destructor


    ConstructL()

    virtual IMPORT_C void ConstructL();

    Description

    Second phase construction. This function completes the construction of a newly allocated CQikMultiPageViewBase instance. Usually the concrete implementation of the view class calls this method in its own ConstructL() method. The BaseConstructL() method is called from within this method.


    CQikMultiPageViewBase()

    protected: IMPORT_C CQikMultiPageViewBase(CQikAppUi &aAppUi, const TVwsViewId aParentViewId);

    Description

    Constructor.

    Parameters

    CQikAppUi &aAppUi

    A reference to a CQikAppUi .

    const TVwsViewId aParentViewId

    A view id of the parent view. This should be the logical view that is normally activated when a go back command is issued. This view will be activated when calling ActivatePreviousViewL() unless we DNL:ed to this view from another application. If this is the applications default view you should normally pass KNullViewId as the parameter. KNullViewId will activate the system default view. Returns the logical view that should be activated when ActivatePreviousViewL()

    See also:

    [Top]


    Member functions


    ConstructPageL()

    IMPORT_C CQikContainerBase *ConstructPageL(const TDesC &aUri, TInt aPageId, const TDesC &aCaption=KNullDesC);

    Description

    Constructs a page. Note, the page is owned by the view, so the returned container must never be deleted nor put on the cleanup stack.

    Parameters

    const TDesC &aUri

    The URI for a CQikContent .

    TInt aPageId

    The ID of the page to construct.

    const TDesC &aCaption

    The caption of the page.

    Return value

    CQikContainerBase *

    The constructed page.

    Panic codes

    EQikPanicIllegalPageId

    DEBUG_BUILDS: The max number of layouts has been reached. RELEASE_BUILDS: Does nothing.


    ConstructPageL()

    IMPORT_C CQikContainerBase *ConstructPageL(TInt aPageId, const TDesC &aCaption=KNullDesC, CFbsBitmap *aBitmap=0, CFbsBitmap *aMask=0);

    Description

    Constructs a page. Note, the page is owned by the view, so the returned container should never be deleted nor put on the cleanup stack.

    Parameters

    TInt aPageId

    The ID of the page to construct.

    const TDesC &aCaption

    The caption of the page.

    CFbsBitmap *aBitmap

    The bitmap that will be used as an icon.

    CFbsBitmap *aMask

    The mask of aBitmap .

    Return value

    CQikContainerBase *

    The constructed page.

    Panic codes

    EQikPanicIllegalPageId

    DEBUG_BUILDS: The max number of layouts has been breached. RELEASE_BUILDS: Does nothing.


    ConstructPageWithoutActivationL()

    IMPORT_C CQikContainerBase *ConstructPageWithoutActivationL(const TDesC &aUri, TInt aPageId, const TDesC &aCaption=KNullDesC);

    Description

    Constructs a page without activating it. The user is responsible for calling ActivatePageL() . Note, the page is owned by the view, so the returned container must never be deleted nor put on the cleanup stack.

    Parameters

    const TDesC &aUri

    The URI for a CQikContent .

    TInt aPageId

    The ID of the page to construct.

    const TDesC &aCaption

    The caption of the page.

    Return value

    CQikContainerBase *

    The constructed page.

    Panic codes

    EQikPanicIllegalPageId

    DEBUG_BUILDS: The max number of layouts has been breached. RELEASE_BUILDS: Does nothing.


    ConstructPageWithoutActivationL()

    IMPORT_C CQikContainerBase *ConstructPageWithoutActivationL(TInt aPageId, const TDesC &aCaption=KNullDesC, CFbsBitmap *aBitmap=0, CFbsBitmap *aMask=0);

    Description

    Constructs a page without activating it. The user is responsible for calling ActivatePageL() . Note, the page is owned by the view, so the returned container must never be deleted nor put on the cleanup stack.

    Parameters

    TInt aPageId

    The ID of the page to construct.

    const TDesC &aCaption

    The caption of the page.

    CFbsBitmap *aBitmap

    The bitmap that will be used as an icon.

    CFbsBitmap *aMask

    The mask of aBitmap .

    Return value

    CQikContainerBase *

    The constructed page.

    Panic codes

    EQikPanicIllegalPageId

    DEBUG_BUILDS: The max number of layouts has been breached. RELEASE_BUILDS: Does nothing.


    ReleasePageL()

    IMPORT_C TInt ReleasePageL(TInt aPageId);

    Description

    Removes a page.

    The page and its controls is not deleted. The state of the controls remain.

    This function removes the tab, moves all controls to the RQikReleasedControlsArray , removes the current layout manager and deletes the command list. All this is done for the specified page.

    A more simple solution is to just dim or make the tab invisible by using the interface class MQikTab . Call Tab() and use the returned interface MQikTab to set the visual state of the tab.

    Parameters

    TInt aPageId

    The ID of the page to remove.

    Return value

    TInt

    KErrNone if no error.

    See also:


    DeletePageL()

    IMPORT_C TInt DeletePageL(TInt aPageId);

    Description

    Deletes a page and all its controls.

    Parameters

    TInt aPageId

    The ID of the page to delete.

    Return value

    TInt

    KErrNone if no error.


    ActivePageId()

    IMPORT_C TInt ActivePageId() const;

    Description

    Gets the ID of the active page.

    Return value

    TInt

    The ID of the active page, or KErrNotFound if no active page.


    DeactivatePageL()

    IMPORT_C void DeactivatePageL(TInt aPageId);

    Description

    Deactivates a page and activates the page with the lowest ID.

    Parameters

    TInt aPageId

    The ID of the page to deactivate.


    Page()

    IMPORT_C CQikContainerBase *Page(TInt aPageId);

    Description

    Gets a page. The page ID numbers needs not to be in sequence, can be random unique numbers.

    Parameters

    TInt aPageId

    The ID of the page.

    Return value

    CQikContainerBase *

    The page asked for or NULL if it can not be found.


    Page()

    IMPORT_C const CQikContainerBase *Page(TInt aPageId) const;

    Description

    Gets a page. The page ID numbers needs not to be in sequence, can be random unique numbers.

    Parameters

    TInt aPageId

    The ID of the page.

    Return value

    const CQikContainerBase *

    The page asked for or NULL if it can not be found.


    SetPageCommandListL()

    IMPORT_C void SetPageCommandListL(TInt aPageId, TInt aCommandlistResource, TInt aUiConfigMode=KUiConfigMaskAll);

    Description

    Sets the command list for a specific page.

    Parameters

    TInt aPageId

    The specific page to apply this too.

    TInt aCommandlistResource

    The QIK_COMMAND_LIST resource ID.

    TInt aUiConfigMode

    The ui-config ID that identifies the CommandList to which the Commands is inserted.


    ActivatePageL()

    IMPORT_C void ActivatePageL(TInt aPageId);

    Description

    Activates a page.

    Parameters

    TInt aPageId

    The ID of the page to activate.


    InitializeViewFromResourceL()

    virtual IMPORT_C void InitializeViewFromResourceL(TInt aViewResourceId);

    Description

    Wraps aViewresourceId into a TQikViewConfigData and forward the call to InitializeViewFromResourceL() .

    Parameters

    TInt aViewResourceId

    The layout resource ID.

    See also:


    InitializeViewFromResourceL()

    virtual IMPORT_C void InitializeViewFromResourceL(const TQikViewConfigData &aViewConfigData);

    Description

    Initializes the controls and layout of a view. It starts by releasing the current controls. It then creates the new controls and layout using the requested page layout. Controls that were released and that are part of the new layout are reused if possible. When finished, RequestRelayoutL() is called.

    This method is called automatically by ViewConstructFromResourceL() . It is also called automatically by HandleUiConfigChangedL() when the ui configuration changes and there is another resource specified for the layout in the new ui configuration.

    The default implementation reads a resource of type QIK_VIEW

    Parameters

    const TQikViewConfigData &aViewConfigData

    The resource for the view and information about which UI configuration mode to use.

    See also:


    SetInitialFocusL()

    virtual IMPORT_C void SetInitialFocusL();

    Description

    Will be called by the framework when a view or tab has been activated if no control is already focused. This default implementation tries to set focus on first focusable control. Override this if you want to handle initial focus in derived classes.

    See also:


    ReleaseControls()

    virtual IMPORT_C void ReleaseControls(RQikReleasedControlsArray &aReleasedControls);

    Description

    Releases all controls prior to a relayout.

    Parameters

    RQikReleasedControlsArray &aReleasedControls

    The array with controls that are released due to a relayout.

    See also:


    FocusedControl()

    virtual IMPORT_C CCoeControl *FocusedControl();

    Description

    Returns the control currently in focus.

    Return value

    CCoeControl *

    The control currently in focus.


    BaseConstructL()

    protected: IMPORT_C void BaseConstructL();

    Description

    Initialises the view with standard values. The concrete implementation of the view class must make sure that this method is called during the construction phase. Either by calling the CQikViewBase::ConstructL() method from its own ConstructL() method or by calling this method directly, that is CQikViewBase::BaseConstructL() .

    See also:


    TabActivatedL()

    protected: virtual IMPORT_C void TabActivatedL(TInt aTabId);

    Description

    This method is called from the framework when a tab is activated.

    This function must not be called manually. If this is overloaded in a sub-class, remember to call this method from that implementation. This function activates and turns on the visibility of the activated page.

    Parameters

    TInt aTabId

    The ID of the tab that was activated.

    See also:


    SizeChanged()

    protected: virtual IMPORT_C void SizeChanged();

    Description

    Handles updates of size and position. All pages is updated with the current position and size. SizeChanged() of the base class is called first of all from within this method.

    See also:


    WriteInternalStateL()

    protected: virtual IMPORT_C void WriteInternalStateL(RWriteStream &aWriteStream) const;

    Description

    Writes the internal state of the control to the provided stream.

    Parameters

    RWriteStream &aWriteStream

    Text.


    OfferKeyEventL()

    virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);

    Description

    Parameters

    const TKeyEvent &aKeyEvent

    TEventCode aType

    Return value

    TKeyResponse

    See also:


    MakeVisible()

    virtual IMPORT_C void MakeVisible(TBool aVisible);

    Description

    Parameters

    TBool aVisible

    See also:


    MopSupplyObject()

    virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);

    Description

    Parameters

    TTypeUid aId

    Return value

    TTypeUid::Ptr

    See also:


    GetTextDrawer()

    virtual IMPORT_C void GetTextDrawer(CCoeTextDrawerBase *&aTextDrawer, const CCoeControl *aDrawingControl, TInt aKey) const;

    Description

    Parameters

    CCoeTextDrawerBase *&aTextDrawer

    const CCoeControl *aDrawingControl

    TInt aKey

    See also:


    ConstructFromResourceL()

    virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aReader);

    Description

    Parameters

    TResourceReader &aReader

    See also:


    RequestRelayout()

    virtual IMPORT_C TBool RequestRelayout(const CCoeControl *aChildControl);

    Description

    Parameters

    const CCoeControl *aChildControl

    Return value

    TBool

    See also:


    MinimumSize()

    virtual IMPORT_C TSize MinimumSize();

    Description

    Return value

    TSize

    See also:


    GetColorUseListL()

    virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;

    Description

    Parameters

    CArrayFix< TCoeColorUse > &aColorUseList

    See also:


    HandleResourceChange()

    virtual IMPORT_C void HandleResourceChange(TInt aType);

    Description

    Parameters

    TInt aType

    See also:


    PrepareForFocusGainL()

    virtual IMPORT_C void PrepareForFocusGainL();

    Description

    See also:


    PrepareForFocusLossL()

    virtual IMPORT_C void PrepareForFocusLossL();

    Description

    See also:


    HasBorder()

    virtual IMPORT_C TBool HasBorder() const;

    Description

    Return value

    TBool

    See also:


    SetAdjacent()

    virtual IMPORT_C void SetAdjacent(TInt aAdjacent);

    Description

    Parameters

    TInt aAdjacent

    See also:


    SetDimmed()

    virtual IMPORT_C void SetDimmed(TBool aDimmed);

    Description

    Parameters

    TBool aDimmed

    See also:


    SetContainerWindowL()

    virtual IMPORT_C void SetContainerWindowL(const CCoeControl &aContainer);

    Description

    Parameters

    const CCoeControl &aContainer

    See also:


    ActivateL()

    virtual IMPORT_C void ActivateL();

    Description

    See also:


    SetNeighbor()

    virtual IMPORT_C void SetNeighbor(CCoeControl *aNeighbor);

    Description

    Parameters

    CCoeControl *aNeighbor

    See also:


    GetHelpContext()

    virtual IMPORT_C void GetHelpContext(TCoeHelpContext &aContext) const;

    Description

    Parameters

    TCoeHelpContext &aContext

    See also:


    SetParent()

    virtual IMPORT_C TInt SetParent(CCoeControl *aParent);

    Description

    Parameters

    CCoeControl *aParent

    Return value

    TInt

    See also:


    TextBaselineOffset()

    virtual IMPORT_C TInt TextBaselineOffset(const TSize &aSize) const;

    Description

    Parameters

    const TSize &aSize

    Return value

    TInt

    See also:


    SetTextBaselineSpacing()

    virtual IMPORT_C void SetTextBaselineSpacing(TInt aSpacing);

    Description

    Parameters

    TInt aSpacing

    See also:


    InputCapabilities()

    virtual IMPORT_C TCoeInputCapabilities InputCapabilities() const;

    Description

    Return value

    TCoeInputCapabilities

    See also:


    ContainerWindow()

    virtual IMPORT_C const CCoeControl &ContainerWindow() const;

    Description

    Return value

    const CCoeControl &

    See also:


    InitializeFromResourceL()

    virtual IMPORT_C void InitializeFromResourceL(TResourceReader &aReader, MQikControlProvider &aProvider);

    Description

    Parameters

    TResourceReader &aReader

    MQikControlProvider &aProvider

    See also:


    BeginUpdateLC()

    virtual IMPORT_C void BeginUpdateLC();