7 #include <Wt/WApplication> 8 #include <Wt/WEnvironment> 11 #include <Wt/WVBoxLayout> 20 const std::string&
id)
28 == Wt::WEnvironment::IE6)
37 """var s = $('#" +
id +
"');" 38 """s.toggleClass('chat-maximized chat-minimized');" 40 +
".layouts2.scheduleAdjust(true);" 63 n = name + boost::lexical_cast<std::string>(++tries);
109 name =
name_ + boost::lexical_cast<std::string>(++tries);
154 " <span class=\"online\">({2} user{3})</span>")
155 .arg(
userName()).arg(count).arg(count == 1 ?
"" :
"s"));
UserSet users()
Get the users currently logged in.
void addWidget(std::unique_ptr< WWidget > widget, int stretch, WFlags< AlignmentFlag > alignment)
bool changeName(const Wt::WString &user, const Wt::WString &newUser)
Changes the name.
bool setText(const WString &text)
Wt::WString suggestGuest()
Get a suggestion for a guest user name.
void setContentsMargins(int left, int top, int right, int bottom)
WStatelessSlot * implementJavaScript(void(T::*method)(), const std::string &jsCode)
static WApplication * instance()
void setSpacing(int size)