summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-29 01:10:18 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-29 01:10:18 +0300
commitf898898204f163ab807e681b4cc4bf2e26ece147 (patch)
tree169555c4117e49ecb19979a9c19ff3d24460c516 /src/gui/widgets/dropdown.h
parent0cd049b5b56b34b0b7ab3e3eac93dcb255c4e118 (diff)
downloadmanaverse-f898898204f163ab807e681b4cc4bf2e26ece147.tar.gz
manaverse-f898898204f163ab807e681b4cc4bf2e26ece147.tar.bz2
manaverse-f898898204f163ab807e681b4cc4bf2e26ece147.tar.xz
manaverse-f898898204f163ab807e681b4cc4bf2e26ece147.zip
Add support for show icon also in selected item in dropdown.
Diffstat (limited to 'src/gui/widgets/dropdown.h')
-rw-r--r--src/gui/widgets/dropdown.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/widgets/dropdown.h b/src/gui/widgets/dropdown.h
index 1707857cb..295c8b527 100644
--- a/src/gui/widgets/dropdown.h
+++ b/src/gui/widgets/dropdown.h
@@ -25,17 +25,15 @@
#include "gui/widgets/widget2.h"
-#include "guichan/actionlistener.hpp"
-#include "guichan/basiccontainer.hpp"
-#include "guichan/focushandler.hpp"
-#include "guichan/focuslistener.hpp"
-#include "guichan/keylistener.hpp"
-#include "guichan/listmodel.hpp"
-#include "guichan/mouselistener.hpp"
-#include "guichan/selectionlistener.hpp"
-
-#include "guichan/widgets/listbox.hpp"
-#include "guichan/widgets/scrollarea.hpp"
+#include <guichan/actionlistener.hpp>
+#include <guichan/basiccontainer.hpp>
+#include <guichan/focushandler.hpp>
+#include <guichan/focuslistener.hpp>
+#include <guichan/keylistener.hpp>
+#include <guichan/listmodel.hpp>
+#include <guichan/mouselistener.hpp>
+#include <guichan/selectionlistener.hpp>
+#include <guichan/widgets/scrollarea.hpp>
#include "localconsts.h"
@@ -147,11 +145,13 @@ class DropDown final : public gcn::ActionListener,
*/
void drawButton(gcn::Graphics *graphics);
+ bool mExtended;
PopupList *mPopup;
gcn::Color mShadowColor;
gcn::Color mHighlightColor;
int mPadding;
int mImagePadding;
+ int mSpacing;
bool mDroppedDown;
bool mPushed;