summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 23:38:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 23:38:08 +0300
commit95445bb5a7fa0c61e489d2f518cd3ebfd35c4fba (patch)
tree7974d0661683a329135920e813dcb5952ddf4375 /src/gui
parent1ae48312fe346dc8cd084f60840ff70972d2d384 (diff)
downloadmv-95445bb5a7fa0c61e489d2f518cd3ebfd35c4fba.tar.gz
mv-95445bb5a7fa0c61e489d2f518cd3ebfd35c4fba.tar.bz2
mv-95445bb5a7fa0c61e489d2f518cd3ebfd35c4fba.tar.xz
mv-95445bb5a7fa0c61e489d2f518cd3ebfd35c4fba.zip
Move guiconfiglistener into separate file.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 7c17b5991..2841a5369 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -82,6 +82,7 @@
#include "events/keyevent.h"
#include "listeners/focuslistener.h"
+#include "listeners/guiconfiglistener.h"
#include "listeners/keylistener.h"
#include "listeners/mouselistener.h"
@@ -108,33 +109,6 @@ SDLInput *guiInput = nullptr;
// Bolded font
Font *boldFont = nullptr;
-class GuiConfigListener final : public ConfigListener
-{
- public:
- explicit GuiConfigListener(Gui *const g):
- mGui(g)
- {}
-
- A_DELETE_COPY(GuiConfigListener)
-
- virtual ~GuiConfigListener()
- {
- CHECKLISTENERS
- }
-
- void optionChanged(const std::string &name)
- {
- if (!mGui)
- return;
- if (name == "customcursor")
- mGui->setUseCustomCursor(config.getBoolValue("customcursor"));
- else if (name == "doubleClick")
- mGui->setDoubleClick(config.getBoolValue("doubleClick"));
- }
- private:
- Gui *mGui;
-};
-
Gui::Gui() :
mTop(nullptr),
mGraphics(nullptr),