summaryrefslogtreecommitdiff
path: root/src/gui/chat.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-09 19:33:22 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-09 19:36:15 +0200
commit3dacb9b09622375d35d704c8ac9d7039d506026f (patch)
treeebc9dd04955cee5d394403b754c150b7c2260f3b /src/gui/chat.h
parent3074acf977841492b2378b5542bc3d755cf0a227 (diff)
downloadmana-3dacb9b09622375d35d704c8ac9d7039d506026f.tar.gz
mana-3dacb9b09622375d35d704c8ac9d7039d506026f.tar.bz2
mana-3dacb9b09622375d35d704c8ac9d7039d506026f.tar.xz
mana-3dacb9b09622375d35d704c8ac9d7039d506026f.zip
Insert player and item names at caret position instead of at the end
An improvement based on the 0.0.28.Q version.
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r--src/gui/chat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h
index efd0b02e..c6e8e326 100644
--- a/src/gui/chat.h
+++ b/src/gui/chat.h
@@ -91,12 +91,12 @@ class ChatWindow : public Window,
/**
* Gets the focused tab.
*/
- ChatTab* getFocused() const;
+ ChatTab *getFocused() const;
/**
* Clear the given tab.
*/
- void clearTab(ChatTab* tab);
+ void clearTab(ChatTab *tab);
/**
* Clear the current tab.
@@ -141,8 +141,8 @@ class ChatWindow : public Window,
/** Called when key is pressed */
void keyPressed(gcn::KeyEvent &event);
- /** Add the given text to the chat input */
- void addInputText(std::string input_str);
+ /** Add the given text to the chat input. */
+ void addInputText(const std::string &text);
/** Called to add item to chat */
void addItemText(const std::string &item);