emailuis/nmailuiwidgets/inc/nmeditortextedit.h
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Message editor body text field
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef NMEDITORTEXTEDIT_H_
       
    19 #define NMEDITORTEXTEDIT_H_
       
    20 
       
    21 #include <hbtextedit.h>
       
    22 #include "nmailuiwidgetsdef.h"
       
    23 
       
    24 class NMAILUIWIDGETS_EXPORT NmEditorTextEdit : public HbTextEdit
       
    25 {
       
    26 Q_OBJECT
       
    27 
       
    28 public:
       
    29     NmEditorTextEdit(QGraphicsItem *parent = 0);
       
    30     virtual ~NmEditorTextEdit();
       
    31 
       
    32     void setCustomTextColor(const QPair<bool, QColor> &customColor);
       
    33     void setCustomTextColor(bool useCustom, const QColor& color = Qt::black);
       
    34     QPair<bool, QColor> customTextColor() const;
       
    35 
       
    36     QRectF rectForCursorPosition() const;
       
    37 
       
    38 public slots:
       
    39     void updateCustomTextColor();
       
    40 
       
    41 private:
       
    42     QPair<bool, QColor> mCustomTextColor;//!<This property keeps info about using customTextColor and color to use. 
       
    43 };
       
    44 
       
    45 #endif /* NMEDITORTEXTEDIT_H_ */