]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dialog.h
Added WXDLLEXPORT's to the class definitions
[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
9f3a38fc
VZ
15#include "wx/defs.h"
16#include "wx/panel.h"
17
c50f1fb9
VZ
18class WXDLLEXPORT wxDialogBase : public wxPanel
19{
dfe1eee3
VZ
20public:
21 // the modal dialogs have a return code - usually the id of the last
22 // pressed button
23 void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
24 int GetReturnCode() const { return m_returnCode; }
25
c50f1fb9 26protected:
92afa2b1
RR
27 // splits text up at newlines and places the
28 // lines into a vertical wxBoxSizer
29 wxSizer *CreateTextSizer( const wxString &message );
30
31 // places buttons into a horizontal wxBoxSizer
32 wxSizer *CreateButtonSizer( long flags );
dfe1eee3
VZ
33
34 // the return code from modal dialog
35 int m_returnCode;
c50f1fb9
VZ
36};
37
2049ba38 38#if defined(__WXMSW__)
c50f1fb9 39 #include "wx/msw/dialog.h"
2049ba38 40#elif defined(__WXMOTIF__)
c50f1fb9 41 #include "wx/motif/dialog.h"
2049ba38 42#elif defined(__WXGTK__)
c50f1fb9 43 #include "wx/gtk/dialog.h"
b4e76e0d 44#elif defined(__WXQT__)
c50f1fb9 45 #include "wx/qt/dialog.h"
34138703 46#elif defined(__WXMAC__)
c50f1fb9 47 #include "wx/mac/dialog.h"
1777b9bb
DW
48#elif defined(__WXPM__)
49 #include "wx/os2/dialog.h"
34138703 50#elif defined(__WXSTUBS__)
c50f1fb9 51 #include "wx/stubs/dialog.h"
c801d85f
KB
52#endif
53
54#endif
34138703 55 // _WX_DIALOG_H_BASE_