API published in: S60 1st Ed
Link against: avkon.lib
Required Capabilities
None
#include <aknslider.h>
Inherits CEikBorderedControl.
Public Types |
|
enum | { EElemEmptyLeftCap, EElemEmptyRightCap, EElemEmptyLine, EElemFilledLine, EElemFilledLeftCap, EElemFilledRightCap, EElemMarker, EElemTickMark, EElemMarkerSelected } |
Elements that currently support custom graphics. More... |
|
enum | { EPosFilling = 0x01, EPosMarker = 0x02 } |
Supported slider position indicators. More... |
|
Public Member Functions |
|
IMPORT_C | CAknSlider () |
Default Constructor. |
|
IMPORT_C | ~CAknSlider () |
Destructor. |
|
IMPORT_C void | SetValueL (TInt aValue) |
Sets the value of the slider control and also updates the iValueLabel text. |
|
IMPORT_C TInt | Value () const |
Returns the value of the slider control. |
|
IMPORT_C void | SetRange (TInt aMinimumValue, TInt aMaximumValue) |
Sets the range of the slider control. |
|
IMPORT_C void | GetRange (TInt &aMinimumValue, TInt &aMaximumValue) |
Gets the range of the slider control. |
|
IMPORT_C void | SetStepSize (TInt aStepSize) |
Sets the step size. |
|
IMPORT_C void | SetMinimumTextL (const TDesC &aText) |
Sets the text to the minimum label. |
|
IMPORT_C void | SetMaximumTextL (const TDesC &aText) |
Sets the text to the maximum label. |
|
IMPORT_C void | SetDecimalPlaces (TInt aDecimalPlaces) |
Sets the value of decimal places. |
|
IMPORT_C TInt | DecimalPlaces () const |
Returns the value of decimal place. |
|
IMPORT_C void | SetGraphics (TInt aElement, CFbsBitmap *aBitmap, CFbsBitmap *aMask) |
Allows setting custom graphics for a certain slider element. |
|
IMPORT_C void | UseDefaultGraphics (TInt aElement) |
Makes an element to use default graphics. |
|
IMPORT_C TBool | UsesDefaultGraphics (TInt aElement) const |
Queries whether some element is using default graphics. |
|
IMPORT_C void | SetPositionIndicators (TUint32 aFlags) |
Configures line position indicators, which display the slider's current position. |
|
IMPORT_C TUint32 | PositionIndicators () const |
Queries the current status of position indicators. |
|
IMPORT_C TAknOrientation | Orientation () const |
Queries the current orientation status. |
|
IMPORT_C void | SetTicksEnabled (TBool aStatus) |
Enables/disables the tick marks. |
|
IMPORT_C TBool | TicksEnabled () const |
Queries the current tick mark status. |
|
IMPORT_C void | SetTickInterval (TUint aInterval) |
Sets the tick interval used for drawing the tick marks. |
|
IMPORT_C TUint | TickInterval () const |
Queries the current tick interval value. |
|
IMPORT_C void | EnableDrag () |
Call CCoeControl::EnableDragEvents(). |
|
TSize | MinimumSize () |
From CCoeControl, returns the size of the control. |
|
TKeyResponse | OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType) |
From CCoeControl, Handles key event. |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
From CCoeControl, essential for Dialog/Form construction. |
|
IMPORT_C void | ConstructFromResourceL (CCoeControl *aParent, TInt aValue, TResourceReader &aReader) |
This function is used for constructing the control. |
|
IMPORT_C void | HandleResourceChange (TInt aType) |
This function toggles between edit and view modes. |
|
IMPORT_C TInt | NumberOfLines () const |
This function is used specifically in the forms. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl. |
|
Static Public Member Functions |
|
static IMPORT_C CFbsBitmap * | CreateBitmapL (TInt aValue, TInt aResourceId) |
Returns slider bitmap to "list pane for setting item" (setting option item slider graphic). |
|
static IMPORT_C CFbsBitmap * | CreateBitmapL (TInt aValue, TInt aMinimumValue, TInt aMaximumValue) |
Returns slider bitmap to "list pane for setting item" (setting option item slider graphic). |
|
static IMPORT_C CGulIcon * | CreateSetStyleListBoxIconL (TInt aValue, TInt aResourceId) |
Returns slider icon to "list pane for setting item" (setting option item slider graphic). |
|
static IMPORT_C CGulIcon * | CreateSetStyleListBoxIconL (TInt aValue, TInt aMinimumValue, TInt aMaximumValue) |
Returns slider icon to "list pane for setting item" (setting option item slider graphic). |
|
static IMPORT_C HBufC * | CreateValueTextInHBufCL (TInt aValue, TInt aResourceId) |
This routine can be used to combine the resource for a Slider with a value to get the same value text that you would get if
you had the instantiated control. |
|
Protected Member Functions |
|
void | SizeChanged () |
From CCoeControl, Called by framework when the view size is changed. |
|
void | Draw (const TRect &aRect) const |
From CCoeControl, Drawing function which draws the control. |
|
virtual IMPORT_C TInt | CountComponentControls () const |
From CCoeControl, Returns number of components. |
|
virtual IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
From CCoeControl, Returns pointer to particular component. |
|
IMPORT_C void | SetValueTextL () |
Sets the text to the value label. |
|
|
Supported slider position indicators.
|
|
Default Constructor. |
|
Destructor. |
|
From CCoeControl, Returns pointer to particular component.
|
|
This function is used for constructing the control.
|
|
From CCoeControl, essential for Dialog/Form construction.
|
|
From CCoeControl, Returns number of components.
|
|
Returns slider bitmap to "list pane for setting item" (setting option item slider graphic). Ownership of the returned bitmap is transfered to the caller.
|
|
Returns slider bitmap to "list pane for setting item" (setting option item slider graphic). Ownership of the returned bitmap is transfered to the caller.
|
|
Returns slider icon to "list pane for setting item" (setting option item slider graphic). Ownership of the returned icon is transfered to the caller.
|
|
Returns slider icon to "list pane for setting item" (setting option item slider graphic). Ownership of the returned icon is transfered to the caller.
|
|
This routine can be used to combine the resource for a Slider with a value to get the same value text that you would get if you had the instantiated control.
|
|
Returns the value of decimal place.
|
|
From CCoeControl, Drawing function which draws the control.
Reimplemented from CEikBorderedControl. |
|
Call CCoeControl::EnableDragEvents(). |
|
Gets the range of the slider control. Maximum value must be greater than the minimum value, or the method will Panic.
|
|
From CCoeControl. Handles pointer event
Reimplemented from CEikBorderedControl. |
|
This function toggles between edit and view modes.
Reimplemented from CEikBorderedControl. |
|
From CCoeControl, returns the size of the control. And yes, this method is non-const.
|
|
This function is used specifically in the forms. (For Forms/Dialogs to use with LAF) Returns the number of lines on the control.
|
|
From CCoeControl, Handles key event.
|
|
Queries the current orientation status.
|
|
Queries the current status of position indicators.
|
|
Sets the value of decimal places. The legal range is 0 - 9 inclusive.
|
|
Allows setting custom graphics for a certain slider element.
Existing icons (custom or default) for the element are discarded. Note that some elements might not be visible until the corresponding
functionality is enabled, see
Slider takes care of scaling the given icons to the correct size, provided that they have been created with
If the custom icons are created by using skin items (e.g. using color from skin), remember to change the icons whenever skin
changes, see
|
|
Sets the text to the maximum label.
|
|
Sets the text to the minimum label.
|
|
Configures line position indicators, which display the slider's current position.
Possible indicators are defined in
|
|
Sets the range of the slider control. Maximum value must be greater than the minimum value, or the method will Panic.
|
|
Sets the step size. The step size must divide evenly into the Range. This routine should be called after SetRange if either is called.
|
|
Sets the tick interval used for drawing the tick marks.
Tick interval is in the slider range units (not in pixels). If interval value is set to 0, the slider step size is used as
tick interval, see
|
|
Enables/disables the tick marks. Tick marks are disabled by default. Enabling tick marks affects only the visual appearance of slider. That is, enabling slider step handling is not changed.
|
|
Sets the value of the slider control and also updates the iValueLabel text. There are the following constraints on the value: it must be within the current range, it must be at a value that is minimum + N * stepsize. If these are not both true, then the method will Panic
|
|
Sets the text to the value label. |
|
From CCoeControl, Called by framework when the view size is changed. |
|
Queries the current tick interval value.
|
|
Queries the current tick mark status.
|
|
Makes an element to use default graphics. Possible custom graphics for the element is discarded.
|
|
Queries whether some element is using default graphics.
|
|
Returns the value of the slider control.
|