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