videocollection/tsrc/stubs/inc/hbview.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 67 72c709219fcd
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
    18 
    18 
    19 #ifndef HBVIEW_H
    19 #ifndef HBVIEW_H
    20 #define HBVIEW_H
    20 #define HBVIEW_H
    21 
    21 
    22 #include <QGraphicsWidget>
    22 #include <QGraphicsWidget>
       
    23 #include "qstring.h"
    23 #include "hbinstance.h"
    24 #include "hbinstance.h"
    24 #include "hbtoolbar.h"
    25 #include "hbtoolbar.h"
    25 #include "hbeffect.h"
    26 #include "hbeffect.h"
    26 
    27 
    27 class HbView : public QGraphicsWidget
    28 class HbView : public QGraphicsWidget
    28 {
    29 {
    29     Q_OBJECT
    30     Q_OBJECT
    30 
       
    31 
    31 
    32 public:
    32 public:
    33 
    33 
    34     HbView(QGraphicsItem *parent = 0) : QGraphicsWidget(parent), mToolBar(0), mNavigationAction(0)
    34     HbView(QGraphicsItem *parent = 0) : QGraphicsWidget(parent), mToolBar(0), mNavigationAction(0)
    35     {
    35     {
    43         return hbInstance->allMainWindows().value(0);
    43         return hbInstance->allMainWindows().value(0);
    44     }
    44     }
    45     
    45     
    46     void setTitle(const QString &title)
    46     void setTitle(const QString &title)
    47     {
    47     {
    48         Q_UNUSED(title);
    48         mTitle = title;
    49     }
    49     }
    50     
    50     
    51     HbToolBar *toolBar() const
    51     HbToolBar *toolBar() const
    52     {
    52     {
    53         if(!mToolBar) {
    53         if(!mToolBar) {
    57     }
    57     }
    58     
    58     
    59     void setItemVisible(Hb::SceneItem item, bool visible)
    59     void setItemVisible(Hb::SceneItem item, bool visible)
    60     {
    60     {
    61         Q_UNUSED(item);
    61         Q_UNUSED(item);
    62         Q_UNUSED(visible);
    62         mSetItemVisibleLast = visible;
    63     }
    63     }
    64     
    64     
    65     void setNavigationAction(HbAction *action)
    65     void setNavigationAction(HbAction *action)
    66     {
    66     {
    67         mNavigationAction = action;
    67         mNavigationAction = action;
    69     
    69     
    70     
    70     
    71     HbAction *mNavigationAction;
    71     HbAction *mNavigationAction;
    72     
    72     
    73     mutable HbToolBar* mToolBar;
    73     mutable HbToolBar* mToolBar;
       
    74     
       
    75     QString mTitle;
       
    76     
       
    77 public:
       
    78     
       
    79     static bool mSetItemVisibleLast;
    74 };
    80 };
    75 
    81 
    76 #endif // HBVIEW_H
    82 #endif // HBVIEW_H