Changeset 6910 for code/branches/chat2/src/orxonox/ChatInputHandler.h
- Timestamp:
- May 17, 2010, 3:22:10 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/chat2/src/orxonox/ChatInputHandler.h
r6885 r6910 78 78 void sub_adjust_dispoffset( int maxlen, int cursorpos, int inplen ); 79 79 80 /* singleton pointer */80 /** singleton pointer */ 81 81 static ChatInputHandler* singletonPtr_s; 82 82 83 /* cegui stuff*/83 /** cegui window handles */ 84 84 CEGUI::Window *input, *inputonly; 85 86 /** cegui handle for the history window */ 85 87 CEGUI::Listbox *lb_history; 86 87 public:88 /** constructor */89 ChatInputHandler();90 friend class Singleton<ChatInputHandler>;91 92 /* start listening, stop listening */93 static void activate_static();94 static void activate_small_static();95 96 void incomingChat( const std::string& message,97 unsigned int senderID );98 99 void activate( bool full );100 void deactivate();101 88 102 89 /* callbacks for input handler */ … … 110 97 void cursorHome(); 111 98 void exit(); 99 100 public: 101 /** constructor */ 102 ChatInputHandler(); 103 friend class Singleton<ChatInputHandler>; 104 105 /** start listening */ 106 static void activate_static(); 107 108 /** stop listening */ 109 static void activate_small_static(); 110 111 /** \param message the message text 112 * \param senderID ID of the player who sent the message 113 * 114 * Deal with incoming chat (which means in our case: Add it to the 115 * history window of the full chat window) 116 */ 117 void incomingChat( const std::string& message, 118 unsigned int senderID ); 119 120 /** \param full true means show full chat window with history, 121 false means show only an input line 122 * 123 * Show the chat window and redirect the game's keyboard input 124 * into it. 125 */ 126 void activate( bool full ); 127 128 /** Deactivate the chat window, meaning: hide it. */ 129 void deactivate(); 130 112 131 }; 113 132
Note: See TracChangeset
for help on using the changeset viewer.