aboutsummaryrefslogtreecommitdiff
path: root/src/guiPasswordChange.h
blob: aecc7076fedcc5a10709a81e0dc666f955337562 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
Part of Minetest
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
Copyright (C) 2013 Ciaran Gultnieks <ciaran@ciarang.com>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

#ifndef GUIPASSWORDCHANGE_HEADER
#define GUIPASSWORDCHANGE_HEADER

#include "irrlichttypes_extrabloated.h"
#include "modalMenu.h"
#include "client.h"
#include <string>

class GUIPasswordChange : public GUIModalMenu
{
public:
	GUIPasswordChange(gui::IGUIEnvironment* env,
			gui::IGUIElement* parent, s32 id,
			IMenuManager *menumgr,
			Client* client);
	~GUIPasswordChange();
	
	void removeChildren();
	/*
		Remove and re-add (or reposition) stuff
	*/
	void regenerateGui(v2u32 screensize);

	void drawMenu();

	bool acceptInput();

	bool OnEvent(const SEvent& event);
	
private:
	Client* m_client;

};

#endif

D6D_ZN, D6D_YN, D6D_XN, // 6 D6D_XN_YP, D6D_XP_YP, D6D_YP_ZP, D6D_YP_ZN, D6D_XN_ZP, D6D_XP_ZP, D6D_XN_ZN, D6D_XP_ZN, D6D_XN_YN, D6D_XP_YN, D6D_YN_ZP, D6D_YN_ZN, // 18 D6D_XN_YP_ZP, D6D_XP_YP_ZP, D6D_XN_YP_ZN, D6D_XP_YP_ZN, D6D_XN_YN_ZP, D6D_XP_YN_ZP, D6D_XN_YN_ZN, D6D_XP_YN_ZN, // 26 D6D, // aliases D6D_BACK = D6D_ZP, D6D_TOP = D6D_YP, D6D_RIGHT = D6D_XP, D6D_FRONT = D6D_ZN, D6D_BOTTOM = D6D_YN, D6D_LEFT = D6D_XN, }; /// Direction in the wallmounted format. /// P is Positive, N is Negative. enum DirectionWallmounted { DWM_YP, DWM_YN, DWM_XP, DWM_XN, DWM_ZP, DWM_ZN, };