|
Public Types |
enum | TSliderGfxElements {
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...
|
enum | { EDragMarkerStart = 1000,
EDragMarkerEnd
} |
| Event for slider thumb/marker dragging. 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.
|
void | SuppressDrawing (TBool aSuppress) |
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
| From CCoeControl.
|
TInt | StepSize () const |
void | ReportMarkerDragEvent (TBool aEnable) |
| Report event for thumb/marker dragging via HandleControlEventL.
|
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.
|