]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/dialog.h
column autosizing added
[wxWidgets.git] / include / wx / dialog.h
... / ...
CommitLineData
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
22class WXDLLEXPORT wxDialogBase : public wxPanel
23{
24public:
25 // the modal dialogs have a return code - usually the id of the last
26 // pressed button
27 void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
28 int GetReturnCode() const { return m_returnCode; }
29
30protected:
31 // splits text up at newlines and places the
32 // lines into a vertical wxBoxSizer
33 wxSizer *CreateTextSizer( const wxString &message );
34
35 // places buttons into a horizontal wxBoxSizer
36 wxSizer *CreateButtonSizer( long flags );
37
38 // the return code from modal dialog
39 int m_returnCode;
40};
41
42#if defined(__WXMSW__)
43 #include "wx/msw/dialog.h"
44#elif defined(__WXMOTIF__)
45 #include "wx/motif/dialog.h"
46#elif defined(__WXGTK__)
47 #include "wx/gtk/dialog.h"
48#elif defined(__WXQT__)
49 #include "wx/qt/dialog.h"
50#elif defined(__WXMAC__)
51 #include "wx/mac/dialog.h"
52#elif defined(__WXPM__)
53 #include "wx/os2/dialog.h"
54#elif defined(__WXSTUBS__)
55 #include "wx/stubs/dialog.h"
56#endif
57
58#endif
59 // _WX_DIALOG_H_BASE_