|
|
|||
Location:
QikVertOptionButtonList.h
Link against: qikctl.lib
class CQikVertOptionButtonList : public CCoeControl, public MCoeControlObserver, public MQikCommandHandler, public MQikCommandListOwner, public MQikControlStreamInterface, public MQikTextRepresentationInterface;
Vertical option button list.
This class defines a set of vertically arranged radio buttons i.e. a group of option buttons which supports selection from a group of mutually exclusive options. At any time, only one option button may be set; this is known as the selected option button. The associated resource is QIK_VERTOPBUT .
This class is not intended for user derivation.
MQikTextRepresentationInterface - MQikTextRepresentationInterface should be implemented by controls that are normally shown in a container pop-out e.gMQikControlStreamInterface - MQikControlStreamInterface is used by controls to be able to handle cancel behaviour from e.gMQikCommandListOwner - Interface for classes adding commandsMQikCommandHandler - Interface for classes responsible of executing commandsMCoeControlObserver - Interface for a control to send events to its observer controlMObjectProvider - 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 derivedCQikVertOptionButtonList - Vertical option button listDefined in CQikVertOptionButtonList:
AddOptionButtonL(), CQikVertOptionButtonList(), CQikVertOptionButtonList(), ComponentControl(), ConstructFromResourceL(), ConstructL(), CountComponentControls(), GetColorUseListL(), HandleCommandL(), HandleControlEventL(), HandlePointerEventL(), HandleResourceChange(), InputCapabilities(), LabeledButtonId(), MapCommandHandler(), MinimumSize(), MopSupplyObject(), OfferKeyEventL(), PrepareForFocusGainL(), PrepareForFocusLossL(), RestoreUserDataL(), SetButtonById(), SetControlValueObserver(), SetDimmed(), SetTextL(), SizeChanged(), StoreUserDataL(), Text(), TextRepresentationL(), ~CQikVertOptionButtonList()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeControl:
AccumulatedZoom(),
ActivateGc(),
ActivateL(),
BackedUpWindow(),
Background(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
Components(),
ControlContext(),
ControlEnv(),
CopyControlContextFrom(),
CreateBackedUpWindowL(),
CreateWindowL(),
DeactivateGc(),
DrawBackground(),
DrawDeferred(),
DrawForeground(),
DrawNow(),
DrawableWindow(),
EAbsoluteZoom,
ERelativeZoom,
EnableDragEvents(),
FindBackground(),
FindFontProvider(),
FocusChanged(),
GetColor(),
GetGc(),
GetHelpContext(),
GrabbingComponent(),
HandleComponentControlsResourceChange(),
HandleControlArrayEventL(),
HandlePointerBufferReadyL(),
HandleRedrawEvent(),
HasBorder(),
HitTest(),
IgnoreEventsUntilNextPointerUp(),
Index(),
InitComponentArrayL(),
IsActivated(),
IsBackedUp(),
IsBeingDestroyed(),
IsBlank(),
IsDimmed(),
IsFocused(),
IsNonFocusing(),
IsReadyToDraw(),
IsVisible(),
LayoutManager(),
MakeVisible(),
MaximumWidth(),
Observer(),
OverrideColorL(),
OwnsWindow(),
Parent(),
Position(),
PositionChanged(),
PositionRelativeToScreen(),
Rect(),
RecursivelyMergedInputCapabilities(),
ReportEventL(),
RequestRelayout(),
Reserved_CCoeControl_10(),
Reserved_CCoeControl_11(),
Reserved_CCoeControl_12(),
Reserved_CCoeControl_13(),
ResetGc(),
ScreenFont(),
SetAdjacent(),
SetAllowStrayPointers(),
SetBackground(),
SetBlank(),
SetCanDrawOutsideRect(),
SetComponentsToInheritVisibility(),
SetContainerWindowL(),
SetControlContext(),
SetCornerAndSize(),
SetExtent(),
SetExtentToWholeScreen(),
SetFocus(),
SetFocusing(),
SetFontProviderL(),
SetGc(),
SetGloballyCapturing(),
SetHitTest(),
SetLayoutManagerL(),
SetMaximumWidth(),
SetMopParent(),
SetNeighbor(),
SetNonFocusing(),
SetObserver(),
SetParent(),
SetPointerCapture(),
SetPosition(),
SetRect(),
SetSize(),
SetSizeWithoutNotification(),
SetTextBaselineSpacing(),
SetUniqueHandle(),
SetZoomFactorL(),
Size(),
SystemGc(),
TZoomType,
TextBaselineOffset(),
TextDrawer(),
UniqueHandle(),
Window(),
WriteInternalStateL(),
ZoomWithType(),
iCoeEnv,
iContext,
iPosition,
iSize
Inherited from MCoeControlObserver:
EEventInteractionRefused,
EEventPrepareFocusTransition,
EEventRequestCancel,
EEventRequestExit,
EEventRequestFocus,
EEventStateChanged,
TCoeEvent
Inherited from MObjectProvider:
MopGetObject(),
MopGetObjectNoChaining()
Inherited from MQikCommandHandler:
HandleAttemptDimmedSelectionL()
IMPORT_C CQikVertOptionButtonList(TInt aInterButtonSpacing, TBool aTextOnRight);
overloaded constructor with inter button spacing and button text alignment.
This function partially constructs a CQikVertOptionButtonList. The newly constructed object has the specified inter-button spacing and button text alignment.
The function should be used as the first stage in two stage construction, followed by a call to either ConstructFromResourceL() (to initialise the button list from a resource file) or ConstructL() (if no resource file is used).
|
IMPORT_C CQikVertOptionButtonList();
Default constructor.
This function partially constructs a CQikVertOptionButtonList . The newly constructed object has the default inter-button spacing, and button text to the right of each button.
The function should be used as the first stage in two stage construction, followed by a call to either ConstructFromResourceL() (to initialise the button list from a resource file) or ConstructL() (if no resource file is used).
IMPORT_C ~CQikVertOptionButtonList();
Destructor.
The destructor frees all memory owned by the object, prior to its destruction. This includes all the buttons and the list array which holds them.
IMPORT_C void ConstructL();
Second phase construction. This function completes the construction of a newly-allocated vertical options button list. This function should be used instead of ConstructFromResourceL() when not initialising from a resource file.
The function creates and allocates the button list array, however it does not populate it with option buttons. These must be added to the list using AddOptionButtonL() .
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aReader);
Second phase construction from a resource.
This function completes the construction of a newly-allocated vertical option button list from a QIK_VERTOPBUT resource. The option button's ID and text, inter-button spacing and text alignment may all be read from the resource.
|
IMPORT_C void AddOptionButtonL(TInt aId, const TDesC &aDes);
Adds an option button. The function creates a new option button with the button text in aDes and the ID aId . The button is owned and destroyed by this object.
|
IMPORT_C void SetButtonById(TInt aId);
sets the selected entry by its ID.
|
IMPORT_C TInt LabeledButtonId();
Gets the ID of the selected entry.
|
IMPORT_C TPtrC Text(TInt aId) const;
Gets the specified option button's Label text.
|
|
IMPORT_C void SetTextL(TInt aId, const TDesC &aText);
Sets the specified option button's label text.
|
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
Gets the list of logical colors used to draw the control. The list includes an explanation of how each color is used, and is appended to aColorUseList .
|
virtual IMPORT_C void HandleResourceChange(TInt aType);
Handles a change to the control's resources. The types of resources handled are those which are shared across the environment, e.g. colors or fonts.
|
virtual IMPORT_C void SetDimmed(TBool aDimmed);
Sets the button list as dimmed/undimmed. This dims/undims the button list and its contained buttons.
|
virtual IMPORT_C TInt CountComponentControls() const;
Gets the number of controls contained in a compound control. This function should be implemented by all compound controls.
|
virtual IMPORT_C CCoeControl *ComponentControl(TInt aIndex) const;
Gets a pointer to the button at the specified index.
This might be used to get a pointer to the button to make it possible to change its text.
|
|
virtual IMPORT_C TSize MinimumSize();
Gets the minimum size of the control.
|
virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
Handles key events.
The function is called by the control framework when a key event is received. It sets the appropriate button according the event received, e.g. the left and right arrow key scrolls between buttons. The function returns EKeyWasNotConsumed if it cannot handle a particular key event.
|
|
virtual IMPORT_C void HandlePointerEventL(const TPointerEvent &aPointerEvent);
Handles a pointer event
|
virtual IMPORT_C void SizeChanged();
Handles control size changes.
This function is called by the control framework to notify the button list of a size change.
virtual IMPORT_C TCoeInputCapabilities InputCapabilities() const;
Gets the input capabilities of the control and all its components.
|
virtual IMPORT_C HBufC *TextRepresentationL() const;
Returns the label of the selected option button to pop-out.
|
virtual IMPORT_C void SetControlValueObserver(MQikControlValueObserver *aObserver);
This method is used to set the control value observer that shall later be notified of control value changes.
|
virtual IMPORT_C MQikCommandHandler *MapCommandHandler(CQikCommand &aCommand);
Functionality for Soft key commands.
|
|
virtual IMPORT_C void HandleCommandL(CQikCommand &aCommand);
Called when a softkey or menupane item has been selected.
|
virtual IMPORT_C void StoreUserDataL(RWriteStream &aWriteStream) const;
Method to store the current user data of the control.
|
virtual IMPORT_C void RestoreUserDataL(RReadStream &aReadStream);
Method to restore saved user data of the control.
|
virtual IMPORT_C void HandleControlEventL(CCoeControl *aControl, TCoeEvent aEvent);
Handles control events.
This function is called by the framework to handle button selection. When an EEventStateChanged event is received, this function sets the button chosen by the user as the selected button. It then calls ReportEventL() to pass the event to its observer this is the thing that's using the button list.
|
protected: virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
Gets an object whose type is encapsulated by the specified TTypeUid object.
|
|
virtual IMPORT_C void PrepareForFocusGainL();
Functionality for Soft key commands.