]> git.lizzy.rs Git - dragonfireclient.git/blob - src/guiPasswordChange.h
+ paper, book, bookshelf
[dragonfireclient.git] / src / guiPasswordChange.h
1 /*
2 Minetest-c55
3 Copyright (C) 2010-11 celeron55, Perttu Ahola <celeron55@gmail.com>
4 Copyright (C) 2011 Ciaran Gultnieks <ciaran@ciarang.com>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #ifndef GUIPASSWORDCHANGE_HEADER
22 #define GUIPASSWORDCHANGE_HEADER
23
24 #include "common_irrlicht.h"
25 #include "modalMenu.h"
26 #include "utility.h"
27 #include "client.h"
28 #include <string>
29
30 class GUIPasswordChange : public GUIModalMenu
31 {
32 public:
33         GUIPasswordChange(gui::IGUIEnvironment* env,
34                         gui::IGUIElement* parent, s32 id,
35                         IMenuManager *menumgr,
36                         Client* client);
37         ~GUIPasswordChange();
38         
39         void removeChildren();
40         /*
41                 Remove and re-add (or reposition) stuff
42         */
43         void regenerateGui(v2u32 screensize);
44
45         void drawMenu();
46
47         bool acceptInput();
48
49         bool OnEvent(const SEvent& event);
50         
51 private:
52         Client* m_client;
53
54 };
55
56 #endif
57