videocollection/tsrc/stubs/inc/hbmenu.h
changeset 65 a9d57bd8d7b7
parent 17 69946d1824c4
equal deleted inserted replaced
62:0e1e938beb1a 65:a9d57bd8d7b7
    17 
    17 
    18 
    18 
    19 #ifndef HBMENU_H
    19 #ifndef HBMENU_H
    20 #define HBMENU_H
    20 #define HBMENU_H
    21 
    21 
    22 #include <hbwidget.h>
    22 #include "hbwidget.h"
       
    23 #include "hbpopup.h"
    23 
    24 
    24 class QGraphicsItem;
    25 class QGraphicsItem;
    25 class QPointF;
    26 class QPointF;
    26 class HbAction;
    27 class HbAction;
    27 
    28 
    28 class HbPopup
       
    29 {
       
    30 public:
       
    31     enum Placement
       
    32     {
       
    33         TopLeftCorner,
       
    34         TopRightCorner,
       
    35         BottomLeftCorner,
       
    36         BottomRightCorner,
       
    37         TopEdgeCenter,
       
    38         RightEdgeCenter,
       
    39         BottomEdgeCenter,
       
    40         LeftEdgeCenter,
       
    41         Center
       
    42     };
       
    43 
       
    44     enum DismissPolicy
       
    45     {
       
    46         NoDismiss   = 0,
       
    47         TapInside   = 1,
       
    48         TapOutside  = 2,
       
    49         TapAnywhere = TapInside | TapOutside
       
    50     };
       
    51 };
       
    52 
    29 
    53 class HbMenu: public HbWidget
    30 class HbMenu: public HbWidget
    54 {
    31 {
    55     Q_OBJECT
    32     Q_OBJECT
    56     
    33