src/hbplugins/inputmethods/common/hbinputpredictionhandler_p.h
branchGCC_SURGE
changeset 15 f378acbc9cfb
parent 7 923ff622b8b9
child 28 b7da29130b0e
child 34 ed14f46c0e55
equal deleted inserted replaced
9:730c025d4b77 15:f378acbc9cfb
    26 #define HB_INPUT_PREDICTION_HANDLER_PRIVATE
    26 #define HB_INPUT_PREDICTION_HANDLER_PRIVATE
    27 
    27 
    28 #include "hbinputmodehandler_p.h"
    28 #include "hbinputmodehandler_p.h"
    29 
    29 
    30 class HbPredictionEngine;
    30 class HbPredictionEngine;
       
    31 class HbInputSpellQuery;
    31 QT_BEGIN_NAMESPACE
    32 QT_BEGIN_NAMESPACE
    32 class QStringList;
    33 class QStringList;
    33 class QInputMethodEvent;
    34 class QInputMethodEvent;
    34 QT_END_NAMESPACE
    35 QT_END_NAMESPACE
    35 
    36 
    52     void candidatePopupClosed(int closingKey, const QString& activatedText);
    53     void candidatePopupClosed(int closingKey, const QString& activatedText);
    53     void commitAndAppendCharacter(QChar character);
    54     void commitAndAppendCharacter(QChar character);
    54     virtual void deleteOneCharacter();
    55     virtual void deleteOneCharacter();
    55     void commitExactWord();
    56     void commitExactWord();
    56     void handleEmptyCandidateList();
    57     void handleEmptyCandidateList();
    57     void showExactWordPopupIfNeeded();
    58     virtual void showExactWordPopupIfNeeded();
    58     QList<HbKeyPressProbability> probableKeypresses();
    59     QList<HbKeyPressProbability> probableKeypresses();
       
    60     void setPreEditTextToEditor(QString string, bool showAutocompletionPart);
       
    61     virtual QString getCommitString();
    59 public:
    62 public:
    60     HbPredictionEngine  *mEngine;
    63     HbPredictionEngine  *mEngine;
    61     QStringList         *mCandidates;
    64     QStringList         *mCandidates;
    62     int                 mBestGuessLocation;
    65     int                 mBestGuessLocation;
    63     bool                mShowTail;
    66     bool                mShowTail;
    64     bool                mTailShowing;
       
    65     bool                mAutoAddedSpace;
    67     bool                mAutoAddedSpace;
    66     bool                mCanContinuePrediction;
    68     bool                mCanContinuePrediction;
    67     bool                mShowTooltip;
    69     bool                mShowTooltip;
    68     Qt::KeyboardModifiers mModifiers;
    70     Qt::KeyboardModifiers mModifiers;
    69 
    71     HbInputSpellQuery *mSpellQueryDialog;
       
    72     bool mAutocompletionEnabled;
    70 public:
    73 public:
    71     void updateEditor();
    74     virtual void updateEditor();
    72 };
    75 };
    73 
    76 
    74 #endif //HB_INPUT_PREDICTION_HANDLER_PRIVATE
    77 #endif //HB_INPUT_PREDICTION_HANDLER_PRIVATE