diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 5 | ||||
-rw-r--r-- | src/gui/widgets/chattab.h | 15 | ||||
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 5 | ||||
-rw-r--r-- | src/gui/widgets/whispertab.h | 2 |
4 files changed, 2 insertions, 25 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index d2221255..ee4197eb 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -275,11 +275,6 @@ void ChatTab::handleCommand(const std::string &msg) commandHandler->handleCommand(msg, this); } -int ChatTab::getType() const -{ - return INPUT; -} - void ChatTab::addRow(std::string &line) { std::string::size_type idx = 0; diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index 8fa0ab71..3a4133bb 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -48,14 +48,6 @@ enum class ChatTab : public Tab { public: - enum Type - { - UNKNOWN, - INPUT, - WHISPER, - PARTY - }; - /** * Constructor. */ @@ -119,11 +111,6 @@ class ChatTab : public Tab const std::string &args) { return false; } - /** - * Returns type of the being. - */ - virtual int getType() const; - protected: friend class ChatWindow; friend class WhisperWindow; @@ -134,6 +121,8 @@ class ChatTab : public Tab virtual void handleCommand(const std::string &msg); + virtual void getAutoCompleteList(std::vector<std::string>&) const {} + void addRow(std::string &line); ScrollArea *mScrollArea; diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 9707953e..124b3165 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -114,8 +114,3 @@ bool WhisperTab::handleCommand(const std::string &type, return true; } - -int WhisperTab::getType() const -{ - return ChatTab::WHISPER; -} diff --git a/src/gui/widgets/whispertab.h b/src/gui/widgets/whispertab.h index 146ea5c5..447a8fe0 100644 --- a/src/gui/widgets/whispertab.h +++ b/src/gui/widgets/whispertab.h @@ -39,8 +39,6 @@ class WhisperTab : public ChatTab bool handleCommand(const std::string &type, const std::string &args); - int getType() const; - protected: friend class ChatWindow; |