]>
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_
18 class WXDLLEXPORT wxDialogBase
: public wxPanel
21 // the modal dialogs have a return code - usually the id of the last
23 void SetReturnCode(int returnCode
) { m_returnCode
= returnCode
; }
24 int GetReturnCode() const { return m_returnCode
; }
27 // splits text up at newlines and places the
28 // lines into a vertical wxBoxSizer
29 wxSizer
*CreateTextSizer( const wxString
&message
);
31 // places buttons into a horizontal wxBoxSizer
32 wxSizer
*CreateButtonSizer( long flags
);
34 // the return code from modal dialog
38 #if defined(__WXMSW__)
39 #include "wx/msw/dialog.h"
40 #elif defined(__WXMOTIF__)
41 #include "wx/motif/dialog.h"
42 #elif defined(__WXGTK__)
43 #include "wx/gtk/dialog.h"
44 #elif defined(__WXQT__)
45 #include "wx/qt/dialog.h"
46 #elif defined(__WXMAC__)
47 #include "wx/mac/dialog.h"
48 #elif defined(__WXPM__)
49 #include "wx/os2/dialog.h"
50 #elif defined(__WXSTUBS__)
51 #include "wx/stubs/dialog.h"