emailuis/nmailui/inc/nmeditorcontent.h
changeset 48 10eaf342f539
parent 47 f83bd4ae1fe3
child 51 d845db10c0d4
equal deleted inserted replaced
47:f83bd4ae1fe3 48:10eaf342f539
    44 
    44 
    45     virtual ~NmEditorContent();
    45     virtual ~NmEditorContent();
    46 
    46 
    47     void setMessageData(const NmMessage &originalMessage,
    47     void setMessageData(const NmMessage &originalMessage,
    48                         NmUiEditorStartMode &editorStartMode);
    48                         NmUiEditorStartMode &editorStartMode);
       
    49 
    49     NmEditorTextEdit* editor() const;
    50     NmEditorTextEdit* editor() const;
       
    51 
    50     NmEditorHeader* header() const;
    52     NmEditorHeader* header() const;
    51 
    53     
    52 private:
    54 private:
    53     void createConnections();
    55     void createConnections();
    54     void removeEmbeddedImages(QString &bodyContent);
    56     void removeEmbeddedImages(QString &bodyContent);
    55 
    57 
    56 signals:
    58 signals:
    58 
    60 
    59     void setHtml(const QString&);
    61     void setHtml(const QString&);
    60 
    62 
    61 public slots:
    63 public slots:
    62     void setEditorContentHeight();
    64     void setEditorContentHeight();
    63     void setScrollPosition(int oldPos, int newPos);
    65     void ensureCursorVisibility();
    64     void updateScrollPosition(const QPointF &newPosition);
       
    65 
    66 
    66 private:
    67 private:
    67     enum MessageBodyType { NmPlainText, NmHTMLText };
    68     enum MessageBodyType { NmPlainText, NmHTMLText };
    68 
    69 
    69 private:
    70 private:
    70     NmEditorHeader *mHeaderWidget; // Not owned
    71     NmEditorHeader *mHeader; // Not owned
    71     MessageBodyType mMessageBodyType;
    72     MessageBodyType mMessageBodyType;
    72     NmEditorTextEdit *mEditorWidget; // Not owned
    73     NmEditorTextEdit *mEditorWidget; // Not owned
    73     NmBaseViewScrollArea *mScrollArea; // Not owned
    74     NmBaseViewScrollArea *mScrollArea; // Not owned
    74     HbWidget *mScrollAreaContents; // Not owned
    75     HbWidget *mScrollAreaContents; // Not owned
    75     QPointF mScrollPosition;
    76     QPointF mScrollPosition;