ScummVM API documentation
usercfg.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 HODJNPODJ_FUGE_USERCFG_H
23#define HODJNPODJ_FUGE_USERCFG_H
24
25#include "bagel/afxwin.h"
26#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
27#include "bagel/hodjnpodj/hnplibs/stdinc.h"
28
29namespace Bagel {
30namespace HodjNPodj {
31namespace Fuge {
32
33#define IDD_USERCFG 100
34
35#define BALLS_MIN 1
36#define BALLS_DEF 5
37#define BALLS_MAX 5
38
39#define LEVEL_MIN 1
40#define LEVEL_DEF 6
41#define LEVEL_MAX 6
42
43#define SPEED_MIN 1
44#define SPEED_DEF 6
45#define SPEED_MAX 10
46
47#define PSIZE_MIN 0
48#define PSIZE_DEF 2
49#define PSIZE_MAX 2
50
51#define GFORCE_MIN 0
52#define GFORCE_DEF 0
53#define GFORCE_MAX 20
54
55class CUserCfgDlg : public CBmpDialog {
56public:
57 CUserCfgDlg(CWnd *pParent, CPalette *pPalette, unsigned int);
58
59protected:
60
61 virtual void DoDataExchange(CDataExchange *) override;
62 virtual bool OnCommand(WPARAM, LPARAM) override;
63 virtual bool OnInitDialog() override;
64 void PutDlgData();
65 void GetDlgData();
66 void LoadIniSettings();
67 void SaveIniSettings();
68 void UpdateOptions();
69 void ClearDialogImage();
70
71 afx_msg bool OnEraseBkgnd(CDC *);
72 void OnHScroll(unsigned int, unsigned int, CScrollBar *);
73 void OnClose();
74 void OnDestroy();
75 void OnPaint();
76 DECLARE_MESSAGE_MAP()
77
78 CText *m_pTxtNumBalls = nullptr;
79 CText *m_pTxtStartLevel = nullptr;
80 CText *m_pTxtBallSpeed = nullptr;
81 CText *m_pTxtPaddleSize = nullptr;
82 CScrollBar *m_pScrollBar1 = nullptr;
83 CScrollBar *m_pScrollBar2 = nullptr;
84 CScrollBar *m_pScrollBar3 = nullptr;
85 CScrollBar *m_pScrollBar4 = nullptr;
86 CCheckButton *m_pWallButton = nullptr;
87
88 int m_nNumBalls = 0;
89 int m_nStartLevel = 0;
90 int m_nBallSpeed = 0;
91 int m_nPaddleSize = 0;
92 bool m_bOutterWall = false;
93
94 bool m_bSave = false; // True if should save theses values
95};
96
97} // namespace Fuge
98} // namespace HodjNPodj
99} // namespace Bagel
100
101#endif
Definition: cbofdlg.h:31
Definition: button.h:180
Definition: text.h:62
Definition: usercfg.h:55
Definition: afxwin.h:721
Definition: afxwin.h:667
Definition: afxwin.h:1765
Definition: afxwin.h:1141
Definition: minwindef.h:292