summaryrefslogtreecommitdiff
path: root/support/dktools/WxdkdrawDlgFillStyle.h
blob: 08911c69d7162ceebba20b6f26f1c8722e2b7ba7 (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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
/*
Copyright (C) 2019-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: WxdkdrawDlgFillStyle.wxc
*/

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

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


#line 179 "WxdkdrawDlgFillStyle.wxc"

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

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


#line 189 "WxdkdrawDlgFillStyle.wxc"

/**	Dialog to modify fill style.
*/
class WxdkdrawDlgFillStyle : public wxDialog
{

	private:

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

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

		/**	Object to modify.
		*/
		Wxd_object_t	*m_pObject;

		/**	Selected fill style.
		*/
		uint8_t			m_uFillStyleCurrent;

		/**	Original fill style when starting dialog.
		*/
		uint8_t			m_uFillStyleOriginal;

		/**	Is drawing element (true) or default style object (false).
		*/
		bool			m_bDrwElem;

	public:

		/**	Window IDs for buttons.
		*/
		enum {
			WXD_ID_FS_NONE = (wxID_HIGHEST + 1),	/**< No fill. */
			WXD_ID_FS_PURE ,			/**< Pure colour fill. */
			WXD_ID_FS_LEFT_DIAG_30 ,	/**< 30 degree diagonal left lines. */
			WXD_ID_FS_RIGHT_DIAG_30 ,	/**< 30 degree diagonal right lines. */
			WXD_ID_FS_SIEVE_30 ,		/**< 30 degree diagonal sieve. */
			WXD_ID_FS_LEFT_DIAG_45 ,	/**< 45 degree diagonal left lines. */
			WXD_ID_FS_RIGHT_DIAG_45 ,	/**< 45 degree diagonal right lines. */
			WXD_ID_FS_SIEVE_45 ,		/**< 45 degree diagonal sieve. */
			WXD_ID_FS_BRICKS_HOR ,		/**< Horizontal bricks. */
			WXD_ID_FS_BRICKS_VER ,		/**< Vertical bricks. */
			WXD_ID_FS_LINES_HOR ,		/**< Horizontal lines. */
			WXD_ID_FS_LINES_VER ,		/**< Vertical lines. */
			WXD_ID_FS_SIEVE_HOR_VER ,	/**< Horizontal-vertical sieve. */
			WXD_ID_FS_SHINGLES_HOR_1 ,	/**< Horizontal shingles 1. */
			WXD_ID_FS_SHINGLES_HOR_2 ,	/**< Horizontal shingles 2. */
			WXD_ID_FS_SHINGLES_VER_1 ,	/**< Vertical shingles 1. */
			WXD_ID_FS_SHINGLES_VER_2 ,	/**< Vertical shingles 2. */
			WXD_ID_FS_FISH_SCALES_L ,	/**< Large fish scales. */
			WXD_ID_FS_FISH_SCALES_S ,	/**< Small fish scales. */
			WXD_ID_FS_CIRCLES ,			/**< Circles. */
			WXD_ID_FS_HEXAGONS ,		/**< Hexagons. */
			WXD_ID_FS_OCTAGONS ,		/**< Octagons. */
			WXD_ID_FS_TIRES_HOR ,		/**< Horizontal tire treads. */
			WXD_ID_FS_TIRES_VER			/**< Vertical tire treads. */
		};

		/**	Constructor.
			@param	pParent		Applications main frame.
			@param	pObject		Object to modify.
			@param	pTexts		Localized text fragments.
			@param	pImages		Images for line style buttons.
			@param	bDrwElem	Is drawing element (true) or default (false).
		*/
		WxdkdrawDlgFillStyle(
			WxdkdrawFrame			*pParent,
			Wxd_object_t			*pObject,
			wxChar const * const	*pTexts,
			const char ** const		*pImages,
			bool					 bDrwElem
		);

		/**	Handler for fill style buttons.
			@param	event	Event to process.
		*/
		void
		OnFillStyle(wxCommandEvent & event);

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

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

    /**	GUI element sizerHorizontal.
    */
#line 12 "WxdkdrawDlgFillStyle.wxc"
    wxBoxSizer *sizerHorizontal;

    /**	GUI element sizerVertical.
    */
#line 18 "WxdkdrawDlgFillStyle.wxc"
    wxBoxSizer *sizerVertical;

    /**	GUI element sizerContents.
    */
#line 26 "WxdkdrawDlgFillStyle.wxc"
    wxGridBagSizer *sizerContents;

    /**	GUI element buttonCancel.
    */
#line 173 "WxdkdrawDlgFillStyle.wxc"
    wxButton *buttonCancel;

    /**	GUI element b00.
    */
#line 53 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b00;

    /**	GUI element b01.
    */
#line 58 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b01;

    /**	GUI element b02.
    */
#line 63 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b02;

    /**	GUI element b03.
    */
#line 68 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b03;

    /**	GUI element b04.
    */
#line 73 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b04;

    /**	GUI element b05.
    */
#line 78 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b05;

    /**	GUI element b06.
    */
#line 83 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b06;

    /**	GUI element b07.
    */
#line 88 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b07;

    /**	GUI element b08.
    */
#line 93 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b08;

    /**	GUI element b09.
    */
#line 98 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b09;

    /**	GUI element b10.
    */
#line 103 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b10;

    /**	GUI element b11.
    */
#line 108 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b11;

    /**	GUI element b12.
    */
#line 113 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b12;

    /**	GUI element b13.
    */
#line 118 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b13;

    /**	GUI element b14.
    */
#line 123 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b14;

    /**	GUI element b15.
    */
#line 128 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b15;

    /**	GUI element b16.
    */
#line 133 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b16;

    /**	GUI element b17.
    */
#line 138 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b17;

    /**	GUI element b18.
    */
#line 143 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b18;

    /**	GUI element b19.
    */
#line 148 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b19;

    /**	GUI element b20.
    */
#line 153 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b20;

    /**	GUI element b21.
    */
#line 158 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b21;

    /**	GUI element b22.
    */
#line 163 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b22;

    /**	GUI element b23.
    */
#line 168 "WxdkdrawDlgFillStyle.wxc"
    wxBitmapButton *b23;


#line 285 "WxdkdrawDlgFillStyle.wxc"
};



#line 289 "WxdkdrawDlgFillStyle.wxc"




#endif