emailuis/nmailui/inc/nmviewerheader.h
changeset 56 15bc1d5d6267
parent 47 f83bd4ae1fe3
child 68 83cc6bae1de8
equal deleted inserted replaced
51:d845db10c0d4 56:15bc1d5d6267
    24 class NmMessage;
    24 class NmMessage;
    25 class NmAddress;
    25 class NmAddress;
    26 class NmViewerView;
    26 class NmViewerView;
    27 class HbTextItem;
    27 class HbTextItem;
    28 class HbGroupBox;
    28 class HbGroupBox;
    29 class HbTextEdit;
    29 class HbLabel;
    30 class HbIconItem;
    30 class HbIconItem;
    31 
    31 
    32 class NmViewerHeader : public HbWidget
    32 class NmViewerHeader : public HbWidget
    33 {
    33 {
    34 Q_OBJECT
    34 Q_OBJECT
    41                const QStyleOptionGraphicsItem *option,
    41                const QStyleOptionGraphicsItem *option,
    42                QWidget *widget);
    42                QWidget *widget);
    43     void rescaleHeader(const QSizeF layoutReso);
    43     void rescaleHeader(const QSizeF layoutReso);
    44     void setView(NmViewerView* view);
    44     void setView(NmViewerView* view);
    45     void updateMessageData(NmMessage* message);
    45     void updateMessageData(NmMessage* message);
    46     
    46        
    47 private slots:    
       
    48     void cursorPositionChanged(int oldPos, int newPos); 
       
    49     
       
    50 private:
    47 private:
    51     void loadWidgets();
    48     void loadWidgets();
    52     void setHeaderData();
    49     void setHeaderData();
    53     void createExpandableHeader();
    50     void createExpandableHeader();
    54     QString formatRecipientList(const QString &sender,
    51     QString formatRecipientList(const QString &sender,
    61     QString mSenderName;                // Not owned
    58     QString mSenderName;                // Not owned
    62     HbTextItem *mSubject;                   // Not owned
    59     HbTextItem *mSubject;                   // Not owned
    63     HbTextItem *mSent;                     // Not owned
    60     HbTextItem *mSent;                     // Not owned
    64     HbIconItem *mPrioIcon;              // Not owned
    61     HbIconItem *mPrioIcon;              // Not owned
    65     HbGroupBox *mHeaderBox;             // not owned
    62     HbGroupBox *mHeaderBox;             // not owned
    66     HbTextEdit *mRecipientsBox;         // Not owned
    63     HbLabel *mRecipientsBox;         // Not owned
    67     NmViewerView *mViewerView;          // Not owned
    64     NmViewerView *mViewerView;          // Not owned
    68 
    65 
    69 };
    66 };
    70 
    67 
    71  #endif /* NMVIEWERHEADER_H_ */
    68  #endif /* NMVIEWERHEADER_H_ */