summaryrefslogtreecommitdiff
path: root/support/dktools/WxdkdrawDlgOptionsScreen.h
blob: 86f99909c05131ab10508efae82d383c5e9bead2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/*
Copyright (C) 2020-2020, Dirk Krause
SPDX-License-Identifier: BSD-3-Clause
*/

/*
	WARNING: This file was generated by the dkct program (see
	http://dktools.sourceforge.net/ for details).
	Changes you make here will be lost if dkct is run again!
	You should modify the original source and run dkct on it.
	Original source: WxdkdrawDlgOptionsScreen.wxc
*/

/**	@file WxdkdrawDlgOptionsScreen.h Header file for the WxdkdrawDlgOptionsScreen module.
*/

#ifndef WXDKDRAWDLGOPTIONSSCREEN_H_INCLUDED
/** Avoid multiple inclusions. */
#define WXDKDRAWDLGOPTIONSSCREEN_H_INCLUDED 1


#line 84 "WxdkdrawDlgOptionsScreen.wxc"

#ifndef	WXDKDRAW_H_INCLUDED
#include "wxdkdraw.h"
#endif

#ifndef	WXDKDRAWFRAME_H_INCLUDED
#include "WxdkdrawFrame.h"
#endif


#line 94 "WxdkdrawDlgOptionsScreen.wxc"

/**	Dialog to change dot details.
*/
class WxdkdrawDlgOptionsScreen : public wxDialog
{
	private:

		/** Events to process.
		*/
#if	wxCHECK_VERSION(3,0,0)
		wxDECLARE_EVENT_TABLE();
#else
		DECLARE_EVENT_TABLE()
#endif

    /**	Flag: GUI ok.
    */
    bool dkctGUILayoutOK;

    /**	GUI element sizerHorizontal.
    */
#line 11 "WxdkdrawDlgOptionsScreen.wxc"
    wxBoxSizer *sizerHorizontal;

    /**	GUI element sizerVertical.
    */
#line 17 "WxdkdrawDlgOptionsScreen.wxc"
    wxBoxSizer *sizerVertical;

    /**	GUI element sizerContents.
    */
#line 25 "WxdkdrawDlgOptionsScreen.wxc"
    wxGridBagSizer *sizerContents;

    /**	GUI element sizerButtons.
    */
#line 67 "WxdkdrawDlgOptionsScreen.wxc"
    wxStdDialogButtonSizer *sizerButtons;

    /**	GUI element lTexts.
    */
#line 38 "WxdkdrawDlgOptionsScreen.wxc"
    wxStaticText *lTexts;

    /**	GUI element cbTexts.
    */
#line 41 "WxdkdrawDlgOptionsScreen.wxc"
    wxCheckBox *cbTexts;

    /**	GUI element lSplines.
    */
#line 46 "WxdkdrawDlgOptionsScreen.wxc"
    wxStaticText *lSplines;

    /**	GUI element lSubsegs.
    */
#line 49 "WxdkdrawDlgOptionsScreen.wxc"
    wxStaticText *lSubsegs;

    /**	GUI element spSubsegs.
    */
#line 52 "WxdkdrawDlgOptionsScreen.wxc"
    wxSpinCtrl *spSubsegs;

    /**	GUI element lPointMoveOps.
    */
#line 58 "WxdkdrawDlgOptionsScreen.wxc"
    wxStaticText *lPointMoveOps;

    /**	GUI element cbPointMoveOps.
    */
#line 61 "WxdkdrawDlgOptionsScreen.wxc"
    wxCheckBox *cbPointMoveOps;

    /**	GUI element buttonOK.
    */
#line 72 "WxdkdrawDlgOptionsScreen.wxc"
    wxButton *buttonOK;

    /**	GUI element buttonCancel.
    */
#line 77 "WxdkdrawDlgOptionsScreen.wxc"
    wxButton *buttonCancel;


#line 110 "WxdkdrawDlgOptionsScreen.wxc"

	protected:

		/**	Red colour for group titles.
		*/
		wxColour					 m_oColourRed;

		/**	Parent frame.
		*/
		WxdkdrawFrame				*m_pParent;

		/**	Drawing control to refresh on changes.
		*/
		wxControl					*m_pControl;

		/**	Entire drawing.
		*/
		Wxd_drawing_t				*m_pDrw;

		/**	Localized text fragments.
		*/
		wxChar const * const		*m_sTexts;

		/**	Address of subsegments variable.
		*/
		int							*m_pSubsegs;

		/**	Address of exact fonts variable.
		*/
		int							*m_pExact;

		/**	Address of variable for markup reduction.
		*/
		int							*m_pReduceMarkup;

		/**	Initial value for number of subsegments.
		*/
		int							 m_iSubsegments;

		/**	Initial value for exact font flag.
		*/
		int							 m_iExact;

		/**	Initial value for markup reduction.
		*/
		int							 m_iReduceMarkup;

	public:

		/**	Control events.
		*/
		enum {
			WXD_ID_SUBSEGS	= (wxID_HIGHEST + 1),	/**< Subsegs changed. */
			WXD_ID_EXACT ,							/**< Use exact fonts. */
			WXD_ID_POINT_OPS ,						/**< Reduce markup. */
		};

		/**	Constructor.
			@param	pParent		Parent frame (programs main window).
			@param	pControl	Drawing control.
			@param	pDrw		Drawing.
			@param	pSubsegs	Address of sub-segments variable.
			@param	pExact		Address of exact font variables.
			@param	pReduce		Address of variable to reduce markup.
			@param	pTexts		Localized text fragments.
		*/
		WxdkdrawDlgOptionsScreen(
			WxdkdrawFrame			*pParent,
			wxControl				*pControl,
			Wxd_drawing_t			*pDrw,
			int						*pSubsegs,
			int						*pExact,
			int						*pReduce,
			wxChar const * const	*pTexts
		);

		/**	OK button handler.
			@param	event	Event to process.
		*/
		void
		OnOK(wxCommandEvent & event);

		/**	Cancel button handler.
			@param	event	Event to process.
		*/
		void
		OnCancel(wxCommandEvent & event);

		/**	Subsegs spin control handler.
			@param	event	Event to process.
		*/
		void
		OnSubsegs(wxSpinEvent & event);

		/**	Handler for checkbox change.
			@param	event	Event to process.
		*/
		void
		OnFontExact(wxCommandEvent & event);

		/**	Handler for reduce markup checkbox change.
			@param	event	Event to process.
		*/
		void
		OnMarkupReduce(wxCommandEvent & event);

};



#line 220 "WxdkdrawDlgOptionsScreen.wxc"



#endif