Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
guiPasswordChange.h
Go to the documentation of this file.
1/*
2Part of Minetest
3Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
4Copyright (C) 2013 Ciaran Gultnieks <ciaran@ciarang.com>
5
6Permission to use, copy, modify, and distribute this software for any
7purpose with or without fee is hereby granted, provided that the above
8copyright notice and this permission notice appear in all copies.
9
10THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*/
18
19#pragma once
20
22#include "modalMenu.h"
23#include <string>
24
25class Client;
27
29{
30public:
31 GUIPasswordChange(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id,
32 IMenuManager *menumgr, Client *client,
34
35 /*
36 Remove and re-add (or reposition) stuff
37 */
38 void regenerateGui(v2u32 screensize);
39
40 void drawMenu();
41
42 void acceptInput();
43
44 bool processInput();
45
46 bool OnEvent(const SEvent &event);
47#ifdef __ANDROID__
48 void getAndroidUIInput();
49#endif
50
51protected:
52 std::wstring getLabelByID(s32 id) { return L""; }
53 std::string getNameByID(s32 id);
54
55private:
57 std::wstring m_oldpass = L"";
58 std::wstring m_newpass = L"";
59 std::wstring m_newpass_confirm = L"";
61};
Definition: client.h:119
Definition: modalMenu.h:48
Definition: guiPasswordChange.h:29
std::wstring m_oldpass
Definition: guiPasswordChange.h:57
void drawMenu()
Definition: guiPasswordChange.cpp:150
Client * m_client
Definition: guiPasswordChange.h:56
bool processInput()
Definition: guiPasswordChange.cpp:180
std::wstring m_newpass
Definition: guiPasswordChange.h:58
void regenerateGui(v2u32 screensize)
Definition: guiPasswordChange.cpp:50
std::wstring getLabelByID(s32 id)
Definition: guiPasswordChange.h:52
void acceptInput()
Definition: guiPasswordChange.cpp:166
bool OnEvent(const SEvent &event)
Definition: guiPasswordChange.cpp:192
std::wstring m_newpass_confirm
Definition: guiPasswordChange.h:59
std::string getNameByID(s32 id)
Definition: guiPasswordChange.cpp:246
ISimpleTextureSource * m_tsrc
Definition: guiPasswordChange.h:60
Definition: modalMenu.h:37
Definition: texturesource.h:34
core::vector2d< u32 > v2u32
Definition: irr_v2d.h:29
Definition: activeobjectmgr.cpp:26