ginebra/emulator/chromewindow.h
changeset 5 0f2326c2a325
parent 1 b0dd75e285d2
child 6 1c3b8676e58c
equal deleted inserted replaced
1:b0dd75e285d2 5:0f2326c2a325
     1 /*
       
     2 * Copyright (c) 2010 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _GINEBRA_CHROME_WINDOW_H_
       
    20 #define _GINEBRA_CHROME_WINDOW_H_
       
    21 
       
    22 #include <QMainWindow>
       
    23  #include <QDebug>
       
    24 
       
    25 class ChromeView;
       
    26 class ChromeJSObject;
       
    27 class QGraphicsScene;
       
    28 class QAction;
       
    29 class ChromeView;
       
    30 class QWheelEvent;
       
    31 class ContentView;
       
    32 
       
    33 /**
       
    34  * \brief Top-level window wrapper for browser.
       
    35  * 
       
    36  * The ChromeWindow class provides a menu and toolbar for the browser for development
       
    37  * and testing on the desktop.  Not used in S60 builds.
       
    38  * 
       
    39  * \sa ChromeConsole
       
    40  */
       
    41 class ChromeWindow : public QMainWindow
       
    42 {
       
    43     Q_OBJECT
       
    44 
       
    45 public:
       
    46     ChromeWindow(const QString chromePath);
       
    47     ChromeWindow();
       
    48     ~ChromeWindow();
       
    49 
       
    50 private:
       
    51     void init(const QString chromePath);
       
    52     void initMenus();
       
    53     void initActions();
       
    54     void initToolbars();
       
    55 
       
    56 private:
       
    57 //    void wheelEvent(QWheelEvent *event);
       
    58     
       
    59 private slots:
       
    60     void toggleProxy();
       
    61     void portrait();
       
    62     void landscape();
       
    63     void openConsole();
       
    64 
       
    65     void setChrome();
       
    66 
       
    67 private:
       
    68     QAction *m_networkProxyAction;
       
    69     QAction *m_portraitAction;
       
    70     QAction *m_landscapeAction;
       
    71 
       
    72     QAction *m_setToBedrockChromeAction;
       
    73     QAction *m_setToDemoChromeAction;
       
    74     
       
    75     QAction *m_reloadAction;
       
    76     QAction *m_consoleAction;
       
    77     ChromeView *m_view;
       
    78 };
       
    79 #endif