hgwidgets_plat/ganeswidgets_api/inc/hgmediawall.h
changeset 11 42505cd701c6
parent 5 4fa04caf0f43
child 12 6c0ec0ccd2d4
equal deleted inserted replaced
7:5ebec3429918 11:42505cd701c6
    27     Q_OBJECT
    27     Q_OBJECT
    28     Q_PROPERTY(HbFontSpec titleFontSpec READ titleFontSpec WRITE setTitleFontSpec)
    28     Q_PROPERTY(HbFontSpec titleFontSpec READ titleFontSpec WRITE setTitleFontSpec)
    29     Q_PROPERTY(HbFontSpec descriptionFontSpec READ descriptionFontSpec WRITE setDescriptionFontSpec)
    29     Q_PROPERTY(HbFontSpec descriptionFontSpec READ descriptionFontSpec WRITE setDescriptionFontSpec)
    30     Q_PROPERTY(QPointF frontItemPositionDelta READ frontItemPositionDelta WRITE setFrontItemPositionDelta)
    30     Q_PROPERTY(QPointF frontItemPositionDelta READ frontItemPositionDelta WRITE setFrontItemPositionDelta)
    31     Q_PROPERTY(bool reflectionsEnabled READ reflectionsEnabled WRITE enableReflections)
    31     Q_PROPERTY(bool reflectionsEnabled READ reflectionsEnabled WRITE enableReflections)
    32     Q_ENUMS(LabelPosition)
    32     Q_PROPERTY(HgMediawall::TitleAndDescrVisibility titleAndDescriptionVisibility \
       
    33                 READ titleAndDescriptionVisibility \
       
    34                 WRITE setTitleAndDescriptionVisibility)
       
    35     Q_ENUMS(TitleAndDescrVisibility)
    33 
    36 
    34 public:
    37 public:
       
    38 
       
    39     enum TitleAndDescrVisibility {
       
    40         TitleVisibilityBothVisible = 0,
       
    41         TitleVisibilityTitleVisible,
       
    42         TitleVisibilityDescriptionVisible,
       
    43         TitleVisibilityBothInvisible
       
    44     };
    35 
    45 
    36     explicit HgMediawall(QGraphicsItem *parent = 0 );
    46     explicit HgMediawall(QGraphicsItem *parent = 0 );
    37     virtual ~HgMediawall();
    47     virtual ~HgMediawall();
    38 
    48 
    39     void setTitleFontSpec(const HbFontSpec &fontSpec);
    49     void setTitleFontSpec(const HbFontSpec &fontSpec);
    40     HbFontSpec titleFontSpec() const;
    50     HbFontSpec titleFontSpec() const;
    41     void setDescriptionFontSpec(const HbFontSpec &fontSpec);
    51     void setDescriptionFontSpec(const HbFontSpec &fontSpec);
    42     HbFontSpec descriptionFontSpec() const;
    52     HbFontSpec descriptionFontSpec() const;
    43 
    53 
       
    54     void setTitleAndDescriptionVisibility(HgMediawall::TitleAndDescrVisibility visibility);
       
    55     HgMediawall::TitleAndDescrVisibility titleAndDescriptionVisibility() const;
       
    56     
    44     void setFrontItemPositionDelta(const QPointF& position);
    57     void setFrontItemPositionDelta(const QPointF& position);
    45     QPointF frontItemPositionDelta() const;
    58     QPointF frontItemPositionDelta() const;
    46 
    59 
    47     void enableReflections(bool enabled);
    60     void enableReflections(bool enabled);
    48     bool reflectionsEnabled() const;
    61     bool reflectionsEnabled() const;