Luanti 5.15.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
21#include "modalMenu.h"
22#include <string>
23
24class Client;
26
28{
29public:
30 GUIPasswordChange(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id,
31 IMenuManager *menumgr, Client *client,
33
34 /*
35 Remove and re-add (or reposition) stuff
36 */
37 void regenerateGui(v2u32 screensize);
38
39 void drawMenu();
40
41 void acceptInput();
42
43 bool processInput();
44
45 bool OnEvent(const SEvent &event);
46#ifdef __ANDROID__
47 void getAndroidUIInput();
48#endif
49
50protected:
51 std::wstring getLabelByID(s32 id) { return L""; }
52 std::string getNameByID(s32 id);
53
54private:
56 std::wstring m_oldpass = L"";
57 std::wstring m_newpass = L"";
58 std::wstring m_newpass_confirm = L"";
60};
Definition client.h:106
Definition modalMenu.h:37
Definition guiPasswordChange.h:28
std::wstring m_oldpass
Definition guiPasswordChange.h:56
void drawMenu()
Definition guiPasswordChange.cpp:145
Client * m_client
Definition guiPasswordChange.h:55
bool processInput()
Definition guiPasswordChange.cpp:175
std::wstring m_newpass
Definition guiPasswordChange.h:57
void regenerateGui(v2u32 screensize)
Definition guiPasswordChange.cpp:50
GUIPasswordChange(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id, IMenuManager *menumgr, Client *client, ISimpleTextureSource *tsrc)
Definition guiPasswordChange.cpp:38
std::wstring getLabelByID(s32 id)
Definition guiPasswordChange.h:51
void acceptInput()
Definition guiPasswordChange.cpp:161
bool OnEvent(const SEvent &event)
Definition guiPasswordChange.cpp:187
std::wstring m_newpass_confirm
Definition guiPasswordChange.h:58
std::string getNameByID(s32 id)
Definition guiPasswordChange.cpp:239
ISimpleTextureSource * m_tsrc
Definition guiPasswordChange.h:59
Definition modalMenu.h:26
Definition texturesource.h:34
core::vector2d< u32 > v2u32
Definition irr_v2d.h:14
Definition activeobjectmgr.cpp:11