diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-07 15:23:07 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-07 15:23:07 +0000 |
commit | 92950d2f309550e21b33d851ef9bbf7906ce5e50 (patch) | |
tree | 18a6d2539c6e004e52cbebb1e61d8f8f0344f9a0 /src/gui/itemcontainer.h | |
parent | 3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 (diff) | |
download | mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.gz mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.bz2 mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.xz mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.zip |
Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for
gcn::TabbedArea usage)
Diffstat (limited to 'src/gui/itemcontainer.h')
-rw-r--r-- | src/gui/itemcontainer.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gui/itemcontainer.h b/src/gui/itemcontainer.h index 8c548fcd..58b19179 100644 --- a/src/gui/itemcontainer.h +++ b/src/gui/itemcontainer.h @@ -32,7 +32,10 @@ class Image; class Inventory; class Item; -class SelectionListener; + +namespace gcn { + class SelectionListener; +} /** * An item container. Used to show items in inventory and trade dialog. @@ -87,7 +90,7 @@ class ItemContainer : public gcn::Widget, public gcn::MouseListener * Adds a listener to the list that's notified each time a change to * the selection occurs. */ - void addSelectionListener(SelectionListener *listener) + void addSelectionListener(gcn::SelectionListener *listener) { mListeners.push_back(listener); } @@ -96,7 +99,7 @@ class ItemContainer : public gcn::Widget, public gcn::MouseListener * Removes a listener from the list that's notified each time a change * to the selection occurs. */ - void removeSelectionListener(SelectionListener *listener) + void removeSelectionListener(gcn::SelectionListener *listener) { mListeners.remove(listener); } @@ -110,7 +113,7 @@ class ItemContainer : public gcn::Widget, public gcn::MouseListener /** * Sends out selection events to the list of selection listeners. */ - void fireSelectionChangedEvent(); + void distributeValueChangedEvent(); Inventory *mInventory; Image *mSelImg; @@ -118,7 +121,7 @@ class ItemContainer : public gcn::Widget, public gcn::MouseListener int mMaxItems; - std::list<SelectionListener*> mListeners; + std::list<gcn::SelectionListener*> mListeners; }; #endif |