diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-12 14:39:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-12 14:39:39 +0300 |
commit | a9c39ea2e28e47118f58a040c4eb949b84bf9e20 (patch) | |
tree | b14a45632d14d8293422fc4707e8a3fd451b6f18 /src/net/tmwa/partyhandler.cpp | |
parent | c9d8a97059e24d24011870fae89199e1cb44e5ef (diff) | |
download | manaverse-a9c39ea2e28e47118f58a040c4eb949b84bf9e20.tar.gz manaverse-a9c39ea2e28e47118f58a040c4eb949b84bf9e20.tar.bz2 manaverse-a9c39ea2e28e47118f58a040c4eb949b84bf9e20.tar.xz manaverse-a9c39ea2e28e47118f58a040c4eb949b84bf9e20.zip |
Move PartyTab from net namespace into gui.
Diffstat (limited to 'src/net/tmwa/partyhandler.cpp')
-rw-r--r-- | src/net/tmwa/partyhandler.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp index 6d59cd0ce..e2b0c1893 100644 --- a/src/net/tmwa/partyhandler.cpp +++ b/src/net/tmwa/partyhandler.cpp @@ -30,7 +30,7 @@ #include "gui/windows/chatwindow.h" #include "gui/windows/socialwindow.h" -#include "net/ea/gui/partytab.h" +#include "gui/widgets/tabs/chat/partytab.h" #include "net/tmwa/messageout.h" #include "net/tmwa/protocol.h" @@ -204,7 +204,7 @@ void PartyHandler::setShareItems(const Net::PartyShare::Type share) const void PartyHandler::processPartySettings(Net::MessageIn &msg) { - if (!Ea::partyTab) + if (!partyTab) { if (!chatWindow) return; @@ -286,14 +286,14 @@ void PartyHandler::processPartyInfo(Net::MessageIn &msg) const PartyMember *const member = Ea::taParty->addMember(id, nick); if (member) { - if (!joined && Ea::partyTab) + if (!joined && partyTab) { if (!names.empty() && ((onlineNames.find(nick) == onlineNames.end() && online) || (onlineNames.find(nick) != onlineNames.end() && !online))) { - Ea::partyTab->showOnline(nick, online); + partyTab->showOnline(nick, online); } member->setLeader(leader); @@ -331,12 +331,12 @@ void PartyHandler::processPartyMessage(Net::MessageIn &msg) const const int id = msg.readInt32(); const std::string chatMsg = msg.readString(msgLength); - if (Ea::taParty && Ea::partyTab) + if (Ea::taParty && partyTab) { const PartyMember *const member = Ea::taParty->getMember(id); if (member) { - Ea::partyTab->chatLog(member->getName(), chatMsg); + partyTab->chatLog(member->getName(), chatMsg); } else { @@ -348,7 +348,7 @@ void PartyHandler::processPartyMessage(Net::MessageIn &msg) const void PartyHandler::processPartyInviteResponse(Net::MessageIn &msg) const { - if (!Ea::partyTab) + if (!partyTab) return; const std::string nick = msg.readString(24); |