Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-08-18 09:24:15 +0000
committerStijn Buys <ingar@osirion.org>2009-08-18 09:24:15 +0000
commitf030154fe727e25a2afe1f78b3998c2d2dba95e4 (patch)
treecd92baf9e4fa8a136523b9eb570e9811846c9250 /src/client/chat.h
parent5636fad174f0bcff857c357c394c4cc8d424b302 (diff)
astyle cleanup, corrects not loading of material textures
Diffstat (limited to 'src/client/chat.h')
-rw-r--r--src/client/chat.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/client/chat.h b/src/client/chat.h
index b7e1691..41837c5 100644
--- a/src/client/chat.h
+++ b/src/client/chat.h
@@ -1,7 +1,7 @@
/*
client/chat.h
- This file is part of the Osirion project and is distributed under
- the terms of the GNU General Public License version 2
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
*/
#ifndef __INCLUDED_CLIENT_CHAT_H__
@@ -14,7 +14,8 @@
#include "ui/scrollpane.h"
#include "ui/window.h"
-namespace client {
+namespace client
+{
class Chat : public ui::Window
{
@@ -26,19 +27,21 @@ public:
void toggle();
void event_text(const std::string & text);
-
- inline bool small_view() const { return chat_small; }
-
- void set_small_view(bool small_view=true);
+
+ inline bool small_view() const {
+ return chat_small;
+ }
+
+ void set_small_view(bool small_view = true);
void clear();
protected:
virtual void event_draw();
virtual void resize();
-
+
virtual bool on_keypress(const int key, const unsigned int modifier);
-
+
private:
bool chat_small;
@@ -46,9 +49,9 @@ private:
ui::Text chat_log;
ui::ScrollPane *chat_scrollpane;
ui::InputBox *chat_input;
-
+
typedef std::deque<std::string> History;
-
+
History history;
History::reverse_iterator history_pos;
};