diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-04 01:14:28 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-09 20:10:21 +0100 |
commit | 112d71798eca4b13dd5b11805669ae4fad4dea0e (patch) | |
tree | 6ac1974917eec380a8309024628ec6795e4d74ff /src/gui/emoteshortcutcontainer.cpp | |
parent | 1b1050da1c7b84cc72b7efbb2229294975be9e10 (diff) | |
download | mana-112d71798eca4b13dd5b11805669ae4fad4dea0e.tar.gz mana-112d71798eca4b13dd5b11805669ae4fad4dea0e.tar.bz2 mana-112d71798eca4b13dd5b11805669ae4fad4dea0e.tar.xz mana-112d71798eca4b13dd5b11805669ae4fad4dea0e.zip |
Fixed up the copyright headers
Decision is to go with exact authors when some file is basically done by
one person, and in most other cases assign TMW or Aethyra team copyright
when multiple people from those teams have been involved.
Also, the first summary line should now contain the subset of
functionality that the file is part of, not the name of the whole
project.
Diffstat (limited to 'src/gui/emoteshortcutcontainer.cpp')
-rw-r--r-- | src/gui/emoteshortcutcontainer.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/gui/emoteshortcutcontainer.cpp b/src/gui/emoteshortcutcontainer.cpp index f5ee9843..a0142663 100644 --- a/src/gui/emoteshortcutcontainer.cpp +++ b/src/gui/emoteshortcutcontainer.cpp @@ -1,22 +1,22 @@ /* - * Aethyra - * Copyright 2009 Aethyra Development Team + * Extended support for activating emotes + * Copyright (C) 2009 Aethyra Development Team * - * This file is part of Aethyra. + * This file is part of The Mana World. * - * Aethyra is free software; you can redistribute it and/or modify + * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * any later version. * - * Aethyra is distributed in the hope that it will be useful, + * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with Aethyra; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "emoteshortcutcontainer.h" @@ -112,14 +112,14 @@ void EmoteShortcutContainer::draw(gcn::Graphics *graphics) void EmoteShortcutContainer::mouseDragged(gcn::MouseEvent &event) { - if (event.getButton() == gcn::MouseEvent::LEFT) + if (event.getButton() == gcn::MouseEvent::LEFT) { - if (!mEmoteMoved && mEmoteClicked) + if (!mEmoteMoved && mEmoteClicked) { const int index = getIndexFromGrid(event.getX(), event.getY()); const int emoteId = emoteShortcut->getEmote(index); - if (index == -1) + if (index == -1) { return; } @@ -130,7 +130,7 @@ void EmoteShortcutContainer::mouseDragged(gcn::MouseEvent &event) emoteShortcut->removeEmote(index); } } - if (mEmoteMoved) + if (mEmoteMoved) { mCursorPosX = event.getX(); mCursorPosY = event.getY(); @@ -142,18 +142,18 @@ void EmoteShortcutContainer::mousePressed(gcn::MouseEvent &event) { const int index = getIndexFromGrid(event.getX(), event.getY()); - if (index == -1) + if (index == -1) { return; } // Stores the selected emote if there is one. - if (emoteShortcut->isEmoteSelected()) + if (emoteShortcut->isEmoteSelected()) { emoteShortcut->setEmote(index); emoteShortcut->setEmoteSelected(0); } - else if (emoteShortcut->getEmote(index)) + else if (emoteShortcut->getEmote(index)) { mEmoteClicked = true; } @@ -170,13 +170,13 @@ void EmoteShortcutContainer::mouseReleased(gcn::MouseEvent &event) emoteShortcut->setEmoteSelected(0); } - if (index == -1) + if (index == -1) { mEmoteMoved = 0; return; } - if (mEmoteMoved) + if (mEmoteMoved) { emoteShortcut->setEmotes(index, mEmoteMoved); mEmoteMoved = 0; @@ -186,7 +186,7 @@ void EmoteShortcutContainer::mouseReleased(gcn::MouseEvent &event) emoteShortcut->useEmote(index + 1); } - if (mEmoteClicked) + if (mEmoteClicked) { mEmoteClicked = false; } |