A popup chat widget.
More...
#include <PopupChatWidget.h>
A popup chat widget.
Definition at line 20 of file PopupChatWidget.h.
PopupChatWidget::PopupChatWidget |
( |
SimpleChatServer & |
server, |
|
|
const std::string & |
id |
|
) |
| |
Definition at line 19 of file PopupChatWidget.C.
37 """var s = $('#" +
id +
"');"
38 """s.toggleClass('chat-maximized chat-minimized');"
40 +
".layouts2.scheduleAdjust(true);"
void PopupChatWidget::goOnline |
( |
| ) |
|
|
private |
bool PopupChatWidget::minimized |
( |
| ) |
const |
|
private |
void PopupChatWidget::newMessage |
( |
| ) |
|
|
protectedvirtual |
void PopupChatWidget::setName |
( |
const Wt::WString & |
name | ) |
|
Definition at line 54 of file PopupChatWidget.C.
63 n = name + boost::lexical_cast<std::string>(++tries);
void PopupChatWidget::toggleSize |
( |
| ) |
|
|
private |
void PopupChatWidget::updateUsers |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from SimpleChatWidget.
Definition at line 139 of file PopupChatWidget.C.
147 title_->setText(
"Thoughts? Ventilate.");
149 title_->setText(
"Chat: 1 user online");
154 " <span class=\"online\">({2} user{3})</span>")
155 .arg(
userName()).arg(count).arg(count == 1 ?
"" :
"s"));
bool PopupChatWidget::minimized_ |
|
private |
int PopupChatWidget::missedMessages_ |
|
private |
bool PopupChatWidget::online_ |
|
private |
The documentation for this class was generated from the following files: