diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-05 04:38:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-05 04:38:10 +0300 |
commit | 81fd600ac9a941b1ee06e41d322399d19fc4dcaa (patch) | |
tree | 27a2075c419057d5445c7a33b652aa1b4fbde12c /src/gui/chatwindow.h | |
parent | c758ce6cde782ff8866b4624c1ba28f1e0db1e35 (diff) | |
download | mv-81fd600ac9a941b1ee06e41d322399d19fc4dcaa.tar.gz mv-81fd600ac9a941b1ee06e41d322399d19fc4dcaa.tar.bz2 mv-81fd600ac9a941b1ee06e41d322399d19fc4dcaa.tar.xz mv-81fd600ac9a941b1ee06e41d322399d19fc4dcaa.zip |
Add custom autocomplate list from file customwords.txt
Diffstat (limited to 'src/gui/chatwindow.h')
-rw-r--r-- | src/gui/chatwindow.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gui/chatwindow.h b/src/gui/chatwindow.h index 97f586442..1b10405d4 100644 --- a/src/gui/chatwindow.h +++ b/src/gui/chatwindow.h @@ -242,6 +242,8 @@ class ChatWindow : public Window, void saveState(); + void loadCustomList(); + std::string doReplace(const std::string &msg); protected: @@ -249,6 +251,8 @@ class ChatWindow : public Window, friend class WhisperTab; friend class PopupMenu; + typedef std::list<std::string> History; + /** Remove the given tab from the window */ void removeTab(ChatTab *tab); @@ -265,7 +269,7 @@ class ChatWindow : public Window, std::string autoCompleteHistory(std::string partName); - std::string autoCompleteCommands(std::string partName); + std::string autoComplete(std::string partName, History *words); std::string autoComplete(std::vector<std::string> &names, std::string partName) const; @@ -294,7 +298,6 @@ class ChatWindow : public Window, /** Manage whisper tabs */ TabMap mWhispers; - typedef std::list<std::string> History; typedef History::iterator HistoryIterator; History mHistory; /**< Command history. */ HistoryIterator mCurHist; /**< History iterator. */ @@ -302,6 +305,7 @@ class ChatWindow : public Window, typedef std::list<std::string> Commands; typedef Commands::iterator CommandsIterator; History mCommands; /**< Command list. */ + History mCustomWords; bool mReturnToggles; /**< Marks whether <Return> toggles the chat log or not */ |