]>
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_
16 #pragma interface "dialogbase.h"
22 class WXDLLEXPORT wxDialogBase
: public wxPanel
28 // the modal dialogs have a return code - usually the id of the last
30 void SetReturnCode(int returnCode
) { m_returnCode
= returnCode
; }
31 int GetReturnCode() const { return m_returnCode
; }
33 #if wxUSE_STATTEXT && wxUSE_TEXTCTRL
34 // splits text up at newlines and places the
35 // lines into a vertical wxBoxSizer
36 wxSizer
*CreateTextSizer( const wxString
&message
);
37 #endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
40 // places buttons into a horizontal wxBoxSizer
41 wxSizer
*CreateButtonSizer( long flags
);
42 #endif // wxUSE_BUTTON
45 // the return code from modal dialog
49 #if defined(__WXMSW__)
50 #include "wx/msw/dialog.h"
51 #elif defined(__WXMOTIF__)
52 #include "wx/motif/dialog.h"
53 #elif defined(__WXGTK__)
54 #include "wx/gtk/dialog.h"
55 #elif defined(__WXMGL__)
56 #include "wx/mgl/dialog.h"
57 // FIXME_MGL -- belongs to wxUniv
58 #elif defined(__WXQT__)
59 #include "wx/qt/dialog.h"
60 #elif defined(__WXMAC__)
61 #include "wx/mac/dialog.h"
62 #elif defined(__WXPM__)
63 #include "wx/os2/dialog.h"
64 #elif defined(__WXSTUBS__)
65 #include "wx/stubs/dialog.h"