src/hbinput/inputwidgets/hbinputcandidatelist.h
branchGCC_SURGE
changeset 15 f378acbc9cfb
parent 6 c3690ec91ef8
child 28 b7da29130b0e
child 34 ed14f46c0e55
equal deleted inserted replaced
9:730c025d4b77 15:f378acbc9cfb
    21 ** If you have questions regarding the use of this file, please contact
    21 ** If you have questions regarding the use of this file, please contact
    22 ** Nokia at developer.feedback@nokia.com.
    22 ** Nokia at developer.feedback@nokia.com.
    23 **
    23 **
    24 ****************************************************************************/
    24 ****************************************************************************/
    25 
    25 
    26 #ifndef HB_CANDIDATE_LIST_H
    26 #ifndef HB_INPUT_CANDIDATE_LIST_H
    27 #define HB_CANDIDATE_LIST_H
    27 #define HB_INPUT_CANDIDATE_LIST_H
    28 
    28 
    29 #include <hbdialog.h>
    29 #include <hbdialog.h>
    30 
    30 
    31 #include <hbinputdef.h>
    31 #include <hbinputdef.h>
    32 
    32 
    39 class HB_INPUT_EXPORT HbCandidateList : public HbDialog
    39 class HB_INPUT_EXPORT HbCandidateList : public HbDialog
    40 {
    40 {
    41     Q_OBJECT
    41     Q_OBJECT
    42 
    42 
    43 public:
    43 public:
    44     explicit HbCandidateList(HbInputMethod* input, QGraphicsItem* parent = 0);
    44     explicit HbCandidateList(HbInputMethod *input, QGraphicsItem *parent = 0);
    45     virtual ~HbCandidateList();
    45     virtual ~HbCandidateList();
    46 
    46 
    47     void populateList(const QStringList& candidates);
    47     void populateList(const QStringList &candidates, bool addSpellQuery = false);
    48     QString currentCandidate();
    48     QString currentCandidate();
    49     void setNumberOfVisibleLines(int numLines);
    49     void setNumberOfVisibleLines(int numLines);
    50     bool setSizeAndPositionForAutoCompletion(HbVkbHost *vkbHost);
    50     bool setSizeAndPositionForAutoCompletion(HbVkbHost *vkbHost);
    51 
    51 
    52 signals:
    52 signals:
    53     void candidatePopupCancelled();
    53     void candidatePopupCancelled();
    54     void candidateSelected(int key, const QString &candidate);
    54     void candidateSelected(int key, const QString &candidate);
       
    55     void launchSpellQueryDialog();
    55 
    56 
    56 protected:
    57 protected:
    57     void closeEvent(QCloseEvent* event);
    58     void closeEvent(QCloseEvent *event);
    58     void keyPressEvent(QKeyEvent* event);
    59     void keyPressEvent(QKeyEvent *event);
    59     void hideEvent(QHideEvent * event);
    60     void hideEvent(QHideEvent *event);
    60     void updatePrimitives();
    61     void updatePrimitives();
    61 
    62 
    62 public slots:
    63 public slots:
    63     void itemActivated(HbListWidgetItem *item);
    64     void itemActivated(HbListWidgetItem *item);
    64 
    65 
    65 private:
    66 private:
    66     Q_DECLARE_PRIVATE_D(d_ptr, HbCandidateList)
    67     Q_DECLARE_PRIVATE_D(d_ptr, HbCandidateList)
    67     Q_DISABLE_COPY(HbCandidateList)
    68     Q_DISABLE_COPY(HbCandidateList)
    68 };
    69 };
    69 
    70 
    70 #endif // HB_CANDIDATE_LIST_H
    71 #endif // HB_INPUT_CANDIDATE_LIST_H
    71 
    72 
    72 // End of file
    73 // End of file