summaryrefslogtreecommitdiff
path: root/src/gui/shoplistbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shoplistbox.h')
-rw-r--r--src/gui/shoplistbox.h28
1 files changed, 4 insertions, 24 deletions
diff --git a/src/gui/shoplistbox.h b/src/gui/shoplistbox.h
index 44a68445..d5e2d836 100644
--- a/src/gui/shoplistbox.h
+++ b/src/gui/shoplistbox.h
@@ -27,8 +27,6 @@
#include "listbox.h"
#include "shop.h"
-class SelectionListener;
-
/**
* A list box, meant to be used inside a scroll area. Same as the Guichan list
* box except this one doesn't have a background, instead completely relying
@@ -54,30 +52,12 @@ class ShopListBox : public ListBox
*/
void draw(gcn::Graphics *graphics);
- void mousePressed(gcn::MouseEvent &event);
-
/**
- * Adds a listener to the list that's notified each time a change to
- * the selection occurs.
+ * Returns the height of a row.
*/
- void addSelectionListener(SelectionListener *listener)
- {
- mListeners.push_back(listener);
- }
+ unsigned int getRowHeight() const { return mRowHeight; }
- /**
- * Removes a listener from the list that's notified each time a change
- * to the selection occurs.
- */
- void removeSelectionListener(SelectionListener *listener)
- {
- mListeners.remove(listener);
- }
-
- /**
- * Sets the index of the selected element.
- */
- void setSelected(int selected);
+ void mousePressed(gcn::MouseEvent &event);
/**
* gives information about the current player's money
@@ -104,7 +84,7 @@ class ShopListBox : public ListBox
*/
ShopItems *mShopItems;
- int mRowHeight; /**< Row Height */
+ unsigned int mRowHeight; /**< Row Height */
bool mPriceCheck;
};