summaryrefslogtreecommitdiffstats
path: root/src/ui/button.h
diff options
context:
space:
mode:
authorMichał Konopacki <konopacki.m@gmail.com>2012-09-15 16:35:48 +0200
committerMichał Konopacki <konopacki.m@gmail.com>2012-09-15 16:35:48 +0200
commitd439f4fa93eb45175dcdfa773af8f68efa1bad9d (patch)
treea2620bee6aae9ee49726892c5d1ebe717ad88e33 /src/ui/button.h
parente57be247c2ddce796fd64e9f3c1b3bfa4759b74a (diff)
parente9fcec9de52471508933c9d90cc6041ce0af9752 (diff)
downloadcolobot-d439f4fa93eb45175dcdfa773af8f68efa1bad9d.tar.gz
colobot-d439f4fa93eb45175dcdfa773af8f68efa1bad9d.tar.bz2
colobot-d439f4fa93eb45175dcdfa773af8f68efa1bad9d.zip
Merge branch 'dev-ui' into dev
Conflicts: src/CMakeLists.txt src/common/misc.cpp src/common/misc.h src/object/robotmain.cpp src/object/robotmain.h src/script/cbottoken.cpp src/script/cbottoken.h src/ui/button.cpp src/ui/button.h src/ui/check.cpp src/ui/check.h src/ui/color.cpp src/ui/color.h src/ui/compass.cpp src/ui/compass.h src/ui/control.cpp src/ui/control.h src/ui/displayinfo.cpp src/ui/displayinfo.h src/ui/displaytext.cpp src/ui/displaytext.h src/ui/edit.cpp src/ui/edit.h src/ui/gauge.cpp src/ui/gauge.h src/ui/interface.cpp src/ui/interface.h src/ui/key.cpp src/ui/map.h src/ui/shortcut.h src/ui/slider.h src/ui/target.cpp src/ui/target.h src/ui/window.cpp src/ui/window.h
Diffstat (limited to 'src/ui/button.h')
-rw-r--r--src/ui/button.h45
1 files changed, 21 insertions, 24 deletions
diff --git a/src/ui/button.h b/src/ui/button.h
index 924a4d8..ffaf220 100644
--- a/src/ui/button.h
+++ b/src/ui/button.h
@@ -19,39 +19,36 @@
#pragma once
+#include "control.h"
-#include "ui/control.h"
+namespace Ui {
-namespace Gfx{
-class CEngine;
-}
-namespace Ui {
-class CButton : public CControl
-{
-public:
- CButton();
- virtual ~CButton();
+ class CButton : public CControl
+ {
+ public:
+ CButton();
+ virtual ~CButton();
- bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
+ bool Create(Math::Point pos, Math::Point dim, int icon, EventType eventType);
- bool EventProcess(const Event &event);
+ bool EventProcess(const Event &event);
- void Draw();
+ void Draw();
- void SetImmediat(bool bRepeat);
- bool GetImmediat();
+ void SetImmediat(bool bRepeat);
+ bool GetImmediat();
- void SetRepeat(bool bRepeat);
- bool GetRepeat();
+ void SetRepeat(bool bRepeat);
+ bool GetRepeat();
-protected:
+ protected:
-protected:
- bool m_bCapture;
- bool m_bImmediat;
- bool m_bRepeat;
- float m_repeat;
-};
+ protected:
+ bool m_bCapture;
+ bool m_bImmediat;
+ bool m_bRepeat;
+ float m_repeat;
+ };
}