23 #ifndef GUI_WIDGETS_TABS_SOCIALGUILDTAB_H
24 #define GUI_WIDGETS_TABS_SOCIALGUILDTAB_H
47 const Opaque showBackground) :
56 &
getThemeColor(ThemeColorId::GUILD_SOCIAL_TAB_OUTLINE, 255U));
58 ThemeColorId::GUILD_SOCIAL_TAB_HIGHLIGHTED, 255U),
60 ThemeColorId::GUILD_SOCIAL_TAB_HIGHLIGHTED_OUTLINE, 255U));
62 ThemeColorId::GUILD_SOCIAL_TAB_SELECTED, 255U),
64 ThemeColorId::GUILD_SOCIAL_TAB_SELECTED_OUTLINE, 255U));
80 const std::string &eventId =
event.getId();
81 if (eventId ==
"do invite")
90 _(
"Invited user %s to guild %s."),
99 else if (eventId ==
"~do invite")
103 else if (eventId ==
"yes")
110 _(
"Guild %s quit requested."),
118 else if (eventId ==
"~yes")
128 _(
"Member Invite to Guild"),
130 strprintf(
_(
"Who would you like to invite to guild %s?"),
144 strprintf(
_(
"Are you sure you want to leave guild %s?"),
155 if ((online0 != 0) || (total0 != 0))
168 if (
guild ==
nullptr)
174 FOR_EACHP (Guild::MemberList::const_iterator, it, members)
176 if ((*it)->getOnline())
const Guild * getGuild(const std::string &guildName) const
void chatLog(std::string line, ChatMsgTypeT own, const IgnoreRecord ignoreRecord, const TryRemoveColors tryRemoveColors)
const std::string & getName() const
std::vector< GuildMember * > MemberList
virtual void invite(const std::string &name) const =0
virtual void leave(const int guildId) const =0
SocialGuildTab(const Widget2 *const widget, Guild *const guild, const Opaque showBackground)
void action(const ActionEvent &event)
void buildCounter(const int online0, const int total0)
void createControls(AvatarListModel *const listModel, const Opaque showBackground)
ConfirmDialog * mConfirmDialog
TextDialog * mInviteDialog
void updateCounter() const
std::string mCounterString
void setHighlightedTabColor(const Color *const color1, const Color *const color2)
void setTabColor(const Color *const color1, const Color *const color2)
void setCaption(const std::string &caption)
void setSelectedTabColor(const Color *const color1, const Color *const color2)
const std::string & getText() const
#define FOR_EACHP(type, iter, array)
Net::GuildHandler * guildHandler
const bool IgnoreRecord_false
#define A_DELETE_COPY(func)
LocalPlayer * localPlayer
SocialWindow * socialWindow
static const std::string SOUND_REQUEST
std::string strprintf(const char *const format,...)
const bool TryRemoveColors_true