src/hbcore/inputfw/hbinputfocusobject.h
changeset 1 f7ac710697a9
parent 0 16d8024aca5e
child 2 06ff229162e9
equal deleted inserted replaced
0:16d8024aca5e 1:f7ac710697a9
    39 class HbVkbHost;
    39 class HbVkbHost;
    40 class HbInputMethod;
    40 class HbInputMethod;
    41 class QGraphicsProxyWidget;
    41 class QGraphicsProxyWidget;
    42 class QGraphicsWidget;
    42 class QGraphicsWidget;
    43 
    43 
    44 class HB_CORE_EXPORT HbInputFocusObject : public QObject 
    44 class HB_CORE_EXPORT HbInputFocusObject : public QObject
    45 {
    45 {
    46     Q_OBJECT
    46     Q_OBJECT
    47 
    47 
    48 public:
    48 public:
    49     explicit HbInputFocusObject(QObject *focusedObject);
    49     explicit HbInputFocusObject(QObject *focusedObject);
    50     ~HbInputFocusObject();   
    50     ~HbInputFocusObject();
    51 
    51 
    52     void sendPreEditString(const QString& string);
    52     void sendPreEditString(const QString& string);
    53     void sendCommitString(const QString& string);
    53     void sendCommitString(const QString& string);
    54     void sendEvent(QEvent& aEvent);
    54     void sendEvent(QEvent& event);
    55     void postEvent(QEvent& aEvent);
    55     void postEvent(QEvent& event);
    56     QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
    56     QVariant inputMethodQuery(Qt::InputMethodQuery query) const;
    57     int editorCursorPosition();
    57     int editorCursorPosition();
    58     QFont editorFont();
    58     QFont editorFont();
    59     QString editorTextSelection();
    59     QString editorTextSelection();
    60     QString editorSurroundingText();
    60     QString editorSurroundingText();
    61     HbEditorInterface& editorInterface() const;
    61     HbEditorInterface& editorInterface() const;
    62     void cursorLeft(int aModifiers = 0);
    62     void cursorLeft(int modifiers);
    63     void cursorRight(int aModifiers = 0);      
    63     void cursorRight(int modifiers);
       
    64     void cursorLeft(Qt::KeyboardModifiers modifiers = Qt::NoModifier);
       
    65     void cursorRight(Qt::KeyboardModifiers modifiers = Qt::NoModifier);
    64     void releaseFocus();
    66     void releaseFocus();
    65     bool filterAndCommitCharacter(QChar aChar);
    67     bool filterAndCommitCharacter(QChar character);
    66     QRectF editorGeometry() const;
    68     QRectF editorGeometry() const;
    67     QRectF microFocus() const;
    69     QRectF microFocus() const;
    68     QString preEditString() const;
    70     QString preEditString() const;
    69     qreal findVkbZValue() const;
    71     qreal findVkbZValue() const;
    70     Qt::InputMethodHints inputMethodHints() const;
    72     Qt::InputMethodHints inputMethodHints() const;
    71     void setInputMethodHints(Qt::InputMethodHints hints);
    73     void setInputMethodHints(Qt::InputMethodHints hints);
    72  
    74 
    73     QPointF scenePos() const;
    75     QPointF scenePos() const;
    74     void filterStringWithEditorFilter(const QString& source, QString& result);
    76     void filterStringWithEditorFilter(const QString& source, QString& result);
    75     bool characterAllowedInEditor(QChar character) const;
    77     bool characterAllowedInEditor(QChar character) const;
    76     bool stringAllowedInEditor(const QString& string) const;
    78     bool stringAllowedInEditor(const QString& string) const;
    77     void commitSmiley(QString smiley);
    79     void commitSmiley(QString smiley);