|
1 /* |
|
2 * Copyright (c) 2006 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: Floating toolbar UI feature class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_VTUIFLOATINGTOOLBAR_H |
|
20 #define C_VTUIFLOATINGTOOLBAR_H |
|
21 |
|
22 #include "cvtuitoolbarbase.h" |
|
23 #include "mvtuiresourcechangeobserver.h" |
|
24 #include <aknlayoutscalable_avkon.cdl.h> |
|
25 |
|
26 /** |
|
27 * CVtUiFloatingToolbar |
|
28 * |
|
29 * Toolbar UI feature definition. |
|
30 * |
|
31 * @since S60 3.2 |
|
32 */ |
|
33 class CVtUiFloatingToolbar : public CVtUiToolbarBase, |
|
34 public MVtUiResourceChangeObserver |
|
35 { |
|
36 public: // public methods |
|
37 |
|
38 /** |
|
39 * Static constructor. |
|
40 * @param aFeatureManager feature manager. |
|
41 */ |
|
42 static CVtUiFloatingToolbar* NewL( CVtUiFeatureManager& |
|
43 aFeatureManager ); |
|
44 |
|
45 /** |
|
46 * C++ destructor. |
|
47 */ |
|
48 ~CVtUiFloatingToolbar(); |
|
49 |
|
50 |
|
51 public: // from CVtUiToolbarBase |
|
52 |
|
53 |
|
54 /** |
|
55 * @see CVtUiToolbarBase::DoActivateL |
|
56 */ |
|
57 void DoActivateL(); |
|
58 |
|
59 /** |
|
60 * @see CVtUiToolbarBase::DoDeactivateL |
|
61 */ |
|
62 void DoDeactivateL(); |
|
63 |
|
64 /** |
|
65 * @see CVtUiToolbarBase::CreateToolbarButtonsL |
|
66 */ |
|
67 void CreateToolbarButtonsL(); |
|
68 |
|
69 /** |
|
70 * @see CVtUiToolbarBase::PopulateCmdsIdsL |
|
71 */ |
|
72 void PopulateCmdsIdsL(); |
|
73 |
|
74 public: // from MVtUiResourceChangeObserver |
|
75 |
|
76 /** |
|
77 * @see MVtUiComponent::HandleResourceChangeL |
|
78 */ |
|
79 void HandleResourceChangeL( TInt aType ); |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * C++ constructor |
|
85 */ |
|
86 CVtUiFloatingToolbar( CVtUiFeatureManager& aFeatureManager ); |
|
87 |
|
88 /** |
|
89 * 2nd phase constructor |
|
90 */ |
|
91 void ConstructL(); |
|
92 |
|
93 /** |
|
94 |
|
95 /* |
|
96 * Gets rect from layout data. |
|
97 */ |
|
98 TRect RectFromLayout( const TAknWindowComponentLayout& |
|
99 aComponentLayout ) const; |
|
100 |
|
101 /* |
|
102 * Sets toolbar layout. |
|
103 */ |
|
104 void LayoutToolbarL(); |
|
105 |
|
106 /* |
|
107 * Gets variety for layoutdata. |
|
108 */ |
|
109 TInt GetVariety( TBool aIsLandscapeOrientation ); |
|
110 |
|
111 private: // data |
|
112 |
|
113 |
|
114 |
|
115 }; |
|
116 |
|
117 #endif // C_VTUIFLOATINGTOOLBAR_H |