blob: a649c19172dd11354e4149621f24361764d7e6af (
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
|
// $Id$
// wxAutoDialog.h
#ifndef i_wxAutoDialog_h
#define i_wxAutoDialog_h
template <class D>
class WxAutoDialog
{
public:
explicit WxAutoDialog( D* dialog) throw():dialog( dialog) {}
~WxAutoDialog() throw() { dialog->Destroy(); }
D* operator->() const throw() { return dialog; }
protected:
D* dialog;
private:
// Unimplemented
WxAutoDialog( const WxAutoDialog<D>&);
WxAutoDialog<D>& operator=( const WxAutoDialog<D>&);
};
#endif
|