summaryrefslogtreecommitdiffstats
path: root/src/ui/mainshort.h
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2012-08-21 21:38:13 +0200
committererihel <erihel@gmail.com>2012-08-21 21:38:13 +0200
commit5408fe92527a4df01e4d66a2cdfdbbbea5738afc (patch)
tree8bb78b55d837bc8c16db2357fcd898fe3c7880fd /src/ui/mainshort.h
parent4faa1b9c447485cd2086a4c7f7c3655042e5de83 (diff)
downloadcolobot-5408fe92527a4df01e4d66a2cdfdbbbea5738afc.tar.gz
colobot-5408fe92527a4df01e4d66a2cdfdbbbea5738afc.tar.bz2
colobot-5408fe92527a4df01e4d66a2cdfdbbbea5738afc.zip
* added nullptr
* changed Ret to Get function names * minor changes
Diffstat (limited to 'src/ui/mainshort.h')
-rw-r--r--src/ui/mainshort.h65
1 files changed, 33 insertions, 32 deletions
diff --git a/src/ui/mainshort.h b/src/ui/mainshort.h
index f260f0e..d570484 100644
--- a/src/ui/mainshort.h
+++ b/src/ui/mainshort.h
@@ -1,5 +1,6 @@
// * This file is part of the COLOBOT source code
// * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
+// * Copyright (C) 2012 Polish Portal of Colobot (PPC)
// *
// * This program is free software: you can redistribute it and/or modify
// * it under the terms of the GNU General Public License as published by
@@ -18,45 +19,45 @@
#pragma once
+#include <ui/interface.h>
-#include "common/event.h"
-#include "math/point.h"
+#include <common/event.h>
+#include <math/point.h>
-class CInstanceManager;
-class CD3DEngine;
-class CInterface;
-class CRobotMain;
-class CObject;
+#include <object/object.h>
+#include <graphics/engine/engine.h>
+
+namespace Ui {
class CMainShort
{
-public:
- CMainShort(CInstanceManager* iMan);
- ~CMainShort();
-
- void SetMode(bool bBuilding);
- void FlushShortcuts();
- bool CreateShortcuts();
- bool UpdateShortcuts();
- void SelectShortcut(EventMsg event);
- void SelectNext();
- CObject* DetectShort(Math::Point pos);
- void SetHilite(CObject* pObj);
-
-protected:
-
-protected:
- CInstanceManager* m_iMan;
- CEvent* m_event;
- CD3DEngine* m_engine;
- CInterface* m_interface;
- CRobotMain* m_main;
-
- CObject* m_shortcuts[20];
- bool m_bBuilding;
+ public:
+ CMainShort();
+ ~CMainShort();
+
+ void SetMode(bool bBuilding);
+ void FlushShortcuts();
+ bool CreateShortcuts();
+ bool UpdateShortcuts();
+ void SelectShortcut(EventType event);
+ void SelectNext();
+ CObject* DetectShort(Math::Point pos);
+ void SetHighlight(CObject* pObj);
+
+ protected:
+
+ protected:
+ CInstanceManager* m_iMan;
+ CEvent* m_event;
+ Gfx::CEngine* m_engine;
+ CInterface* m_interface;
+ CRobotMain* m_main;
+
+ CObject* m_shortcuts[20];
+ bool m_bBuilding;
};
-
+}