API published in: S60 2nd Ed
Link against: avkon.lib
Required Capabilities
None
#include <akncolourselectiongrid.h>
Inherits CAknDialog, and MEikListBoxObserver.
This class can be used when application offers to user possibility to choose colour. There is also possibility to select nothing.
use example:
TBool noneExist = ETrue; TBool noneChosen = EFalse; TRgb colour = KRgbDarkGray; CArrayFixFlat<TRgb>* colours = new(ELeave) CArrayFixFlat<TRgb>(6);
colours->AppendL(KRgbBlack); colours->AppendL(KRgbDarkGray);
CAknColourSelectionGrid *d = CAknColourSelectionGrid::NewL( colours, noneExist, noneChosen, colour);
d->ExecuteLD();
Public Member Functions |
|
IMPORT_C TBool | ExecuteLD () |
ExecuteLD() runs dialog, waits user to make his choise and destroys dialog. |
|
IMPORT_C | ~CAknColourSelectionGrid () |
Destructor. |
|
void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
From MCoeControlObserver Handles control events from nonebutton. |
|
void | HandleDialogPageEventL (TInt aEventID) |
From MDialogPageObserver Handles dialogpage events. |
|
Static Public Member Functions |
|
static IMPORT_C CAknColourSelectionGrid * | NewL (CArrayFixFlat< TRgb > *aColours, TBool aNoneExist, TBool &aNoneChosen, TRgb &aColourChosen) |
Two-phased constructor. |
|
Destructor. |
|
ExecuteLD() runs dialog, waits user to make his choise and destroys dialog. |
|
From MCoeControlObserver Handles control events from nonebutton.
Reimplemented from CEikDialog. |
|
From MDialogPageObserver Handles dialogpage events.
Reimplemented from CEikDialog. |
|
Two-phased constructor. NewL() Creates dialog
|