2 Copyright 2004-2005 Chris Tallon
\r
4 This file is part of VOMP.
\r
6 VOMP is free software; you can redistribute it and/or modify
\r
7 it under the terms of the GNU General Public License as published by
\r
8 the Free Software Foundation; either version 2 of the License, or
\r
9 (at your option) any later version.
\r
11 VOMP is distributed in the hope that it will be useful,
\r
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
14 GNU General Public License for more details.
\r
16 You should have received a copy of the GNU General Public License
\r
17 along with VOMP; if not, write to the Free Software
\r
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\r
21 #ifndef WSELECTLIST_H
\r
22 #define WSELECTLIST_H
\r
29 #include "defines.h"
\r
32 using namespace std;
\r
40 class WSelectList : public Boxx
\r
46 void addColumn(int x);
\r
49 void setShowSelOption(bool set) { showseloption = set; };
\r
50 void setDarkSelOption(bool set) { darkseloption = set; };
\r
51 int addOption(const char* text, ULONG data, int selected);
\r
53 void setBackgroundColour(const Colour& colour);
\r
61 int getNumOptions();
\r
62 int getBottomOption(); // actually returns bottom + 1 i.e. the one just past display ?!
\r
63 int getCurrentOption();
\r
64 ULONG getCurrentOptionData();
\r
66 void hintSetCurrent(int index);
\r
67 void hintSetTop(int index);
\r
69 virtual bool mouseMove(int x, int y);
\r
70 virtual bool mouseLBDOWN(int x, int y);
\r
71 virtual bool mouseAndroidScroll(int x, int y,int sx, int sy);
\r
74 void drawOptionLine(char* text, int xpos, int ypos, int width, const Colour& colour);
\r
75 int getMouseLine(int x, int y);
\r
77 vector<wsloption> options;
\r
78 UINT selectedOption;
\r
80 UINT numOptionsDisplayable;
\r
84 bool showseloption, darkseloption;
\r
87 Colour backgroundColour;
\r