Changeset 209109a6d1d915495bb702a502cdce6780fa8966
- Timestamp:
- 01/06/07 23:28:29 (6 years ago)
- Author:
- Philipp Kern <phil@…>
- Parents:
- 7d6376a1a8f3b6bbe625db18ac669845b63da897
- Children:
- 15fa690d5bb031662722101d70a98cf147e87cd2
- git-committer:
- Philipp Kern <phil@0x539.de> / 2007-01-06T22:28:29Z+0000
- Message:
-
[project @ Fixed indenting spaces to be tabs]
Original author: Benjamin Herr <ben@…>
Date: 2005-04-07 12:11:12+00:00
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r4ab49e4
|
r209109a
|
|
| 49 | 49 | void obby_document_insert(obby::document& document); |
| 50 | 50 | void obby_document_remove(obby::document& document); |
| 51 | | void obby_message(obby::user& user, const Glib::ustring& message); |
| 52 | | void obby_server_message(const Glib::ustring& message); |
| | 51 | void obby_message(obby::user& user, const Glib::ustring& message); |
| | 52 | void obby_server_message(const Glib::ustring& message); |
| 53 | 53 | protected: |
| 54 | 54 | void on_chat(); |
-
|
r4ab49e4
|
r209109a
|
|
| 45 | 45 | void on_quit(); |
| 46 | 46 | |
| 47 | | void on_chat(const Glib::ustring& message); |
| | 47 | void on_chat(const Glib::ustring& message); |
| 48 | 48 | |
| 49 | 49 | // Obby signal handlers |
| … |
… |
|
| 57 | 57 | void on_obby_document_remove(obby::document& document); |
| 58 | 58 | |
| 59 | | void on_obby_server_chat(const Glib::ustring& message); |
| 60 | | void on_obby_chat(obby::user& user, const Glib::ustring& message); |
| | 59 | void on_obby_server_chat(const Glib::ustring& message); |
| | 60 | void on_obby_chat(obby::user& user, const Glib::ustring& message); |
| 61 | 61 | |
| 62 | 62 | bool on_timer(); |
-
|
r4ab49e4
|
r209109a
|
|
| 40 | 40 | sigc::mem_fun(*this, &Window::on_quit) ); |
| 41 | 41 | |
| 42 | | m_chat.chat_event().connect( |
| 43 | | sigc::mem_fun(*this, &Window::on_chat) ); |
| | 42 | m_chat.chat_event().connect( |
| | 43 | sigc::mem_fun(*this, &Window::on_chat) ); |
| 44 | 44 | |
| 45 | 45 | m_frame_chat.set_shadow_type(Gtk::SHADOW_IN); |
| … |
… |
|
| 102 | 102 | sigc::mem_fun(*this, &Window::on_obby_document_remove)); |
| 103 | 103 | |
| 104 | | m_buffer->message_event().connect( |
| 105 | | sigc::mem_fun(*this, &Window::on_obby_chat) ); |
| 106 | | m_buffer->server_message_event().connect( |
| 107 | | sigc::mem_fun(*this, &Window::on_obby_server_chat) ); |
| | 104 | m_buffer->message_event().connect( |
| | 105 | sigc::mem_fun(*this, &Window::on_obby_chat) ); |
| | 106 | m_buffer->server_message_event().connect( |
| | 107 | sigc::mem_fun(*this, &Window::on_obby_server_chat) ); |
| 108 | 108 | |
| 109 | 109 | |
| … |
… |
|
| 237 | 237 | |
| 238 | 238 | void Gobby::Window::on_chat(const Glib::ustring& message) { |
| 239 | | if (m_running) |
| 240 | | m_buffer->send_message(message); |
| 241 | | else |
| 242 | | throw std::runtime_error("tried to send chat message while not connected"); |
| | 239 | if (m_running) |
| | 240 | m_buffer->send_message(message); |
| | 241 | else |
| | 242 | throw std::runtime_error("tried to send chat message while not connected"); |
| 243 | 243 | } |
| 244 | 244 | |
| … |
… |
|
| 278 | 278 | void Gobby::Window::on_obby_chat(obby::user& user, const Glib::ustring& message) |
| 279 | 279 | { |
| 280 | | m_chat.obby_message(user, message); |
| | 280 | m_chat.obby_message(user, message); |
| 281 | 281 | } |
| 282 | 282 | |
| 283 | 283 | void Gobby::Window::on_obby_server_chat(const Glib::ustring& message) |
| 284 | 284 | { |
| 285 | | m_chat.obby_server_message(message); |
| | 285 | m_chat.obby_server_message(message); |
| 286 | 286 | } |
| 287 | 287 | |