1999-06-29 08:34:18 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/dialog.h
|
|
|
|
// Purpose: wxDialogBase class
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 29.06.99
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Vadim Zeitlin
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_DIALOG_H_BASE_
|
|
|
|
#define _WX_DIALOG_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
1999-10-12 17:52:17 -04:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "dialogbase.h"
|
|
|
|
#endif
|
|
|
|
|
1999-06-28 18:04:40 -04:00
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/panel.h"
|
|
|
|
|
1999-06-28 17:39:49 -04:00
|
|
|
class WXDLLEXPORT wxDialogBase : public wxPanel
|
|
|
|
{
|
1999-06-29 08:34:18 -04:00
|
|
|
public:
|
2001-07-15 14:47:13 -04:00
|
|
|
#ifdef __DARWIN__
|
|
|
|
~wxDialogBase() { }
|
2001-02-15 16:51:14 -05:00
|
|
|
#endif
|
1999-06-29 08:34:18 -04:00
|
|
|
// the modal dialogs have a return code - usually the id of the last
|
|
|
|
// pressed button
|
|
|
|
void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
|
|
|
|
int GetReturnCode() const { return m_returnCode; }
|
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#if wxUSE_STATTEXT && wxUSE_TEXTCTRL
|
1999-08-11 07:53:40 -04:00
|
|
|
// splits text up at newlines and places the
|
|
|
|
// lines into a vertical wxBoxSizer
|
|
|
|
wxSizer *CreateTextSizer( const wxString &message );
|
2001-06-26 16:59:19 -04:00
|
|
|
#endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
|
1999-08-11 07:53:40 -04:00
|
|
|
|
2001-06-26 16:59:19 -04:00
|
|
|
#if wxUSE_BUTTON
|
1999-08-11 07:53:40 -04:00
|
|
|
// places buttons into a horizontal wxBoxSizer
|
|
|
|
wxSizer *CreateButtonSizer( long flags );
|
2001-06-26 16:59:19 -04:00
|
|
|
#endif // wxUSE_BUTTON
|
1999-06-29 08:34:18 -04:00
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
protected:
|
1999-06-29 08:34:18 -04:00
|
|
|
// the return code from modal dialog
|
|
|
|
int m_returnCode;
|
1999-06-28 17:39:49 -04:00
|
|
|
};
|
|
|
|
|
1998-07-10 10:15:17 -04:00
|
|
|
#if defined(__WXMSW__)
|
1999-06-28 17:39:49 -04:00
|
|
|
#include "wx/msw/dialog.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXMOTIF__)
|
1999-06-28 17:39:49 -04:00
|
|
|
#include "wx/motif/dialog.h"
|
1998-07-10 10:15:17 -04:00
|
|
|
#elif defined(__WXGTK__)
|
1999-06-28 17:39:49 -04:00
|
|
|
#include "wx/gtk/dialog.h"
|
2001-06-26 16:59:19 -04:00
|
|
|
#elif defined(__WXMGL__)
|
|
|
|
#include "wx/mgl/dialog.h"
|
|
|
|
// FIXME_MGL -- belongs to wxUniv
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXMAC__)
|
1999-06-28 17:39:49 -04:00
|
|
|
#include "wx/mac/dialog.h"
|
1999-07-27 23:38:12 -04:00
|
|
|
#elif defined(__WXPM__)
|
|
|
|
#include "wx/os2/dialog.h"
|
1998-08-14 20:23:28 -04:00
|
|
|
#elif defined(__WXSTUBS__)
|
1999-06-28 17:39:49 -04:00
|
|
|
#include "wx/stubs/dialog.h"
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
1998-08-14 20:23:28 -04:00
|
|
|
// _WX_DIALOG_H_BASE_
|