summaryrefslogtreecommitdiff
path: root/src/gui/widgets/chattab.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/chattab.h')
-rw-r--r--src/gui/widgets/chattab.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h
index 7fd3931e..c2dfa1c1 100644
--- a/src/gui/widgets/chattab.h
+++ b/src/gui/widgets/chattab.h
@@ -25,6 +25,7 @@
#include "gui/chat.h"
#include "gui/widgets/tab.h"
+#include "gui/widgets/textfield.h"
class BrowserBox;
class Recorder;
@@ -45,7 +46,7 @@ enum
/**
* A tab for the chat window. This is special to ease chat handling.
*/
-class ChatTab : public Tab
+class ChatTab : public Tab, public AutoCompleteLister
{
public:
/**
@@ -111,6 +112,8 @@ class ChatTab : public Tab
const std::string &args)
{ return false; }
+ void getAutoCompleteList(std::vector<std::string> &names) const;
+
protected:
friend class ChatWindow;
friend class WhisperWindow;
@@ -121,8 +124,6 @@ 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;