]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dialog.h
added more files (unchanged) from wxUniv branch
[wxWidgets.git] / include / wx / dialog.h
CommitLineData
dfe1eee3
VZ
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
34138703
JS
12#ifndef _WX_DIALOG_H_BASE_
13#define _WX_DIALOG_H_BASE_
c801d85f 14
1b68e0b5
RR
15#ifdef __GNUG__
16 #pragma interface "dialogbase.h"
17#endif
18
9f3a38fc
VZ
19#include "wx/defs.h"
20#include "wx/panel.h"
21
c50f1fb9
VZ
22class WXDLLEXPORT wxDialogBase : public wxPanel
23{
dfe1eee3 24public:
03e11df5
GD
25#ifdef __WXMAC_X__
26 ~wxDialogBase() {} // Added min for Mac X
27#endif
dfe1eee3
VZ
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
1e6feb95 33#if wxUSE_STATTEXT && wxUSE_TEXTCTRL
92afa2b1
RR
34 // splits text up at newlines and places the
35 // lines into a vertical wxBoxSizer
36 wxSizer *CreateTextSizer( const wxString &message );
1e6feb95 37#endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
92afa2b1 38
1e6feb95 39#if wxUSE_BUTTON
92afa2b1
RR
40 // places buttons into a horizontal wxBoxSizer
41 wxSizer *CreateButtonSizer( long flags );
1e6feb95 42#endif // wxUSE_BUTTON
dfe1eee3 43
f6bcfd97 44protected:
dfe1eee3
VZ
45 // the return code from modal dialog
46 int m_returnCode;
c50f1fb9
VZ
47};
48
2049ba38 49#if defined(__WXMSW__)
c50f1fb9 50 #include "wx/msw/dialog.h"
2049ba38 51#elif defined(__WXMOTIF__)
c50f1fb9 52 #include "wx/motif/dialog.h"
2049ba38 53#elif defined(__WXGTK__)
c50f1fb9 54 #include "wx/gtk/dialog.h"
1e6feb95
VZ
55#elif defined(__WXMGL__)
56 #include "wx/mgl/dialog.h"
57// FIXME_MGL -- belongs to wxUniv
b4e76e0d 58#elif defined(__WXQT__)
c50f1fb9 59 #include "wx/qt/dialog.h"
34138703 60#elif defined(__WXMAC__)
c50f1fb9 61 #include "wx/mac/dialog.h"
1777b9bb
DW
62#elif defined(__WXPM__)
63 #include "wx/os2/dialog.h"
34138703 64#elif defined(__WXSTUBS__)
c50f1fb9 65 #include "wx/stubs/dialog.h"
c801d85f
KB
66#endif
67
68#endif
34138703 69 // _WX_DIALOG_H_BASE_