equal
deleted
inserted
replaced
169 |
169 |
170 iTabGroup->SetActiveTabByIndex(0); |
170 iTabGroup->SetActiveTabByIndex(0); |
171 iTabGroup->SetObserver(this); |
171 iTabGroup->SetObserver(this); |
172 |
172 |
173 iNaviPane->Pop(); |
173 iNaviPane->Pop(); |
174 iNaviPane->PushL(*iNaviDecorator); |
174 SetTabsVisibleL(ETrue); |
175 } |
175 } |
176 |
176 |
177 void CPodcastAppUi::TabChangedL (TInt aIndex) |
177 void CPodcastAppUi::TabChangedL (TInt aIndex) |
178 { |
178 { |
179 DP("CPodcastListView::TabChangedL "); |
179 DP("CPodcastListView::TabChangedL "); |
|
180 |
|
181 if (!iTabsVisible) |
|
182 { |
|
183 return; |
|
184 } |
180 |
185 |
181 TUid newview = TUid::Uid(0); |
186 TUid newview = TUid::Uid(0); |
182 TUid messageUid = TUid::Uid(0); |
187 TUid messageUid = TUid::Uid(0); |
183 |
188 |
184 if (aIndex == KTabIdFeeds) { |
189 if (aIndex == KTabIdFeeds) { |
224 } |
229 } |
225 } |
230 } |
226 |
231 |
227 void CPodcastAppUi::TabLeft() |
232 void CPodcastAppUi::TabLeft() |
228 { |
233 { |
|
234 if (!iTabsVisible) |
|
235 { |
|
236 return; |
|
237 } |
|
238 |
229 TInt ati = iTabGroup->ActiveTabIndex(); |
239 TInt ati = iTabGroup->ActiveTabIndex(); |
230 if(ati > 0) { |
240 if(ati > 0) { |
231 SetActiveTab(ati-1); |
241 SetActiveTab(ati-1); |
232 TabChangedL(ati-1); |
242 TabChangedL(ati-1); |
233 } |
243 } |
234 } |
244 } |
235 |
245 |
236 void CPodcastAppUi::TabRight() |
246 void CPodcastAppUi::TabRight() |
237 { |
247 { |
|
248 if (!iTabsVisible) |
|
249 { |
|
250 return; |
|
251 } |
|
252 |
238 TInt ati = iTabGroup->ActiveTabIndex(); |
253 TInt ati = iTabGroup->ActiveTabIndex(); |
239 |
|
240 if(ati < iTabGroup->TabCount()-1) { |
254 if(ati < iTabGroup->TabCount()-1) { |
241 SetActiveTab(ati+1); |
255 SetActiveTab(ati+1); |
242 TabChangedL(ati+1); |
256 TabChangedL(ati+1); |
243 } |
257 } |
244 } |
258 } |
|
259 |
|
260 void CPodcastAppUi::SetTabsVisibleL(TBool aVisible) |
|
261 { |
|
262 if (aVisible) |
|
263 { |
|
264 if(!iTabsVisible && iNaviDecorator) |
|
265 { |
|
266 iNaviPane->PushL(*iNaviDecorator); |
|
267 } |
|
268 } |
|
269 else if (iTabsVisible) { |
|
270 iNaviPane->Pop(iNaviDecorator); |
|
271 } |
|
272 |
|
273 iTabsVisible=aVisible; |
|
274 } |