src/hbcore/gui/hbwidget.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    88     int pluginBaseId() const;
    88     int pluginBaseId() const;
    89 
    89 
    90     HbMainWindow *mainWindow() const;
    90     HbMainWindow *mainWindow() const;
    91 
    91 
    92     virtual QGraphicsItem *primitive(HbStyle::Primitive primitive) const;
    92     virtual QGraphicsItem *primitive(HbStyle::Primitive primitive) const;
       
    93     virtual QGraphicsItem *primitive(const QString &itemName) const;
    93     virtual QGraphicsLayoutItem *layoutPrimitive(const QString &itemName) const;
    94     virtual QGraphicsLayoutItem *layoutPrimitive(const QString &itemName) const;
    94 
    95 
    95     void setFocusOrientation(Qt::Orientations previous, Qt::Orientations next);
    96     void setFocusOrientation(Qt::Orientations previous, Qt::Orientations next);
    96 
    97 
    97     QKeySequence keyForFocusNextChild() const;
    98     QKeySequence keyForFocusNextChild() const;
   117 
   118 
   118     void setBackgroundItem(HbStyle::Primitive type, int zValue = -1);
   119     void setBackgroundItem(HbStyle::Primitive type, int zValue = -1);
   119     void setBackgroundItem(QGraphicsItem *item, int zValue = -1);
   120     void setBackgroundItem(QGraphicsItem *item, int zValue = -1);
   120     QGraphicsItem *backgroundItem() const;
   121     QGraphicsItem *backgroundItem() const;
   121 
   122 
   122     virtual HbFeedback::InstantEffect overrideFeedback(Hb::InstantInteraction interaction) const;
   123     virtual HbFeedback::InstantEffect overrideFeedback(Hb::InstantInteraction interaction) const; // deprecated
   123     virtual HbFeedback::ContinuousEffect overrideContinuousFeedback(Hb::ContinuousInteraction interaction, int *intensity) const;
   124     virtual HbFeedback::ContinuousEffect overrideContinuousFeedback(Hb::ContinuousInteraction interaction, int *intensity) const; // deprecated
   124 
   125 
   125 public slots:
   126 public slots:
   126     virtual void recreatePrimitives();
   127     virtual void recreatePrimitives();
   127     virtual void updatePrimitives();
   128     virtual void updatePrimitives();
   128 
   129 
   139     virtual void polish(HbStyleParameters &params);
   140     virtual void polish(HbStyleParameters &params);
   140     void repolish();
   141     void repolish();
   141 
   142 
   142     void setPluginBaseId(int baseId);
   143     void setPluginBaseId(int baseId);
   143 
   144 
   144 #ifdef HB_GESTURE_FW
       
   145     virtual void gestureEvent(QGestureEvent *event);
       
   146 #endif
       
   147 
       
   148 protected:
   145 protected:
   149     HbWidget(HbWidgetPrivate &dd, QGraphicsItem *parent, Qt::WindowFlags wFlags=0);
   146     HbWidget(HbWidgetPrivate &dd, QGraphicsItem *parent, Qt::WindowFlags wFlags=0);
   150 private:
   147 private:
   151     Q_DECLARE_PRIVATE_D(d_ptr, HbWidget)
   148     Q_DECLARE_PRIVATE_D(d_ptr, HbWidget)
   152     Q_DISABLE_COPY(HbWidget)
   149     Q_DISABLE_COPY(HbWidget)