|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: test akntabgrp.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 //INCLUDE FILES |
|
20 #include "testsdktabgrpcontrol.h" |
|
21 |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CTestTabsControl::NewL |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 CTestTabsControl* CTestTabsControl::NewL() |
|
30 { |
|
31 CTestTabsControl* self = new (ELeave) CTestTabsControl; |
|
32 CleanupStack::PushL(self); |
|
33 self->ConstructL(); |
|
34 CleanupStack::Pop(self); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CTestTabsControl::~CTestTabsControl |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 CTestTabsControl::~CTestTabsControl() |
|
43 { |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CTestTabsControl::CTestTabsControl |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 CTestTabsControl::CTestTabsControl() |
|
51 { |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CTestTabsControl::ConstructL |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 void CTestTabsControl::ConstructL() |
|
59 { |
|
60 CreateWindowL(); |
|
61 //add controls |
|
62 SetRect( Rect() ); |
|
63 ActivateL(); |
|
64 } |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // CTestTabsControl::OfferKeyEventL |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 TKeyResponse CTestTabsControl::OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/, |
|
71 TEventCode /*aType*/) |
|
72 { |
|
73 return EKeyWasConsumed; |
|
74 } |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // CTestTabsControl::Draw |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 void CTestTabsControl::Draw(const TRect& /*aRect*/) const |
|
81 { |
|
82 } |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // CTestTabsControl::CountComponentControls |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 TInt CTestTabsControl::CountComponentControls() const |
|
89 { |
|
90 return 0; |
|
91 } |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // CTestTabsControl::ComponentControl |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 CCoeControl* CTestTabsControl::ComponentControl(TInt /*aIndex*/) const |
|
98 { |
|
99 return NULL; |
|
100 |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // CTestTabsControl::SizeChanged |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 void CTestTabsControl::SizeChanged() |
|
108 { |
|
109 } |
|
110 // ----------------------------------------------------------------------------- |
|
111 // CTestTabsControl::TabChangedL |
|
112 // ----------------------------------------------------------------------------- |
|
113 // |
|
114 void CTestTabsControl::TabChangedL( TInt /*aIndex*/ ) |
|
115 { |
|
116 } |