browsercore/appfw/Api/Views/WidgetView.h
branchGCC_SURGE
changeset 8 2e16851ffecd
parent 2 bf4420e9fa4d
parent 6 1c3b8676e58c
equal deleted inserted replaced
2:bf4420e9fa4d 8:2e16851ffecd
     1 /*
       
     2 * Copyright (c) 2009 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 __WIDGETVIEW_H__
       
    20 #define __WIDGETVIEW_H__
       
    21 
       
    22 #include <QWidget>
       
    23 #include <QGraphicsWidget>
       
    24 #include "controllableviewimpl.h"
       
    25 
       
    26 namespace WRT {
       
    27 
       
    28     class WrtPageManager;
       
    29     class WrtBrowserContainer;
       
    30     class WidgetViewPrivate;
       
    31 
       
    32     class BWF_EXPORT WidgetView : public ControllableViewQWidgetBase
       
    33     {
       
    34         Q_OBJECT
       
    35         //public: // public actions available for this view        
       
    36 
       
    37     public:
       
    38         WidgetView(WrtPageManager * mgr, QWidget* parent);
       
    39         WidgetView(WrtPageManager * mgr, QGraphicsWidget* parent);
       
    40         ~WidgetView();
       
    41         WrtPageManager * wrtPageManager();
       
    42         QMenu* getMenu();
       
    43 
       
    44     public slots:
       
    45         void hide();
       
    46         void show();
       
    47 
       
    48     public: // Pure Virtual from ControllableView
       
    49         QWidget* widget();
       
    50         QString title();
       
    51         bool isActive();
       
    52         QList<QAction*> getContext();
       
    53 
       
    54     public slots: // Pure Virtual from ControllableView
       
    55         void activate();
       
    56         void deactivate();
       
    57 
       
    58     private:
       
    59         WidgetViewPrivate * const d;
       
    60     };
       
    61 }
       
    62 
       
    63 #endif // __CONTENTVIEW_H__
       
    64