1999-06-29 12:34:18 +00: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-15 00:23:28 +00:00
|
|
|
#ifndef _WX_DIALOG_H_BASE_
|
|
|
|
#define _WX_DIALOG_H_BASE_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
1999-10-12 21:52:17 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "dialogbase.h"
|
|
|
|
#endif
|
|
|
|
|
1999-06-28 22:04:40 +00:00
|
|
|
#include "wx/defs.h"
|
|
|
|
#include "wx/panel.h"
|
|
|
|
|
1999-06-28 21:39:49 +00:00
|
|
|
class WXDLLEXPORT wxDialogBase : public wxPanel
|
|
|
|
{
|
1999-06-29 12:34:18 +00:00
|
|
|
public:
|
2001-02-15 21:51:14 +00:00
|
|
|
#ifdef __WXMAC_X__
|
|
|
|
~wxDialogBase() {} // Added min for Mac X
|
|
|
|
#endif
|
1999-06-29 12:34:18 +00: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; }
|
|
|
|
|
1999-08-11 11:53:40 +00:00
|
|
|
// splits text up at newlines and places the
|
|
|
|
// lines into a vertical wxBoxSizer
|
|
|
|
wxSizer *CreateTextSizer( const wxString &message );
|
|
|
|
|
|
|
|
// places buttons into a horizontal wxBoxSizer
|
|
|
|
wxSizer *CreateButtonSizer( long flags );
|
1999-06-29 12:34:18 +00:00
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
protected:
|
1999-06-29 12:34:18 +00:00
|
|
|
// the return code from modal dialog
|
|
|
|
int m_returnCode;
|
1999-06-28 21:39:49 +00:00
|
|
|
};
|
|
|
|
|
1998-07-10 14:15:17 +00:00
|
|
|
#if defined(__WXMSW__)
|
1999-06-28 21:39:49 +00:00
|
|
|
#include "wx/msw/dialog.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXMOTIF__)
|
1999-06-28 21:39:49 +00:00
|
|
|
#include "wx/motif/dialog.h"
|
1998-07-10 14:15:17 +00:00
|
|
|
#elif defined(__WXGTK__)
|
1999-06-28 21:39:49 +00:00
|
|
|
#include "wx/gtk/dialog.h"
|
1998-08-07 20:23:17 +00:00
|
|
|
#elif defined(__WXQT__)
|
1999-06-28 21:39:49 +00:00
|
|
|
#include "wx/qt/dialog.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXMAC__)
|
1999-06-28 21:39:49 +00:00
|
|
|
#include "wx/mac/dialog.h"
|
1999-07-28 03:38:12 +00:00
|
|
|
#elif defined(__WXPM__)
|
|
|
|
#include "wx/os2/dialog.h"
|
1998-08-15 00:23:28 +00:00
|
|
|
#elif defined(__WXSTUBS__)
|
1999-06-28 21:39:49 +00:00
|
|
|
#include "wx/stubs/dialog.h"
|
1998-05-20 14:01:55 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
1998-08-15 00:23:28 +00:00
|
|
|
// _WX_DIALOG_H_BASE_
|