summaryrefslogtreecommitdiff
path: root/support/dktools/DkWxDialog.cpt
blob: 139e260864a44e3566eb6c490c3afeb1f651259b (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
%%	options
copyright owner	=	Dirk Krause
copyright year	=	2017-xxxx
SPDX-License-Identifier:	BSD-3-Clause

%%	header

#include <dk3all.h>

#include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

/**	Base class for dialogs.
*/
class DkWxDialog : public wxDialog
{
  public:
    /**	Constructor.
    	@param	parent	Parent frame or dialog.
	@param	wid	Windows ID.
	@param	title	Dialog box title.
    */
    DkWxDialog(
      wxWindow		*parent,
      wxWindowID	 wid,
      wxChar const	*title
    );
};

%%	module

#include "dk3conf.h"
#include "DkWxDialog.h"



$!trace-include



DkWxDialog::DkWxDialog(
  wxWindow	*parent,
  wxWindowID	 wid,
  wxChar const	*title
) : wxDialog(
  parent,
  wid,
  title,
  wxDefaultPosition,
  wxDefaultSize,
  wxDEFAULT_DIALOG_STYLE
)
{
}