summaryrefslogtreecommitdiff
path: root/src/gui/shoplistbox.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-11 13:31:52 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-11 13:31:52 +0000
commit4b9e2b6c41e740a3eac10078d5fa4fbc63788bbe (patch)
tree6b8aea437d454de40808a7f1289c264d7bd563e3 /src/gui/shoplistbox.h
parentf97ddedaa9672c78147fc13282bd14a5be46eb19 (diff)
downloadmana-client-4b9e2b6c41e740a3eac10078d5fa4fbc63788bbe.tar.gz
mana-client-4b9e2b6c41e740a3eac10078d5fa4fbc63788bbe.tar.bz2
mana-client-4b9e2b6c41e740a3eac10078d5fa4fbc63788bbe.tar.xz
mana-client-4b9e2b6c41e740a3eac10078d5fa4fbc63788bbe.zip
Ported trunk over to Guichan 0.8.0. Based on merge from 0.0 branch, but because
of quite a bit of GUI differences there were additional changes and probably additional issues. You have been warned. ;) Merged revisions 4045-4049,4051-4059 via svnmerge from https://themanaworld.svn.sourceforge.net/svnroot/themanaworld/tmw/branches/0.0 ........ r4045 | b_lindeijer | 2008-04-07 17:23:07 +0200 (Mon, 07 Apr 2008) | 3 lines Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for gcn::TabbedArea usage) ........ r4059 | b_lindeijer | 2008-04-09 16:25:42 +0200 (Wed, 09 Apr 2008) | 2 lines Fixed problem with row height in shop list box. ........
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;
};