1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/dialog.h
3 // Purpose: wxDialog class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 class WXDLLIMPEXP_FWD_CORE wxEventLoop
;
17 class WXDLLIMPEXP_CORE wxDialog
: public wxDialogBase
22 wxDialog(wxWindow
*parent
, wxWindowID id
,
23 const wxString
& title
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
,
26 long style
= wxDEFAULT_DIALOG_STYLE
,
27 const wxString
& name
= wxDialogNameStr
)
29 Create(parent
, id
, title
, pos
, size
, style
, name
);
32 bool Create(wxWindow
*parent
, wxWindowID id
,
33 const wxString
& title
,
34 const wxPoint
& pos
= wxDefaultPosition
,
35 const wxSize
& size
= wxDefaultSize
,
36 long style
= wxDEFAULT_DIALOG_STYLE
,
37 const wxString
& name
= wxDialogNameStr
);
41 virtual bool Destroy();
43 virtual bool Show(bool show
= true);
45 void SetTitle(const wxString
& title
);
47 void SetModal(bool flag
);
49 virtual bool IsModal() const
50 { return m_modalShowing
; }
52 virtual int ShowModal();
53 virtual void EndModal(int retCode
);
56 virtual void ChangeFont(bool keepOriginalSize
= true);
57 virtual void ChangeBackgroundColour();
58 virtual void ChangeForegroundColour();
59 WXWidget
GetTopWidget() const { return m_mainWidget
; }
60 WXWidget
GetClientWidget() const { return m_mainWidget
; }
63 virtual bool XmDoCreateTLW(wxWindow
* parent
,
65 const wxString
& title
,
69 const wxString
& name
);
74 wxEventLoop
* m_eventLoop
;
77 virtual void DoSetSize(int x
, int y
,
78 int width
, int height
,
79 int sizeFlags
= wxSIZE_AUTO
);
81 virtual void DoSetClientSize(int width
, int height
);
85 DECLARE_DYNAMIC_CLASS(wxDialog
)
88 #endif // _WX_DIALOG_H_