summaryrefslogtreecommitdiff
path: root/src/gui/setup_theme.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-27 02:44:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-27 02:45:53 +0300
commit481bbd254103fc9d6dc98b19a5226f8868c8c5d9 (patch)
tree426856951ad81ccb69b43fc53a2ae76861f30fff /src/gui/setup_theme.cpp
parente5272cde78d23a297dad05976e8579b3e5759de4 (diff)
downloadmv-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.gz
mv-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.bz2
mv-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.tar.xz
mv-481bbd254103fc9d6dc98b19a5226f8868c8c5d9.zip
Add sliderlist setup item.
Diffstat (limited to 'src/gui/setup_theme.cpp')
-rw-r--r--src/gui/setup_theme.cpp29
1 files changed, 2 insertions, 27 deletions
diff --git a/src/gui/setup_theme.cpp b/src/gui/setup_theme.cpp
index d4a1d5652..d3b9d0e3c 100644
--- a/src/gui/setup_theme.cpp
+++ b/src/gui/setup_theme.cpp
@@ -29,10 +29,11 @@
#include "gui/widgets/button.h"
#include "gui/widgets/checkbox.h"
+#include "gui/widgets/dropdown.h"
#include "gui/widgets/label.h"
#include "gui/widgets/layouthelper.h"
+#include "gui/widgets/namesmodel.h"
#include "gui/widgets/textfield.h"
-#include "gui/widgets/dropdown.h"
#include "configuration.h"
#include "localplayer.h"
@@ -53,32 +54,6 @@ const char* ACTION_HELP_FONT = "help font";
const char* ACTION_SECURE_FONT = "secure font";
const char* ACTION_JAPAN_FONT = "japan font";
-class NamesModel : public gcn::ListModel
-{
-public:
- NamesModel()
- {
- }
-
- virtual ~NamesModel() { }
-
- virtual int getNumberOfElements()
- {
- return static_cast<int>(mNames.size());
- }
-
- virtual std::string getElementAt(int i)
- {
- if (i >= getNumberOfElements() || i < 0)
- return _("???");
-
- return mNames[i];
- }
-
-protected:
- std::vector<std::string> mNames;
-};
-
class ThemesModel : public NamesModel
{
public: