equal
deleted
inserted
replaced
216 * |
216 * |
217 * @see MTsEventControlerObserver |
217 * @see MTsEventControlerObserver |
218 */ |
218 */ |
219 TPoint ViewPos()const; |
219 TPoint ViewPos()const; |
220 |
220 |
|
221 /** |
|
222 * Checks if the app with the given window group id is closing |
|
223 */ |
|
224 TBool IsAppClosing( TInt aWgId ); |
|
225 |
221 public: |
226 public: |
222 // from CCoeControl |
227 // from CCoeControl |
223 TInt CountComponentControls() const; |
228 TInt CountComponentControls() const; |
224 CCoeControl* ComponentControl(TInt aIndex) const; |
229 CCoeControl* ComponentControl(TInt aIndex) const; |
225 void FocusChanged( TDrawNow aDrawNow ); |
230 void FocusChanged( TDrawNow aDrawNow ); |
268 * Creates the ganes grid control. |
273 * Creates the ganes grid control. |
269 */ |
274 */ |
270 void ReCreateGridL(); |
275 void ReCreateGridL(); |
271 |
276 |
272 /** |
277 /** |
|
278 * Setup grid layout |
|
279 */ |
|
280 void LayoutGridL(); |
|
281 |
|
282 /** |
273 * Returns rectangles for fast swap area controls |
283 * Returns rectangles for fast swap area controls |
274 */ |
284 */ |
275 void GetFastSwapAreaRects( RArray<TAknLayoutRect>& aRects ); |
285 void GetFastSwapAreaRects( RArray<TAknLayoutRect>& aRects ); |
276 |
286 |
277 /** |
287 /** |
288 |
298 |
289 /** |
299 /** |
290 * Sends the data-changed notification. |
300 * Sends the data-changed notification. |
291 */ |
301 */ |
292 void NotifyChange(); |
302 void NotifyChange(); |
293 |
|
294 /** |
|
295 * Chage application order. |
|
296 * move Homescreen to first left position. |
|
297 */ |
|
298 void SwapApplicationOrder( RPointerArray<CTsFswEntry>& aArray ); |
|
299 |
303 |
300 /** |
304 /** |
301 * Retrieves and returns size for image graphics. |
305 * Retrieves and returns size for image graphics. |
302 */ |
306 */ |
303 TSize PreferredImageSize(); |
307 TSize PreferredImageSize(); |
380 * Returns current screen orientation: |
384 * Returns current screen orientation: |
381 * |
385 * |
382 * @return 1 if landscape, 0 if portait |
386 * @return 1 if landscape, 0 if portait |
383 */ |
387 */ |
384 TInt GetCurrentScreenOrientation(); |
388 TInt GetCurrentScreenOrientation(); |
385 |
389 |
|
390 /** |
|
391 * Retrieves variety value, based on current screen resolution. |
|
392 * |
|
393 * @param aVariety result of the function, 0 value means portrait |
|
394 * value of 1 indicates landscape |
|
395 * @return ETrue if screen resolution differs from vale returned by |
|
396 * layout meta data functions. |
|
397 */ |
|
398 TBool GetVariety( TInt& aVariety ); |
|
399 |
386 private: // Data |
400 private: // Data |
387 |
401 |
388 // parent control |
402 // parent control |
389 CCoeControl& iParent; |
403 CCoeControl& iParent; |
390 |
404 |
414 |
428 |
415 //Input events handler |
429 //Input events handler |
416 CTsEventControler& iEvtHandler; |
430 CTsEventControler& iEvtHandler; |
417 |
431 |
418 TInt iMaxItemsOnScreen; |
432 TInt iMaxItemsOnScreen; |
419 TInt iPreviousNoOfItems; |
|
420 |
433 |
421 // Tap event |
434 // Tap event |
422 TPointerEvent iTapEvent; |
435 TPointerEvent iTapEvent; |
423 CTsFastSwapTimer* iHighlightTimer; |
436 CTsFastSwapTimer* iHighlightTimer; |
424 |
437 |
436 TBool iIgnoreLayoutSwitch; |
449 TBool iIgnoreLayoutSwitch; |
437 |
450 |
438 // Key event handling |
451 // Key event handling |
439 TBool iConsumeEvent; |
452 TBool iConsumeEvent; |
440 TBool iKeyEvent; |
453 TBool iKeyEvent; |
|
454 |
|
455 // App closing handling |
|
456 RArray<TInt> iIsClosing; |
|
457 TInt iWidgetClosingCount; |
441 }; |
458 }; |
442 |
459 |
443 #endif // TSFASTSWAPAREA_H |
460 #endif // TSFASTSWAPAREA_H |