diff options
Diffstat (limited to 'src/gui/widgets/chattab.h')
-rw-r--r-- | src/gui/widgets/chattab.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/widgets/chattab.h b/src/gui/widgets/chattab.h index 3d92e57f..ccb85d2a 100644 --- a/src/gui/widgets/chattab.h +++ b/src/gui/widgets/chattab.h @@ -95,8 +95,27 @@ class ChatTab : public Tab */ void scroll(int amount); + /** + * Clears the text from the tab + */ void clearText(); + /** + * Add any extra help text to the output. Allows tabs to define help + * for commands defined by the tab itself. + */ + virtual void showHelp() {} + + /** + * Handle special commands. Allows a tab to handle commands it + * defines itself. + * + * @returns true if the command was handled + * false if the command was not handled + */ + virtual bool handleCommand(std::string type, std::string args) + { return false; } + protected: friend class ChatWindow; friend class WhisperWindow; |