|
Nokia N97 SDK Example Applications Guide |
#include <CommonDialogsExContainer.h>
Inheritance diagram for CCommonDialogsExContainer:

Definition at line 30 of file CommonDialogsExContainer.h.
Public Member Functions |
|
| void | ConstructL (const TRect &aRect) |
| ~CCommonDialogsExContainer () | |
| void | ShowTextL (const TDesC &aTextMain, const TDesC &aTextSub) |
Private Member Functions |
|
| void | SizeChanged () |
| TInt | CountComponentControls () const |
| CCoeControl * | ComponentControl (TInt aIndex) const |
| void | Draw (const TRect &aRect) const |
| void | HandleControlEventL (CCoeControl *aControl, TCoeEvent aEventType) |
| void | HandleResourceChange (TInt aType) |
Private Attributes |
|
| CEikLabel * | iLabel |
| CEikLabel * | iToDoLabel |
|
|
Destructor. Definition at line 48 of file CommonDialogsExContainer.cpp. References iLabel, and iToDoLabel. 00049 { 00050 delete iLabel; 00051 delete iToDoLabel; 00052 }
|
|
|
EPOC default constructor.
Definition at line 30 of file CommonDialogsExContainer.cpp. References iLabel, and iToDoLabel. Referenced by CCommonDialogsExAppUi::ConstructL(). 00031 { 00032 CreateWindowL(); 00033 00034 iLabel = new (ELeave) CEikLabel; 00035 iLabel->SetContainerWindowL( *this ); 00036 iLabel->SetTextL( KCommonDialogsExTitle ); 00037 00038 iToDoLabel = new (ELeave) CEikLabel; 00039 iToDoLabel->SetContainerWindowL( *this ); 00040 iToDoLabel->SetTextL( KCommonDialogsExGuide ); 00041 00042 00043 SetRect(aRect); 00044 ActivateL(); 00045 }
|
|
||||||||||||
|
Show text message on screen by using label Definition at line 120 of file CommonDialogsExContainer.cpp. References iLabel, iToDoLabel, and SizeChanged(). Referenced by CCommonDialogsExAppUi::HandleCommandL(). 00122 { 00123 iLabel->SetTextL(aText); 00124 iToDoLabel->SetTextL(aTextSub); 00125 SizeChanged(); 00126 DrawDeferred(); 00127 }
|
|
|
From CoeControl,SizeChanged. Definition at line 59 of file CommonDialogsExContainer.cpp. References iLabel, and iToDoLabel. Referenced by ShowTextL(). 00060 { 00061 iLabel->SetExtent( TPoint(10,10), iLabel->MinimumSize() ); 00062 iToDoLabel->SetExtent( TPoint(10,90), iToDoLabel->MinimumSize() ); 00063 }
|
|
|
From CoeControl,CountComponentControls. Definition at line 69 of file CommonDialogsExContainer.cpp.
|
|
|
From CCoeControl,ComponentControl. Definition at line 78 of file CommonDialogsExContainer.cpp. References iLabel, and iToDoLabel. 00079 { 00080 switch ( aIndex ) 00081 { 00082 case 0: 00083 return iLabel; 00084 case 1: 00085 return iToDoLabel; 00086 default: 00087 return NULL; 00088 } 00089 }
|
|
|
From CCoeControl,Draw. Definition at line 95 of file CommonDialogsExContainer.cpp. 00096 { 00097 CWindowGc& gc = SystemGc(); 00098 gc.SetPenStyle(CGraphicsContext::ENullPen); 00099 gc.SetBrushColor(KRgbGray); 00100 gc.SetBrushStyle(CGraphicsContext::ESolidBrush); 00101 gc.DrawRect(aRect); 00102 }
|
|
||||||||||||
|
From MCoeControlObserver Definition at line 109 of file CommonDialogsExContainer.cpp.
|
|
|
From CCoeControl, HandleResourceChange. Make dynamic resolution change smoother.
Definition at line 134 of file CommonDialogsExContainer.cpp. 00135 { 00136 if (aType == KEikDynamicLayoutVariantSwitch) 00137 { 00138 SetRect( iAvkonAppUi->ClientRect()); 00139 } 00140 CCoeControl::HandleResourceChange( aType ); 00141 }
|
|
© Nokia 2009 |