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

Definition at line 29 of file ListboxSettingView.h.
Public Member Functions |
|
| void | HandleSizeChange (TInt aType) |
Static Public Member Functions |
|
| static CListboxSettingView * | NewL () |
Private Member Functions |
|
| TUid | Id () const |
| void | HandleCommandL (TInt aCommand) |
| void | DoActivateL (const TVwsViewId &aPrevViewId, TUid aCustomMessageId, const TDesC8 &aCustomMessage) |
| void | DoDeactivate () |
| void | DynInitMenuPaneL (TInt aResourceId, CEikMenuPane *aMenuPane) |
| void | ConstructL () |
| CListboxSettingView () | |
| ~CListboxSettingView () | |
Private Attributes |
|
| CListboxSettingList * | iContainer |
|
|
C++ default constructor. Definition at line 43 of file ListboxSettingView.cpp.
|
|
|
Destructor. Definition at line 52 of file ListboxSettingView.cpp. References iContainer. 00053 { 00054 if ( iContainer ) 00055 { 00056 AppUi()->RemoveFromStack( iContainer ); 00057 delete iContainer; 00058 } 00059 }
|
|
|
Two-phased constructor. Definition at line 29 of file ListboxSettingView.cpp. References ConstructL(). Referenced by CListboxAppUi::ConstructL(). 00030 { 00031 CListboxSettingView* self = new (ELeave) CListboxSettingView; 00032 CleanupStack::PushL(self); 00033 self->ConstructL(); 00034 CleanupStack::Pop(self); 00035 return self; 00036 }
|
|
|
Called by HandleResourceChangeL() from CListboxAppUi when layout is changed.
Definition at line 155 of file ListboxSettingView.cpp. References iContainer. Referenced by CListboxAppUi::HandleResourceChangeL(). 00156 { 00157 if( iContainer ) 00158 { 00159 iContainer->HandleResourceChange( aType ); 00160 00161 if( aType==KEikDynamicLayoutVariantSwitch ) 00162 { 00163 TRect rect; 00164 AknLayoutUtils::LayoutMetricsRect(AknLayoutUtils::EMainPane, rect); 00165 iContainer->SetRect(rect); 00166 } 00167 } 00168 }
|
|
|
From CAknView. Returns views id.
Definition at line 66 of file ListboxSettingView.cpp.
|
|
|
From CAknView. Handles commands
Definition at line 76 of file ListboxSettingView.cpp. References CListboxSettingList::EditItemL(), and iContainer. 00077 { 00078 switch( aCommand ) 00079 { 00080 case EListboxCmdChange: 00081 iContainer->EditItemL( 0, ETrue ); 00082 break; 00083 default: 00084 AppUi()->HandleCommandL(aCommand); 00085 break; 00086 } 00087 }
|
|
||||||||||||||||
|
From CAknView. Activates view
Definition at line 94 of file ListboxSettingView.cpp. References iContainer, and CListboxSettingList::NewL(). 00097 { 00098 iContainer = CListboxSettingList::NewL(); 00099 00100 iContainer->SetMopParent( this ); 00101 iContainer->ConstructFromResourceL( R_LISTBOX_SETTING_ITEM_LIST ); 00102 AppUi()->AddToStackL( *this, iContainer ); 00103 00104 iContainer->MakeVisible( ETrue ); 00105 iContainer->SetRect( ClientRect() ); 00106 iContainer->ActivateL(); 00107 }
|
|
|
From CAknView. Deactivates view. Definition at line 114 of file ListboxSettingView.cpp. References iContainer. 00115 { 00116 if ( iContainer ) 00117 { 00118 AppUi()->RemoveFromViewStack( *this, iContainer ); 00119 delete iContainer; 00120 iContainer = NULL; 00121 } 00122 }
|
|
||||||||||||
|
From MEikMenuObserver, DynInitMenuPaneL. This function is called by the EIKON framework just before it displays a menu pane.
Definition at line 140 of file ListboxSettingView.cpp. 00142 { 00143 if( aResourceId == R_LISTBOX_CHANGE_SUBMENU ) 00144 { 00145 aMenuPane->SetItemDimmed( EListboxCommandToSetting, ETrue ); 00146 } 00147 }
|
|
|
By default Symbian 2nd phase constructor is private. Definition at line 129 of file ListboxSettingView.cpp. Referenced by NewL().
|
|
|
Container. Own. Definition at line 117 of file ListboxSettingView.h. Referenced by DoActivateL(), DoDeactivate(), HandleCommandL(), HandleSizeChange(), and ~CListboxSettingView(). |
|
© Nokia 2009 |