37 // ---------------------------------------------------------- |
37 // ---------------------------------------------------------- |
38 // |
38 // |
39 void CLauncherAppUi::ConstructL() |
39 void CLauncherAppUi::ConstructL() |
40 { |
40 { |
41 BaseConstructL(EAknEnableSkin); |
41 BaseConstructL(EAknEnableSkin); |
42 |
42 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
43 iSendUi = CSendUi::NewL(); |
43 iSendUi = CSendUi::NewL(); |
44 |
44 #endif |
45 // Show tabs for main views from resources |
45 // Show tabs for main views from resources |
46 CEikStatusPane* sp = StatusPane(); |
46 CEikStatusPane* sp = StatusPane(); |
47 |
47 |
48 // Fetch pointer to the default navi pane control |
48 // Fetch pointer to the default navi pane control |
49 iNaviPane = (CAknNavigationControlContainer*)sp->ControlL( |
49 iNaviPane = (CAknNavigationControlContainer*)sp->ControlL( |
89 CLauncherAppUi::~CLauncherAppUi() |
89 CLauncherAppUi::~CLauncherAppUi() |
90 { |
90 { |
91 delete iEngine; |
91 delete iEngine; |
92 |
92 |
93 delete iDecoratedTabGroup; |
93 delete iDecoratedTabGroup; |
94 |
94 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
95 delete iSendUi; |
95 delete iSendUi; |
|
96 #endif |
96 } |
97 } |
97 |
98 |
98 // ------------------------------------------------------------------------------ |
99 // ------------------------------------------------------------------------------ |
99 // CLauncherAppUi::::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) |
100 // CLauncherAppUi::::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) |
100 // This function is called by the EIKON framework just before it displays |
101 // This function is called by the EIKON framework just before it displays |
112 |
113 |
113 // deleting log is possible only when the log exists |
114 // deleting log is possible only when the log exists |
114 aMenuPane->SetItemDimmed(ECmdDeleteLog, !(iEngine->LogFileExists() || iEngine->BCLogFileExists())); |
115 aMenuPane->SetItemDimmed(ECmdDeleteLog, !(iEngine->LogFileExists() || iEngine->BCLogFileExists())); |
115 |
116 |
116 // SendUI for the log file |
117 // SendUI for the log file |
|
118 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
117 if (iEngine->LogFileExists() || iEngine->BCLogFileExists()) |
119 if (iEngine->LogFileExists() || iEngine->BCLogFileExists()) |
118 { |
120 { |
119 TInt index(0); |
121 TInt index(0); |
120 aMenuPane->ItemAndPos( ECmdDeleteLog, index ); |
122 aMenuPane->ItemAndPos( ECmdDeleteLog, index ); |
121 iSendUi->AddSendMenuItemL(*aMenuPane, index-1, ECmdSendUILogFile, TSendingCapabilities(0, 0, TSendingCapabilities::ESupportsAttachments)); |
123 iSendUi->AddSendMenuItemL(*aMenuPane, index-1, ECmdSendUILogFile, TSendingCapabilities(0, 0, TSendingCapabilities::ESupportsAttachments)); |
122 aMenuPane->SetItemTextL(ECmdSendUILogFile, _L("Send log(s)")); |
124 aMenuPane->SetItemTextL(ECmdSendUILogFile, _L("Send log(s)")); |
123 } |
125 } |
124 } |
126 #endif |
125 |
127 } |
|
128 #if ( SYMBIAN_VERSION_SUPPORT < SYMBIAN_4 ) |
126 else if (aResourceId == R_LAUNCHER_DLLINFO_SUBMENU) |
129 else if (aResourceId == R_LAUNCHER_DLLINFO_SUBMENU) |
127 { |
130 { |
128 //SendUI for the system dll file |
131 //SendUI for the system dll file |
129 TInt index(0); |
132 TInt index(0); |
130 aMenuPane->ItemAndPos( ECmdCompareDLLs, index ); |
133 aMenuPane->ItemAndPos( ECmdCompareDLLs, index ); |
131 |
134 |
132 iSendUi->AddSendMenuItemL(*aMenuPane, index, ECmdSendUISystemDllFile, TSendingCapabilities(0, 0, TSendingCapabilities::ESupportsAttachments)); |
135 iSendUi->AddSendMenuItemL(*aMenuPane, index, ECmdSendUISystemDllFile, TSendingCapabilities(0, 0, TSendingCapabilities::ESupportsAttachments)); |
133 aMenuPane->SetItemTextL(ECmdSendUISystemDllFile, _L("Send list of DLLs")); |
136 aMenuPane->SetItemTextL(ECmdSendUISystemDllFile, _L("Send list of DLLs")); |
134 aMenuPane->SetItemButtonState(ECmdSendUISystemDllFile, EEikMenuItemSymbolIndeterminate); |
137 aMenuPane->SetItemButtonState(ECmdSendUISystemDllFile, EEikMenuItemSymbolIndeterminate); |
135 } |
138 } |
|
139 #endif |
136 } |
140 } |
137 |
141 |
138 // ---------------------------------------------------- |
142 // ---------------------------------------------------- |
139 // CLauncherAppUi::HandleKeyEventL( |
143 // CLauncherAppUi::HandleKeyEventL( |
140 // const TKeyEvent& aKeyEvent,TEventCode /*aType*/) |
144 // const TKeyEvent& aKeyEvent,TEventCode /*aType*/) |