ScummVM API documentation
dev_dlg.h
1
2/* ScummVM - Graphic Adventure Engine
3 *
4 * ScummVM is the legal property of its developers, whose names
5 * are too numerous to list here. Please refer to the COPYRIGHT
6 * file distributed with this source distribution.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef BAGEL_BAGLIB_DEV_DLG_H
24#define BAGEL_BAGLIB_DEV_DLG_H
25
26#include "bagel/spacebar/baglib/storage_dev_win.h"
27#include "bagel/spacebar/boflib/gfx/text.h"
28
29namespace Bagel {
30namespace SpaceBar {
31
32#define ACH_GUESS_MAX_CHARS 40
33
34class CDevDlg : public CBagStorageDevDlg {
35private:
36 // for text entry:
37 char _achGuess[ACH_GUESS_MAX_CHARS];
38 CBofText *_guessText;
39 int _guessCount;
40 int _buttonX;
41 int _buttonY;
42 bool _useExtraFl;
43 CBofText *_titleText;
44
45public:
46 CDevDlg(int buttonX = -1, int buttonY = -1);
47 ~CDevDlg();
48
49 ErrorCode createWindow(const char *bmp, CBofWindow *wnd, CBofPalette *pal, CBofRect *rect, bool useExtraFl);
50 void paintText();
51 void setText(CBofString &, CBofRect *);
52 void onKeyHit(uint32 keyCode, uint32 repCount) override;
53
54 void onMouseMove(uint32 flags, CBofPoint *point, void * = nullptr) override;
55 void onLButtonUp(uint32 flags, CBofPoint *point, void * = nullptr) override;
56 void onClose() override;
57 ErrorCode onRender(CBofBitmap *bmp, CBofRect *rect = nullptr) override;
58};
59
60} // namespace SpaceBar
61} // namespace Bagel
62
63#endif
Definition: point.h:32
Definition: rect.h:35
Definition: string.h:38
Definition: storage_dev_win.h:486
Definition: bitmap.h:57
Definition: palette.h:64
Definition: text.h:125
Definition: window.h:53
Definition: dev_dlg.h:34