/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, version 2.1 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not,
* see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
*
* Description: Global header for toolbar snippets
*
*/
#ifndef __GINEBRA_TOOLBAR_H
#define __GINEBRA_TOOLBAR_H
namespace GVA {
enum ContentToolbarTimerState {
CONTENT_TOOLBAR_TIMER_STATE_NONE,
CONTENT_TOOLBAR_TIMER_STATE_ALLOW
};
enum ContentToolbarState {
CONTENT_TOOLBAR_STATE_FULL,
CONTENT_TOOLBAR_STATE_PARTIAL,
CONTENT_TOOLBAR_STATE_ANIM_TO_PARTIAL,
CONTENT_TOOLBAR_STATE_ANIM_TO_FULL,
CONTENT_TOOLBAR_STATE_INVALID
};
enum ContentViewActions {
CONTENT_VIEW_ACTION_BACK,
CONTENT_VIEW_ACTION_ZOOM,
CONTENT_VIEW_ACTION_ZOOM_IN,
CONTENT_VIEW_ACTION_ZOOM_OUT,
CONTENT_VIEW_ACTION_MOSTVISITED,
CONTENT_VIEW_ACTION_MENU,
CONTENT_VIEW_ACTION_TOGGLETB,
CONTENT_VIEW_ACTION_MAX
};
enum WindowViewActions {
WINDOW_VIEW_ACTION_BACK,
WINDOW_VIEW_ACTION_ADD,
WINDOW_VIEW_ACTION_MAX
};
enum BookmarksViewActions {
BOOKMARKS_VIEW_ACTION_BACK,
BOOKMARKS_VIEW_ACTION_ADD,
BOOKMARKS_VIEW_ACTION_MAX
};
enum RecentURLViewActions {
RECENTURL_VIEW_ACTION_BACK,
RECENTURL_VIEW_ACTION_CLEARALL,
RECENTURL_VIEW_ACTION_MAX
};
enum SettingsViewActions {
SETTINGS_VIEW_ACTION_BACK,
SETTINGS_VIEW_ACTION_FEEDBACK,
SETTINGS_VIEW_ACTION_MAX
};
struct ToolbarActions_t {
int actionId;
QString actionName;
QString normalImg;
QString activeImg;
QString disabledImg;
QString id;
};
#define TOOLBAR_FULL_TB_TOGGLE_ICON ":/toolbar/icon_toggle_fullTB.png"
#define TOOLBAR_FULL_TB_SELECTED_TOGGLE_ICON ":/toolbar/icon_toggle_fullTB_pressed.png"
#define TOOLBAR_PARTIAL_TB_TOGGLE_ICON ":/toolbar/icon_toggle_partialTB.png"
#define TOOLBAR_PARTIAL_TB_SELECTED_TOGGLE_ICON ":/toolbar/icon_toggle_partialTB_pressed.png"
#define TOOLBAR_POPUP_INACTIVITY_DURATION 8000
#define TOOLBAR_ZOOMBAR_INACTIVITY_DURATION 8000
#define DUAL_TOOLBAR_NUM_BUTTONS 2
#define WINDOW_TOOLBAR_BACK "goBack"
#define WINDOW_TOOLBAR_ADD "addWindow"
#define BOOKMARKS_TOOLBAR_BACK "goBack"
#define BOOKMARKS_TOOLBAR_ADD "addBookmark"
#define RECENTURL_TOOLBAR_BACK "goBack"
#define RECENTURL_TOOLBAR_CLEARALL "clearAll"
#define SETTINGS_TOOLBAR_BACK "goBack"
#define SETTINGS_TOOLBAR_FEEDBACK "giveFeedback"
#define CONTENT_TOOLBAR_NUM_BUTTONS 3
#define CONTENT_TOOLBAR_BACK "Back"
#define CONTENT_TOOLBAR_ZOOM "zoom"
#define CONTENT_TOOLBAR_ZOOM_IN "zoomin"
#define CONTENT_TOOLBAR_ZOOM_OUT "zoomout"
#define CONTENT_TOOLBAR_MENU "menu"
#define CONTENT_TOOLBAR_MOSTVISITED "mostvisited"
#define CONTENT_TOOLBAR_TOGGLETB "toggletb"
#define TOOLBAR_WEB_VIEW "WebView"
#define TOOLBAR_WINDOWS_VIEW "WindowView"
#define TOOLBAR_BOOKMARKS_VIEW "BookmarkTreeView"
#define TOOLBAR_RECENTURL_VIEW "BookmarkHistoryView"
#define TOOLBAR_SETTINGS_VIEW "SettingsView"
} // end of namespace GVA
#endif // __GINEBRA_TOOLBAR_H