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 
22 #ifndef TSAGE_DIALOGS_H
23 #define TSAGE_DIALOGS_H
24 
25 #include "tsage/events.h"
26 #include "tsage/graphics.h"
27 #include "common/list.h"
28 #include "common/rect.h"
29 #include "common/system.h"
30 
31 namespace TsAGE {
32 
33 class MessageDialog : public GfxDialog {
34 public:
35  GfxButton _btn1, _btn2;
36  GfxDialog _dialog;
37  GfxMessage _msg;
38 public:
39  MessageDialog(const Common::String &message, const Common::String &btn1Message, const Common::String &btn2Message = Common::String());
40 
41  static int show(const Common::String &message, const Common::String &btn1Message, const Common::String &btn2Message = Common::String());
42  static int show2(const Common::String &message, const Common::String &btn1Message, const Common::String &btn2Message = Common::String());
43 };
44 
45 /*--------------------------------------------------------------------------*/
46 
47 class ModalDialog : public GfxDialog {
48 protected:
49  void drawFrame();
50 public:
51  void draw() override;
52 };
53 
54 /*--------------------------------------------------------------------------*/
55 
56 class SoundDialog {
57 public:
58  static void execute();
59 };
60 
61 } // End of namespace TsAGE
62 
63 #endif
Definition: str.h:59
Definition: graphics.h:318
Definition: dialogs.h:56
Definition: dialogs.h:33
Definition: blueforce_dialogs.h:30
Definition: graphics.h:237
Definition: graphics.h:222
Definition: dialogs.h:47