]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/dialog.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxDialogBase class
4 // Author: Vadim Zeitlin
8 // Copyright: (c) Vadim Zeitlin
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_DIALOG_H_BASE_
13 #define _WX_DIALOG_H_BASE_
15 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "dialogbase.h"
20 #include "wx/containr.h"
21 #include "wx/toplevel.h"
23 WXDLLEXPORT_DATA(extern const wxChar
*) wxDialogNameStr
;
25 class WXDLLEXPORT wxDialogBase
: public wxTopLevelWindow
28 wxDialogBase() { Init(); }
29 virtual ~wxDialogBase() { }
33 // the modal dialogs have a return code - usually the id of the last
35 void SetReturnCode(int returnCode
) { m_returnCode
= returnCode
; }
36 int GetReturnCode() const { return m_returnCode
; }
38 #if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
39 // splits text up at newlines and places the
40 // lines into a vertical wxBoxSizer
41 wxSizer
*CreateTextSizer( const wxString
&message
);
42 #endif // wxUSE_STATTEXT // && wxUSE_TEXTCTRL
45 // places buttons into a horizontal wxBoxSizer
46 wxSizer
*CreateButtonSizer( long flags
);
47 #endif // wxUSE_BUTTON
50 // the return code from modal dialog
54 WX_DECLARE_CONTROL_CONTAINER();
58 #if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
59 #include "wx/univ/dialog.h"
61 #if defined(__WXMSW__)
62 #include "wx/msw/dialog.h"
63 #elif defined(__WXMOTIF__)
64 #include "wx/motif/dialog.h"
65 #elif defined(__WXGTK__)
66 #include "wx/gtk/dialog.h"
67 #elif defined(__WXMAC__)
68 #include "wx/mac/dialog.h"
69 #elif defined(__WXCOCOA__)
70 #include "wx/cocoa/dialog.h"
71 #elif defined(__WXPM__)
72 #include "wx/os2/dialog.h"