Added reload of levels on F7 (Update levelpack) to ease the test of changes.
[enigmagame.git] / src / gui / ErrorMenu.hh
blob43c0254a5c78840c17c08f6680fb21744d7e90d9
1 /*
2 * Copyright (C) 2006 Ronald Lamprecht
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #ifndef GUI_ERRORMENU_HH_INCLUDED
21 #define GUI_ERRORMENU_HH_INCLUDED
24 #include "gui/Menu.hh"
25 #include "ecl.hh"
27 namespace enigma { namespace gui {
28 class ErrorMenu : public Menu {
29 public:
30 ErrorMenu (std::string message, std::string quitTitle);
31 ErrorMenu (std::string message, std::string quitTitle, std::string rejectTitle);
32 ErrorMenu (std::string message, std::string quitTitle, std::string rejectTitle,
33 std::string laterTitle);
34 bool isRejectQuit();
35 bool isLaterQuit();
36 private:
37 bool on_event (const SDL_Event &e);
38 void on_action (gui::Widget *w);
39 void draw_background (ecl::GC &gc);
41 std::string text;
42 gui::Widget *quit;
43 gui::Widget *reject;
44 gui::Widget *later;
45 bool rejectQuit;
46 bool laterQuit;
48 }} // namespace enigma::gui
49 #endif // GUI_ERRORMENU_HH_INCLUDED