QTfrontend/ui/widget/SmartLineEdit.h
changeset 6149 0b92341adb6a
parent 6147 b4d7d8d62feb
child 6150 1d98752c1fba
equal deleted inserted replaced
6148:726daa066fea 6149:0b92341adb6a
    73      * Removes a single nickname from the auto-completion feature.
    73      * Removes a single nickname from the auto-completion feature.
    74      * @param nickname name to be removed.
    74      * @param nickname name to be removed.
    75      */
    75      */
    76     void removeNickname(const QString & nickname);
    76     void removeNickname(const QString & nickname);
    77 
    77 
       
    78     /**
       
    79      * Forget all keywords and input history.
       
    80      */
       
    81     void forgetEverything();
       
    82 
    78 
    83 
    79 protected:
    84 protected:
    80     /**
    85     /**
    81      * Overrides method of parent class.
    86      * Overrides method of parent class.
    82      * Forward pressed TAB to parent class' method (for focus handling etc)
    87      * Forward pressed TAB to parent class' method (for focus handling etc)
   112     QString m_postfix; // postfix of the text replacement this widget just did
   117     QString m_postfix; // postfix of the text replacement this widget just did
   113 
   118 
   114     QMutex m_mutex; // make all the QStringList action thread-safe
   119     QMutex m_mutex; // make all the QStringList action thread-safe
   115 
   120 
   116     /**
   121     /**
   117      * Autocompletes the contents based on the known commands and/or names
   122      * Autocompletes the contents based on the known commands and/or names.
   118      */
   123      */
   119     void autoComplete();
   124     void autoComplete();
   120 
   125 
   121 
   126 
   122 private slots:
   127 private slots:
   123     // resets the information about the last match and text replacement
   128     /**
   124     void reset();
   129      * Resets the information about the last match and text replacement.
       
   130      */
       
   131     void resetAutoCompletionStatus();
   125 };
   132 };
   126 
   133 
   127 
   134 
   128 
   135 
   129 #endif // HEDGEWARS_SMARTLINEDIT
   136 #endif // HEDGEWARS_SMARTLINEDIT