ScummVM API documentation
gui_dialog_defines.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//=============================================================================
23//
24// Constants for built-in GUI dialogs.
25//
26//=============================================================================
27
28#ifndef AGS_ENGINE_GUI_GUI_DIALOG_DEFINES_H
29#define AGS_ENGINE_GUI_GUI_DIALOG_DEFINES_H
30
31#include "ags/engine/ac/game_setup.h"
32#include "ags/globals.h"
33
34namespace AGS3 {
35
36#define MSG_RESTORE 984
37#define MSG_CANCEL 985 // "Cancel"
38#define MSG_SELECTLOAD 986 // "Select game to restore"
39#define MSG_SAVEBUTTON 987 // "Save"
40#define MSG_SAVEDIALOG 988 // "Save game name:"
41#define MSG_REPLACE 989 // "Replace"
42#define MSG_MUSTREPLACE 990 // "The folder is full. you must replace"
43#define MSG_REPLACEWITH1 991 // "Replace:"
44#define MSG_REPLACEWITH2 992 // "With:"
45#define MSG_QUITBUTTON 993 // "Quit"
46#define MSG_PLAYBUTTON 994 // "Play"
47#define MSG_QUITDIALOG 995 // "Do you want to quit?"
48
49#define TEXT_HT _GP(usetup).textheight
50
51/*#define COL251 26
52#define COL252 28
53#define COL253 29
54#define COL254 27
55#define COL255 24*/
56#define COL253 15
57#define COL254 7
58#define COL255 8
59
60// ========= DEFINES ========
61// Control types
62#define CNT_PUSHBUTTON 0x001
63#define CNT_LISTBOX 0x002
64#define CNT_LABEL 0x003
65#define CNT_TEXTBOX 0x004
66// Control properties
67#define CNF_DEFAULT 0x100
68#define CNF_CANCEL 0x200
69
70// Dialog messages
71#define CM_COMMAND 1
72#define CM_KEYPRESS 2
73#define CM_SELCHANGE 3
74// System messages
75#define SM_SAVEGAME 100
76#define SM_LOADGAME 101
77#define SM_QUIT 102
78// System messages (to ADVEN)
79#define SM_SETTRANSFERMEM 120
80#define SM_GETINIVALUE 121
81// System messages (to driver)
82#define SM_QUERYQUIT 110
83#define SM_KEYPRESS 111
84#define SM_TIMER 112
85// ListBox messages
86#define CLB_ADDITEM 1
87#define CLB_CLEAR 2
88#define CLB_GETCURSEL 3
89#define CLB_GETTEXT 4
90#define CLB_SETTEXT 5
91#define CLB_SETCURSEL 6
92// TextBox messages
93#define CTB_GETTEXT 1
94#define CTB_SETTEXT 2
95
96#define CTB_KEYPRESS 91
97
98namespace AGS {
99namespace Shared {
100class Bitmap;
101}
102}
103using namespace AGS; // FIXME later
104
105// ========= STRUCTS ========
106#ifdef OBSOLETE
107struct DisplayProperties {
108 int width;
109 int height;
110 int colors;
111 int textheight;
112};
113#endif // OBSOLETE
114
116 int code;
117 int id;
118 int wParam;
119};
120
122 int x, y;
123 int handle;
124 int oldtop;
125
127};
128
129} // namespace AGS3
130
131#endif
Definition: gui_dialog_defines.h:115
Definition: gui_dialog_defines.h:121