]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dialog.h
Win16 cursor/icon functions are not needed any longer
[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
af49c4b8 15#if defined(__GNUG__) && !defined(__APPLE__)
1b68e0b5
RR
16 #pragma interface "dialogbase.h"
17#endif
18
9f3a38fc 19#include "wx/defs.h"
7d9f12f3
VS
20#include "wx/containr.h"
21#include "wx/toplevel.h"
9f3a38fc 22
7d9f12f3 23class WXDLLEXPORT wxDialogBase : public wxTopLevelWindow
c50f1fb9 24{
dfe1eee3 25public:
7d9f12f3 26 wxDialogBase() { Init(); }
82c9f85c
VZ
27 virtual ~wxDialogBase() { }
28
7d9f12f3 29 void Init();
82c9f85c 30
dfe1eee3
VZ
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
1e6feb95 36#if wxUSE_STATTEXT && wxUSE_TEXTCTRL
92afa2b1
RR
37 // splits text up at newlines and places the
38 // lines into a vertical wxBoxSizer
39 wxSizer *CreateTextSizer( const wxString &message );
1e6feb95 40#endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
82c9f85c 41
1e6feb95 42#if wxUSE_BUTTON
92afa2b1
RR
43 // places buttons into a horizontal wxBoxSizer
44 wxSizer *CreateButtonSizer( long flags );
1e6feb95 45#endif // wxUSE_BUTTON
dfe1eee3 46
f6bcfd97 47protected:
dfe1eee3
VZ
48 // the return code from modal dialog
49 int m_returnCode;
7d9f12f3 50
7d9f12f3
VS
51 DECLARE_EVENT_TABLE()
52 WX_DECLARE_CONTROL_CONTAINER();
c50f1fb9
VZ
53};
54
7d9f12f3 55
c67d6888 56#if defined(__WXUNIVERSAL__) && !defined(__WXMICROWIN__)
0e0de6b8
VS
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"
e64df9bc
DE
67 #elif defined(__WXCOCOA__)
68 #include "wx/cocoa/dialog.h"
0e0de6b8
VS
69 #elif defined(__WXPM__)
70 #include "wx/os2/dialog.h"
0e0de6b8 71 #endif
c801d85f
KB
72#endif
73
74#endif
34138703 75 // _WX_DIALOG_H_BASE_