~ubuntu-branches/ubuntu/vivid/manaplus/vivid-proposed

« back to all changes in this revision

Viewing changes to src/gui/windows/itemamountwindow.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2015-02-05 10:52:57 UTC
  • mfrom: (1.1.43)
  • Revision ID: package-import@ubuntu.com-20150205105257-q53e3m1s2wwawu8a
Tags: 1.5.1.31-1
* New upstream release.
* Fix some wildcard-matches-nothing-in-dep5-copyright warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "gui/windows/itemamountwindow.h"
24
24
 
25
 
#include "inventory.h"
26
25
#include "item.h"
27
26
 
28
27
#include "being/playerinfo.h"
69
68
            inventoryHandler->splitItem(item, amount);
70
69
            break;
71
70
        case StoreAdd:
72
 
            inventoryHandler->moveItem2(Inventory::INVENTORY,
73
 
                item->getInvIndex(), amount, Inventory::STORAGE);
 
71
            inventoryHandler->moveItem2(InventoryType::INVENTORY,
 
72
                item->getInvIndex(), amount, InventoryType::STORAGE);
 
73
            break;
 
74
        case CartAdd:
 
75
            inventoryHandler->moveItem2(InventoryType::INVENTORY,
 
76
                item->getInvIndex(), amount, InventoryType::CART);
74
77
            break;
75
78
        case StoreRemove:
76
 
            inventoryHandler->moveItem2(Inventory::STORAGE,
77
 
                item->getInvIndex(), amount, Inventory::INVENTORY);
 
79
            inventoryHandler->moveItem2(InventoryType::STORAGE,
 
80
                item->getInvIndex(), amount, InventoryType::INVENTORY);
 
81
            break;
 
82
        case CartRemove:
 
83
            inventoryHandler->moveItem2(InventoryType::CART,
 
84
                item->getInvIndex(), amount, InventoryType::INVENTORY);
78
85
            break;
79
86
        case ShopBuyAdd:
80
87
            if (shopWindow)
225
232
            // TRANSLATORS: amount window message
226
233
            setCaption(_("Select amount of items to store."));
227
234
            break;
 
235
        case CartAdd:
 
236
            // TRANSLATORS: amount window message
 
237
            setCaption(_("Select amount of items to store to cart."));
 
238
            break;
228
239
        case StoreRemove:
229
240
            // TRANSLATORS: amount window message
230
241
            setCaption(_("Select amount of items to retrieve."));
231
242
            break;
 
243
        case CartRemove:
 
244
            // TRANSLATORS: amount window message
 
245
            setCaption(_("Select amount of items to retrieve from cart."));
 
246
            break;
232
247
        case ItemSplit:
233
248
            // TRANSLATORS: amount window message
234
249
            setCaption(_("Select amount of items to split."));