]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dialog.h
Updated Scintilla to 1.52 (on the trunk this time too)
[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 #if defined(__GNUG__) && !defined(__APPLE__)
16 #pragma interface "dialogbase.h"
17 #endif
18
19 #include "wx/defs.h"
20 #include "wx/containr.h"
21 #include "wx/toplevel.h"
22
23 class WXDLLEXPORT wxDialogBase : public wxTopLevelWindow
24 {
25 public:
26 wxDialogBase() { Init(); }
27 virtual ~wxDialogBase() { }
28
29 void Init();
30
31 // the modal dialogs have a return code - usually the id of the last
32 // pressed button
33 void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
34 int GetReturnCode() const { return m_returnCode; }
35
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
41
42 #if wxUSE_BUTTON
43 // places buttons into a horizontal wxBoxSizer
44 wxSizer *CreateButtonSizer( long flags );
45 #endif // wxUSE_BUTTON
46
47 protected:
48 // the return code from modal dialog
49 int m_returnCode;
50
51 DECLARE_EVENT_TABLE()
52 WX_DECLARE_CONTROL_CONTAINER();
53 };
54
55
56 #if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
57 #include "wx/univ/dialog.h"
58 #else
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"
71 #endif
72 #endif
73
74 #endif
75 // _WX_DIALOG_H_BASE_