From 3b69d225143dd8c6c3b0ab4e1730e427d67c5f27 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 12 Feb 2014 12:35:14 +0300 Subject: add autocomplete special commands in guild tab. --- src/net/ea/gui/guildtab.cpp | 8 ++++++++ src/net/ea/gui/guildtab.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'src/net/ea/gui') diff --git a/src/net/ea/gui/guildtab.cpp b/src/net/ea/gui/guildtab.cpp index 5a8c78c60..889b9624b 100644 --- a/src/net/ea/gui/guildtab.cpp +++ b/src/net/ea/gui/guildtab.cpp @@ -147,7 +147,15 @@ void GuildTab::getAutoCompleteList(StringVect &names) const { if (taGuild) taGuild->getNames(names); +} + +void GuildTab::getAutoCompleteCommands(StringVect &names) const +{ + names.push_back("/help"); + names.push_back("/invite "); + names.push_back("/kick "); names.push_back("/notice "); + names.push_back("/leave"); } void GuildTab::saveToLogFile(const std::string &msg) const diff --git a/src/net/ea/gui/guildtab.h b/src/net/ea/gui/guildtab.h index 442ad62d0..8ee4f62e4 100644 --- a/src/net/ea/gui/guildtab.h +++ b/src/net/ea/gui/guildtab.h @@ -58,6 +58,8 @@ class GuildTab : public ChatTab, public ConfigListener void handleInput(const std::string &msg) override final; void getAutoCompleteList(StringVect &names) const override final; + + void getAutoCompleteCommands(StringVect &names) const override final; }; } // namespace Ea -- cgit v1.2.3-70-g09d2