modifications for compilation under Mac OS X
[wxWidgets.git] / include / wx / dialog.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dialog.h
3 // Purpose: wxDialogBase class
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 29.06.99
7 // RCS-ID: $Id$
8 // Copyright: (c) Vadim Zeitlin
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DIALOG_H_BASE_
13 #define _WX_DIALOG_H_BASE_
14
15 #ifdef __GNUG__
16 #pragma interface "dialogbase.h"
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/panel.h"
21
22 class WXDLLEXPORT wxDialogBase : public wxPanel
23 {
24 public:
25 #ifdef __WXMAC_X__
26 ~wxDialogBase() {} // Added min for Mac X
27 #endif
28 // the modal dialogs have a return code - usually the id of the last
29 // pressed button
30 void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
31 int GetReturnCode() const { return m_returnCode; }
32
33 // splits text up at newlines and places the
34 // lines into a vertical wxBoxSizer
35 wxSizer *CreateTextSizer( const wxString &message );
36
37 // places buttons into a horizontal wxBoxSizer
38 wxSizer *CreateButtonSizer( long flags );
39
40 protected:
41 // the return code from modal dialog
42 int m_returnCode;
43 };
44
45 #if defined(__WXMSW__)
46 #include "wx/msw/dialog.h"
47 #elif defined(__WXMOTIF__)
48 #include "wx/motif/dialog.h"
49 #elif defined(__WXGTK__)
50 #include "wx/gtk/dialog.h"
51 #elif defined(__WXQT__)
52 #include "wx/qt/dialog.h"
53 #elif defined(__WXMAC__)
54 #include "wx/mac/dialog.h"
55 #elif defined(__WXPM__)
56 #include "wx/os2/dialog.h"
57 #elif defined(__WXSTUBS__)
58 #include "wx/stubs/dialog.h"
59 #endif
60
61 #endif
62 // _WX_DIALOG_H_BASE_