summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-18 18:11:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-18 18:11:02 +0300
commit506a064c94e44d4f896fa9b2dc74d30e7f7f8c33 (patch)
tree96b9db2d6d908a26307d5bfba010f0c5a1a36551 /src/gui
parent9b43913596a5fee5c16ffa84a245baa39c0232fc (diff)
downloadplus-506a064c94e44d4f896fa9b2dc74d30e7f7f8c33.tar.gz
plus-506a064c94e44d4f896fa9b2dc74d30e7f7f8c33.tar.bz2
plus-506a064c94e44d4f896fa9b2dc74d30e7f7f8c33.tar.xz
plus-506a064c94e44d4f896fa9b2dc74d30e7f7f8c33.zip
Rename DropShortcutContainer into VirtShortcutContainer.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/virtshortcutcontainer.cpp (renamed from src/gui/widgets/dropshortcutcontainer.cpp)29
-rw-r--r--src/gui/widgets/virtshortcutcontainer.h (renamed from src/gui/widgets/dropshortcutcontainer.h)14
2 files changed, 21 insertions, 22 deletions
diff --git a/src/gui/widgets/dropshortcutcontainer.cpp b/src/gui/widgets/virtshortcutcontainer.cpp
index 417cc2df2..2b0353148 100644
--- a/src/gui/widgets/dropshortcutcontainer.cpp
+++ b/src/gui/widgets/virtshortcutcontainer.cpp
@@ -20,10 +20,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "gui/widgets/dropshortcutcontainer.h"
+#include "gui/widgets/virtshortcutcontainer.h"
#include "dragdrop.h"
-#include "dropshortcut.h"
#include "shortcutbase.h"
#include "settings.h"
@@ -46,7 +45,7 @@
#include "debug.h"
-DropShortcutContainer::DropShortcutContainer(Widget2 *const widget,
+VirtShortcutContainer::VirtShortcutContainer(Widget2 *const widget,
ShortcutBase *const shortcut) :
ShortcutContainer(widget),
mItemClicked(false),
@@ -62,11 +61,11 @@ DropShortcutContainer::DropShortcutContainer(Widget2 *const widget,
mMaxItems = 0;
}
-DropShortcutContainer::~DropShortcutContainer()
+VirtShortcutContainer::~VirtShortcutContainer()
{
}
-void DropShortcutContainer::setWidget2(const Widget2 *const widget)
+void VirtShortcutContainer::setWidget2(const Widget2 *const widget)
{
Widget2::setWidget2(widget);
mEquipedColor = getThemeColor(Theme::ITEM_EQUIPPED);
@@ -75,12 +74,12 @@ void DropShortcutContainer::setWidget2(const Widget2 *const widget)
mUnEquipedColor2 = getThemeColor(Theme::ITEM_NOT_EQUIPPED_OUTLINE);
}
-void DropShortcutContainer::draw(Graphics *graphics)
+void VirtShortcutContainer::draw(Graphics *graphics)
{
if (!mShortcut)
return;
- BLOCK_START("DropShortcutContainer::draw")
+ BLOCK_START("VirtShortcutContainer::draw")
if (settings.guiAlpha != mAlpha)
{
mAlpha = settings.guiAlpha;
@@ -93,7 +92,7 @@ void DropShortcutContainer::draw(Graphics *graphics)
const Inventory *const inv = PlayerInfo::getInventory();
if (!inv)
{
- BLOCK_END("DropShortcutContainer::draw")
+ BLOCK_END("VirtShortcutContainer::draw")
return;
}
@@ -135,10 +134,10 @@ void DropShortcutContainer::draw(Graphics *graphics)
}
}
}
- BLOCK_END("DropShortcutContainer::draw")
+ BLOCK_END("VirtShortcutContainer::draw")
}
-void DropShortcutContainer::mouseDragged(MouseEvent &event)
+void VirtShortcutContainer::mouseDragged(MouseEvent &event)
{
if (!mShortcut)
return;
@@ -177,7 +176,7 @@ void DropShortcutContainer::mouseDragged(MouseEvent &event)
}
}
-void DropShortcutContainer::mousePressed(MouseEvent &event)
+void VirtShortcutContainer::mousePressed(MouseEvent &event)
{
if (!mShortcut || !inventoryWindow)
return;
@@ -224,7 +223,7 @@ void DropShortcutContainer::mousePressed(MouseEvent &event)
}
}
-void DropShortcutContainer::mouseReleased(MouseEvent &event)
+void VirtShortcutContainer::mouseReleased(MouseEvent &event)
{
if (!mShortcut)
return;
@@ -256,7 +255,7 @@ void DropShortcutContainer::mouseReleased(MouseEvent &event)
}
// Show ItemTooltip
-void DropShortcutContainer::mouseMoved(MouseEvent &event)
+void VirtShortcutContainer::mouseMoved(MouseEvent &event)
{
if (!mShortcut)
return;
@@ -289,13 +288,13 @@ void DropShortcutContainer::mouseMoved(MouseEvent &event)
}
}
-void DropShortcutContainer::mouseExited(MouseEvent &event A_UNUSED)
+void VirtShortcutContainer::mouseExited(MouseEvent &event A_UNUSED)
{
if (itemPopup)
itemPopup->setVisible(false);
}
-void DropShortcutContainer::widgetHidden(const Event &event A_UNUSED)
+void VirtShortcutContainer::widgetHidden(const Event &event A_UNUSED)
{
if (itemPopup)
itemPopup->setVisible(false);
diff --git a/src/gui/widgets/dropshortcutcontainer.h b/src/gui/widgets/virtshortcutcontainer.h
index 23addb8c2..e740b9661 100644
--- a/src/gui/widgets/dropshortcutcontainer.h
+++ b/src/gui/widgets/virtshortcutcontainer.h
@@ -20,8 +20,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef GUI_WIDGETS_DROPSHORTCUTCONTAINER_H
-#define GUI_WIDGETS_DROPSHORTCUTCONTAINER_H
+#ifndef GUI_WIDGETS_VIRTSHORTCUTCONTAINER_H
+#define GUI_WIDGETS_VIRTSHORTCUTCONTAINER_H
#include "gui/widgets/shortcutcontainer.h"
@@ -33,21 +33,21 @@ class ShortcutBase;
*
* \ingroup GUI
*/
-class DropShortcutContainer final : public ShortcutContainer
+class VirtShortcutContainer final : public ShortcutContainer
{
public:
/**
* Constructor. Initializes the graphic.
*/
- DropShortcutContainer(Widget2 *const widget,
+ VirtShortcutContainer(Widget2 *const widget,
ShortcutBase *const shortcut);
- A_DELETE_COPY(DropShortcutContainer)
+ A_DELETE_COPY(VirtShortcutContainer)
/**
* Destructor.
*/
- ~DropShortcutContainer();
+ ~VirtShortcutContainer();
/**
* Draws the items.
@@ -88,4 +88,4 @@ class DropShortcutContainer final : public ShortcutContainer
ShortcutBase *mShortcut;
};
-#endif // GUI_WIDGETS_DROPSHORTCUTCONTAINER_H
+#endif // GUI_WIDGETS_VIRTSHORTCUTCONTAINER_H