|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * |
|
5 * This program is free software: you can redistribute it and/or modify |
|
6 * it under the terms of the GNU Lesser General Public License as published by |
|
7 * the Free Software Foundation, version 2.1 of the License. |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU Lesser General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU Lesser General Public License |
|
15 * along with this program. If not, |
|
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
|
17 * |
|
18 * Description: Global header for toolbar snippets |
|
19 * |
|
20 */ |
|
21 #ifndef __GINEBRA_TOOLBAR_H |
|
22 #define __GINEBRA_TOOLBAR_H |
|
23 |
|
24 namespace GVA { |
|
25 |
|
26 enum ContentToolbarTimerState { |
|
27 CONTENT_TOOLBAR_TIMER_STATE_NONE, |
|
28 CONTENT_TOOLBAR_TIMER_STATE_ALLOW |
|
29 }; |
|
30 |
|
31 enum ContentToolbarState { |
|
32 |
|
33 CONTENT_TOOLBAR_STATE_FULL, |
|
34 CONTENT_TOOLBAR_STATE_PARTIAL, |
|
35 CONTENT_TOOLBAR_STATE_ANIM_TO_PARTIAL, |
|
36 CONTENT_TOOLBAR_STATE_ANIM_TO_FULL, |
|
37 CONTENT_TOOLBAR_STATE_INVALID |
|
38 }; |
|
39 |
|
40 enum ContentViewActions { |
|
41 |
|
42 CONTENT_VIEW_ACTION_BACK, |
|
43 CONTENT_VIEW_ACTION_ZOOM, |
|
44 CONTENT_VIEW_ACTION_MOSTVISITED, |
|
45 CONTENT_VIEW_ACTION_MENU, |
|
46 CONTENT_VIEW_ACTION_TOGGLETB, |
|
47 CONTENT_VIEW_ACTION_MAX |
|
48 }; |
|
49 |
|
50 enum WindowViewActions { |
|
51 |
|
52 WINDOW_VIEW_ACTION_BACK, |
|
53 WINDOW_VIEW_ACTION_ADD, |
|
54 WINDOW_VIEW_ACTION_MAX |
|
55 }; |
|
56 |
|
57 enum BookmarksViewActions { |
|
58 BOOKMARKS_VIEW_ACTION_BACK, |
|
59 BOOKMARKS_VIEW_ACTION_ADD, |
|
60 BOOKMARKS_VIEW_ACTION_MAX |
|
61 }; |
|
62 |
|
63 enum RecentURLViewActions { |
|
64 RECENTURL_VIEW_ACTION_BACK, |
|
65 RECENTURL_VIEW_ACTION_CLEARALL, |
|
66 RECENTURL_VIEW_ACTION_MAX |
|
67 }; |
|
68 |
|
69 enum SettingsViewActions { |
|
70 SETTINGS_VIEW_ACTION_BACK, |
|
71 SETTINGS_VIEW_ACTION_FEEDBACK, |
|
72 SETTINGS_VIEW_ACTION_MAX |
|
73 }; |
|
74 |
|
75 struct ToolbarActions_t { |
|
76 |
|
77 int actionId; |
|
78 QString actionName; |
|
79 QString normalImg; |
|
80 QString activeImg; |
|
81 QString disabledImg; |
|
82 QString id; |
|
83 }; |
|
84 |
|
85 #define TOOLBAR_BUTTON_PATH ":/chrome/bedrockchrome/toolbar.snippet/icons/" |
|
86 #define TOOLBAR_FULL_TB_TOGGLE_ICON TOOLBAR_BUTTON_PATH "icon_toggle_fullTB.png" |
|
87 #define TOOLBAR_FULL_TB_SELECTED_TOGGLE_ICON TOOLBAR_BUTTON_PATH "icon_toggle_fullTB_pressed.png" |
|
88 #define TOOLBAR_PARTIAL_TB_TOGGLE_ICON TOOLBAR_BUTTON_PATH "icon_toggle_partialTB.png" |
|
89 #define TOOLBAR_PARTIAL_TB_SELECTED_TOGGLE_ICON TOOLBAR_BUTTON_PATH "icon_toggle_partialTB_pressed.png" |
|
90 |
|
91 |
|
92 |
|
93 #define TOOLBAR_POPUP_INACTIVITY_DURATION 8000 |
|
94 #define TOOLBAR_ZOOMBAR_INACTIVITY_DURATION 8000 |
|
95 |
|
96 #define DUAL_TOOLBAR_NUM_BUTTONS 2 |
|
97 |
|
98 #define WINDOW_TOOLBAR_BACK "goBack" |
|
99 #define WINDOW_TOOLBAR_ADD "addWindow" |
|
100 |
|
101 #define BOOKMARKS_TOOLBAR_BACK "goBack" |
|
102 #define BOOKMARKS_TOOLBAR_ADD "addBookmark" |
|
103 |
|
104 #define RECENTURL_TOOLBAR_BACK "goBack" |
|
105 #define RECENTURL_TOOLBAR_CLEARALL "clearAll" |
|
106 |
|
107 #define SETTINGS_TOOLBAR_BACK "goBack" |
|
108 #define SETTINGS_TOOLBAR_FEEDBACK "giveFeedback" |
|
109 |
|
110 #define CONTENT_TOOLBAR_NUM_BUTTONS 3 |
|
111 #define CONTENT_TOTOLBAR_BACK "Back" |
|
112 #define CONTENT_TOTOLBAR_ZOOM "zoom" |
|
113 #define CONTENT_TOTOLBAR_MENU "menu" |
|
114 #define CONTENT_TOTOLBAR_MOSTVISITED "mostvisited" |
|
115 #define CONTENT_TOTOLBAR_TOGGLETB "toggletb" |
|
116 |
|
117 #define TOOLBAR_WEB_VIEW "WebView" |
|
118 #define TOOLBAR_WINDOWS_VIEW "WindowView" |
|
119 #define TOOLBAR_BOOKMARKS_VIEW "BookmarkTreeView" |
|
120 #define TOOLBAR_RECENTURL_VIEW "BookmarkHistoryView" |
|
121 #define TOOLBAR_SETTINGS_VIEW "SettingsView" |
|
122 |
|
123 } // end of namespace GVA |
|
124 |
|
125 #endif // __GINEBRA_TOOLBAR_H |