2011-05-22 22:09:12 +02:00
|
|
|
/*
|
2013-02-24 18:40:43 +01:00
|
|
|
Part of Minetest
|
2013-02-24 19:38:45 +01:00
|
|
|
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
|
|
|
|
Copyright (C) 2013 Ciaran Gultnieks <ciaran@ciarang.com>
|
2011-05-22 22:09:12 +02:00
|
|
|
|
2011-05-31 10:59:51 +02:00
|
|
|
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.
|
2011-05-22 22:09:12 +02:00
|
|
|
*/
|
|
|
|
|
2017-08-17 22:19:39 +02:00
|
|
|
#pragma once
|
2011-05-22 22:09:12 +02:00
|
|
|
|
2012-06-17 03:00:31 +02:00
|
|
|
#include "irrlichttypes_extrabloated.h"
|
2011-05-22 22:09:12 +02:00
|
|
|
#include "modalMenu.h"
|
|
|
|
#include <string>
|
|
|
|
|
2017-08-16 22:11:45 +02:00
|
|
|
class Client;
|
2020-04-11 22:39:30 +02:00
|
|
|
class ISimpleTextureSource;
|
2017-08-16 22:11:45 +02:00
|
|
|
|
2011-05-22 22:09:12 +02:00
|
|
|
class GUIPasswordChange : public GUIModalMenu
|
|
|
|
{
|
|
|
|
public:
|
2017-04-23 09:52:40 +02:00
|
|
|
GUIPasswordChange(gui::IGUIEnvironment *env, gui::IGUIElement *parent, s32 id,
|
2020-04-11 22:39:30 +02:00
|
|
|
IMenuManager *menumgr, Client *client,
|
|
|
|
ISimpleTextureSource *tsrc);
|
2017-04-23 09:52:40 +02:00
|
|
|
|
2011-05-22 22:09:12 +02:00
|
|
|
/*
|
|
|
|
Remove and re-add (or reposition) stuff
|
|
|
|
*/
|
|
|
|
void regenerateGui(v2u32 screensize);
|
|
|
|
|
|
|
|
void drawMenu();
|
|
|
|
|
2017-05-20 12:29:44 +02:00
|
|
|
void acceptInput();
|
|
|
|
|
|
|
|
bool processInput();
|
2011-05-22 22:09:12 +02:00
|
|
|
|
2017-04-23 09:52:40 +02:00
|
|
|
bool OnEvent(const SEvent &event);
|
2018-06-24 21:50:57 +02:00
|
|
|
#ifdef __ANDROID__
|
2024-01-07 13:00:04 +01:00
|
|
|
void getAndroidUIInput();
|
2018-06-24 21:50:57 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
protected:
|
|
|
|
std::wstring getLabelByID(s32 id) { return L""; }
|
|
|
|
std::string getNameByID(s32 id);
|
2011-05-22 22:09:12 +02:00
|
|
|
|
2017-04-23 09:52:40 +02:00
|
|
|
private:
|
|
|
|
Client *m_client;
|
2017-06-17 19:11:28 +02:00
|
|
|
std::wstring m_oldpass = L"";
|
|
|
|
std::wstring m_newpass = L"";
|
|
|
|
std::wstring m_newpass_confirm = L"";
|
2020-04-11 22:39:30 +02:00
|
|
|
ISimpleTextureSource *m_tsrc;
|
2011-05-22 22:09:12 +02:00
|
|
|
};
|