]>
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 class WXDLLEXPORT wxDialogBase
: public wxTopLevelWindow
26 wxDialogBase() { Init(); }
27 virtual ~wxDialogBase() { }
31 // the modal dialogs have a return code - usually the id of the last
33 void SetReturnCode(int returnCode
) { m_returnCode
= returnCode
; }
34 int GetReturnCode() const { return m_returnCode
; }
36 #if wxUSE_STATTEXT && wxUSE_TEXTCTRL
37 // splits text up at newlines and places the
38 // lines into a vertical wxBoxSizer
39 wxSizer
*CreateTextSizer( const wxString
&message
);
40 #endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
43 // places buttons into a horizontal wxBoxSizer
44 wxSizer
*CreateButtonSizer( long flags
);
45 #endif // wxUSE_BUTTON
48 // the return code from modal dialog
52 WX_DECLARE_CONTROL_CONTAINER();
56 #if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
57 #include "wx/univ/dialog.h"
59 #if defined(__WXMSW__)
60 #include "wx/msw/dialog.h"
61 #elif defined(__WXMOTIF__)
62 #include "wx/motif/dialog.h"
63 #elif defined(__WXGTK__)
64 #include "wx/gtk/dialog.h"
65 #elif defined(__WXMAC__)
66 #include "wx/mac/dialog.h"
67 #elif defined(__WXCOCOA__)
68 #include "wx/cocoa/dialog.h"
69 #elif defined(__WXPM__)
70 #include "wx/os2/dialog.h"