src/hbwidgets/editors/hbabstractedit.h
changeset 34 ed14f46c0e55
parent 5 627c4a0fd0e7
equal deleted inserted replaced
31:7516d6d86cf5 34:ed14f46c0e55
    54     Q_PROPERTY(Hb::TextCursorVisibility cursorVisibility READ cursorVisibility WRITE setCursorVisibility)
    54     Q_PROPERTY(Hb::TextCursorVisibility cursorVisibility READ cursorVisibility WRITE setCursorVisibility)
    55     Q_PROPERTY(Hb::TextContextMenuFlags contextMenuFlags
    55     Q_PROPERTY(Hb::TextContextMenuFlags contextMenuFlags
    56                READ contextMenuFlags
    56                READ contextMenuFlags
    57                WRITE setContextMenuFlags)
    57                WRITE setContextMenuFlags)
    58     Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText)
    58     Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText)
       
    59     Q_PROPERTY(bool selectionControlEnabled READ isSelectionControlEnabled WRITE setSelectionControlEnabled)
    59 
    60 
    60 public:
    61 public:
    61     virtual ~HbAbstractEdit();
    62     virtual ~HbAbstractEdit();
    62 
    63 
    63     bool isReadOnly() const;
    64     bool isReadOnly() const;
   102     void setSmileysEnabled(bool enabled);
   103     void setSmileysEnabled(bool enabled);
   103 
   104 
   104     void setFormatDialog(HbFormatDialogPointer dialog);
   105     void setFormatDialog(HbFormatDialogPointer dialog);
   105 
   106 
   106     QChar characterAt(int pos) const;
   107     QChar characterAt(int pos) const;
       
   108 
       
   109     void setSelectionControlEnabled(bool enabled);
       
   110     bool isSelectionControlEnabled() const;
   107 
   111 
   108 signals:
   112 signals:
   109     void contentsChanged();
   113     void contentsChanged();
   110     void cursorPositionChanged(int oldPos, int newPos);
   114     void cursorPositionChanged(int oldPos, int newPos);
   111     void selectionChanged(const QTextCursor &oldCursor, const QTextCursor& newCursor);
   115     void selectionChanged(const QTextCursor &oldCursor, const QTextCursor& newCursor);
   192 
   196 
   193     Q_PRIVATE_SLOT(d_func(), void _q_updateRequest(QRectF))
   197     Q_PRIVATE_SLOT(d_func(), void _q_updateRequest(QRectF))
   194     Q_PRIVATE_SLOT(d_func(), void _q_updateBlock(QTextBlock))
   198     Q_PRIVATE_SLOT(d_func(), void _q_updateBlock(QTextBlock))
   195     Q_PRIVATE_SLOT(d_func(), void _q_contentsChanged())
   199     Q_PRIVATE_SLOT(d_func(), void _q_contentsChanged())
   196     Q_PRIVATE_SLOT(d_func(), void _q_contentsChange(int, int, int))
   200     Q_PRIVATE_SLOT(d_func(), void _q_contentsChange(int, int, int))
   197     Q_PRIVATE_SLOT(d_func(), void _q_selectionChanged())
   201     Q_PRIVATE_SLOT(d_func(), void _q_selectionChanged(const QTextCursor&, const QTextCursor&))
   198     Q_PRIVATE_SLOT(d_func(), void _q_scrollStarted())
   202     Q_PRIVATE_SLOT(d_func(), void _q_scrollStarted())
   199     Q_PRIVATE_SLOT(d_func(), void _q_scrollEnded())
   203     Q_PRIVATE_SLOT(d_func(), void _q_scrollEnded())
   200 
   204 
   201 
   205 
   202     friend class HbEditItem;
   206     friend class HbEditItem;