ScummVM API documentation
dialogs.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef SCUMM_INSANE_MORTIMER_DIALOGS_H
22 #define SCUMM_INSANE_MORTIMER_DIALOGS_H
23 
24 #include "gui/dialog.h"
25 #include "engines/savestate.h"
26 
27 namespace GUI {
28 class PopUpWidget;
29 class EditTextWidget;
30 class RadiobuttonGroup;
31 }
32 
33 namespace Scumm {
34 
36 public:
37  MortimerDifficultyDialog(bool isDemo, uint flightDifficulty, uint riddleDifficulty, bool girl = false, bool newPilot = false);
38  ~MortimerDifficultyDialog() override;
39  uint flightDifficulty() const;
40  uint riddleDifficulty() const;
41  bool girl() const;
42  Common::String pilotName() const;
43  void reflowLayout() override;
44 
45 protected:
46  void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) override;
47 
48 private:
49  GUI::RadiobuttonGroup *_flight, *_riddle;
50  GUI::RadiobuttonGroup *_character;
51  GUI::EditTextWidget *_pilotName;
52 };
53 
55 public:
56  enum { kStartPilot = 1, kViewHighScores = 2, kNewPilot = 100 };
57  explicit MortimerPilotDialog(const SaveStateList &pilots);
58  int selectedPilot() const;
59  void reflowLayout() override;
60 
61 protected:
62  void handleCommand(GUI::CommandSender *sender, uint32 cmd, uint32 data) override;
63 
64 private:
65  GUI::PopUpWidget *_pilot;
66 };
67 
68 } // End of namespace Scumm
69 
70 #endif
Definition: str.h:59
Definition: widget.h:364
Definition: edittext.h:32
Definition: printman.h:30
Definition: dialog.h:49
Definition: dialogs.h:54
Definition: popup.h:39
Definition: actor.h:30
Definition: object.h:40
Definition: dialogs.h:35