|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : aknexpoplistcontainer.cpp 00004 * Part of : Popup-list example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 // INCLUDE FILES 00017 #include <eiklabel.h> 00018 #include "AknExPopListContainer.h" 00019 00020 00021 // ========================= MEMBER FUNCTIONS ================================== 00022 00023 // ----------------------------------------------------------------------------- 00024 // CAknExPopListContainer::ConstructL() 00025 // Symbian 2nd phase constructor can leave. 00026 // ----------------------------------------------------------------------------- 00027 // 00028 void CAknExPopListContainer::ConstructL( const TRect& aRect ) 00029 { 00030 CreateWindowL(); 00031 SetRect( aRect ); 00032 ActivateL(); 00033 } 00034 00035 // ----------------------------------------------------------------------------- 00036 // CAknExPopListContainer::~CAknExPopListContainer() 00037 // Destructor. 00038 // ----------------------------------------------------------------------------- 00039 // 00040 CAknExPopListContainer::~CAknExPopListContainer() 00041 { 00042 // No implementation required 00043 } 00044 00045 // ----------------------------------------------------------------------------- 00046 // CAknExPopListContainer::SizeChanged() 00047 // Called by framework when the view size is changed 00048 // ----------------------------------------------------------------------------- 00049 // 00050 void CAknExPopListContainer::SizeChanged() 00051 { 00052 // No implementation required 00053 } 00054 00055 // ----------------------------------------------------------------------------- 00056 // CAknExPopListContainer::CountComponentControls() const 00057 // return number of controls inside this container. 00058 // ----------------------------------------------------------------------------- 00059 // 00060 TInt CAknExPopListContainer::CountComponentControls() const 00061 { 00062 return KNumberOfControls; 00063 } 00064 00065 // ----------------------------------------------------------------------------- 00066 // CAknExPopListContainer::ComponentControl() const 00067 // returns pointer of controls inside this container 00068 // ----------------------------------------------------------------------------- 00069 // 00070 CCoeControl* CAknExPopListContainer::ComponentControl( TInt /*aIndex*/ ) const 00071 { 00072 return NULL; 00073 } 00074 00075 // ----------------------------------------------------------------------------- 00076 // CAknExPopListContainer:Draw() const 00077 // Draws the display 00078 // ----------------------------------------------------------------------------- 00079 // 00080 void CAknExPopListContainer::Draw( const TRect& aRect ) const 00081 { 00082 CWindowGc& gc = SystemGc(); 00083 gc.SetPenStyle( CGraphicsContext::ENullPen ); 00084 gc.SetBrushColor( KRgbColorGray ); 00085 gc.SetBrushStyle( CGraphicsContext::ESolidBrush ); 00086 gc.DrawRect( aRect ); 00087 } 00088 00089 // ----------------------------------------------------------------------------- 00090 // CAknExPopListContainer::HandleControlEventL() 00091 // Handles an event of type aEventType reported 00092 // by the control aControl to this observer. 00093 // ----------------------------------------------------------------------------- 00094 // 00095 void CAknExPopListContainer::HandleControlEventL( CCoeControl* /*aControl*/, 00096 TCoeEvent /*aEventType*/ ) 00097 { 00098 // No implementation required 00099 } 00100 00101 // End of File
|
© Nokia 2009 |