summaryrefslogtreecommitdiff
path: root/support/dktools/WxdkdrawDlgArrowType.h
blob: 63e5901bf6fa4658c67ba1b1d1f8095363f45aec (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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
/*
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: WxdkdrawDlgArrowType.wxc
*/

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

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


#line 187 "WxdkdrawDlgArrowType.wxc"

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

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



#line 198 "WxdkdrawDlgArrowType.wxc"

/**	The arrow type dialog lets the user choose the arrow type.
*/
class WxdkdrawDlgArrowType : public wxDialog
{

	private:

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

	protected:

		/**	Program main window.
		*/
		WxdkdrawFrame	*m_pParent;

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

		/**	Current arrow type in dialog.
		*/
		uint8_t			 m_uArrowTypeCurrent;

		/**	Original arrow type when opening dialog.
		*/
		uint8_t			 m_uArrowTypeOriginal;

		/**	Modify backward arrowhead (true) or forward arrowhead (false).
		*/
		bool			 m_bBackward;

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

	public:

		/**	Window IDs for arrow type buttons.
		*/
		enum {
			WXD_AT_ID_NONE	= (wxID_HIGHEST + 1),	/**< No arrow. */
			WXD_AT_ID_N_STROKE ,			/**< Normal, stroked. */
			WXD_AT_ID_N_WHITE ,				/**< Normal, white filled. */
			WXD_AT_ID_N_FILLED ,			/**< Normal, colour filled. */
			WXD_AT_ID_N_HALF_FILLED_LEFT ,	/**< Normal, left half filled. */
			WXD_AT_ID_N_HALF_FILLED_RIGHT ,	/**< Normal, right half filled. */
			WXD_AT_ID_I_WHITE ,				/**< Indented, white filled. */
			WXD_AT_ID_I_FILLED ,			/**< Indented, colour filled. */
			WXD_AT_ID_I_HALF_FILLED_LEFT ,	/**< Indented, left half. */
			WXD_AT_ID_I_HALF_FILLED_RIGHT ,	/**< Indented, right half. */
			WXD_AT_ID_B_WHITE ,				/**< Butted, white filled. */
			WXD_AT_ID_B_FILLED ,			/**< Butted, colour filled. */
			WXD_AT_ID_B_HALF_FILLED_LEFT ,	/**< Butted, left half. */
			WXD_AT_ID_B_HALF_FILLED_RIGHT ,	/**< Butted, right half. */
			WXD_AT_ID_RA_WHITE ,			/**< Raute, white filled. */
			WXD_AT_ID_RA_FILLED ,			/**< Raute, colour filled. */
			WXD_AT_ID_RA_HALF_FILLED_LEFT ,	/**< Raute, left half. */
			WXD_AT_ID_RA_HALF_FILLED_RIGHT,	/**< Raute, right half. */
			WXD_AT_ID_RE_WHITE ,			/**< Rectangle, white filled. */
			WXD_AT_ID_RE_FILLED ,			/**< Rectangle, colour filled. */
			WXD_AT_ID_RE_HALF_FILLED_LEFT ,	/**< Rectangle, left half. */
			WXD_AT_ID_RE_HALF_FILLED_RIGHT,	/**< Rectangle, right half. */
			WXD_AT_ID_RE_STROKE,			/**< Rectangle, stroked. */
			WXD_AT_ID_T_WHITE ,				/**< Triangle, white filled. */
			WXD_AT_ID_T_FILLED ,			/**< Triangle, colour filled. */
			WXD_AT_ID_T_HALF_FILLED_LEFT ,	/**< Triangle, left half. */
			WXD_AT_ID_T_HALF_FILLED_RIGHT ,	/**< Triangle, right half. */
			WXD_AT_ID_C_WHITE ,				/**< Circle, white filled. */
			WXD_AT_ID_C_FILLED ,			/**< Circle, colour filled. */
			WXD_AT_ID_T_STROKE				/**< T stroke over line end. */
		};

		/**	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	Modify drawing element (or default style).
			@param	bBackward	Modify backward arrow (or forward).
		*/
		WxdkdrawDlgArrowType(
			WxdkdrawFrame			*pParent,
			Wxd_object_t			*pObject,
			wxChar const * const	*pTexts,
			const char ** const		*pImages,
			bool					 bDrwElem,
			bool					 bBackward
		);

		/**	Handler for arrow type buttons.
			@param	event	Event to process.
		*/
		void
		OnArrowType(wxCommandEvent & event);

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

#if	0

		/**	Retrieve arrow type.
			@return	Arrow type selected in dialog.
		*/
		uint8_t
		GetArrowType(void) const;

#endif


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

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

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

    /**	GUI element sizerButtons.
    */
#line 26 "WxdkdrawDlgArrowType.wxc"
    wxGridBagSizer *sizerButtons;

    /**	GUI element buttonCancel.
    */
#line 179 "WxdkdrawDlgArrowType.wxc"
    wxButton *buttonCancel;

    /**	GUI element b00.
    */
#line 59 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b00;

    /**	GUI element b01.
    */
#line 63 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b01;

    /**	GUI element b02.
    */
#line 67 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b02;

    /**	GUI element b03.
    */
#line 71 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b03;

    /**	GUI element b04.
    */
#line 75 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b04;

    /**	GUI element b05.
    */
#line 79 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b05;

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

    /**	GUI element b07.
    */
#line 87 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b07;

    /**	GUI element b08.
    */
#line 91 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b08;

    /**	GUI element b09.
    */
#line 95 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b09;

    /**	GUI element b10.
    */
#line 99 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b10;

    /**	GUI element b11.
    */
#line 103 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b11;

    /**	GUI element b12.
    */
#line 107 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b12;

    /**	GUI element b13.
    */
#line 111 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b13;

    /**	GUI element b14.
    */
#line 115 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b14;

    /**	GUI element b15.
    */
#line 119 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b15;

    /**	GUI element b16.
    */
#line 123 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b16;

    /**	GUI element b17.
    */
#line 127 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b17;

    /**	GUI element b18.
    */
#line 131 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b18;

    /**	GUI element b19.
    */
#line 135 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b19;

    /**	GUI element b20.
    */
#line 139 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b20;

    /**	GUI element b21.
    */
#line 143 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b21;

    /**	GUI element b22.
    */
#line 147 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b22;

    /**	GUI element b23.
    */
#line 151 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b23;

    /**	GUI element b24.
    */
#line 155 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b24;

    /**	GUI element b25.
    */
#line 159 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b25;

    /**	GUI element b26.
    */
#line 163 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b26;

    /**	GUI element b27.
    */
#line 167 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b27;

    /**	GUI element b28.
    */
#line 171 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b28;

    /**	GUI element b29.
    */
#line 175 "WxdkdrawDlgArrowType.wxc"
    wxBitmapButton *b29;


#line 318 "WxdkdrawDlgArrowType.wxc"
};



#line 322 "WxdkdrawDlgArrowType.wxc"


#endif