1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-11-15 12:57:55 -05:00
|
|
|
// Created:
|
1998-10-29 13:03:18 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GTKDIALOGH__
|
|
|
|
#define __GTKDIALOGH__
|
|
|
|
|
2008-08-18 07:51:53 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop;
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxDialog
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1998-11-15 12:57:55 -05:00
|
|
|
public:
|
1999-02-24 08:15:42 -05:00
|
|
|
wxDialog() { Init(); }
|
1999-02-22 06:01:13 -05:00
|
|
|
wxDialog( wxWindow *parent, wxWindowID id,
|
1998-11-15 12:57:55 -05:00
|
|
|
const wxString &title,
|
1999-02-05 09:26:48 -05:00
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE,
|
|
|
|
const wxString &name = wxDialogNameStr );
|
1999-02-22 06:01:13 -05:00
|
|
|
bool Create( wxWindow *parent, wxWindowID id,
|
|
|
|
const wxString &title,
|
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE,
|
|
|
|
const wxString &name = wxDialogNameStr );
|
2008-02-05 14:13:26 -05:00
|
|
|
virtual ~wxDialog();
|
1999-02-22 06:01:13 -05:00
|
|
|
|
2001-08-01 10:55:03 -04:00
|
|
|
virtual bool Show( bool show = TRUE );
|
1999-02-22 06:01:13 -05:00
|
|
|
virtual int ShowModal();
|
|
|
|
virtual void EndModal( int retCode );
|
|
|
|
virtual bool IsModal() const;
|
|
|
|
void SetModal( bool modal );
|
|
|
|
|
|
|
|
// implementation
|
1999-12-29 06:52:51 -05:00
|
|
|
// --------------
|
1999-02-22 06:01:13 -05:00
|
|
|
|
|
|
|
bool m_modalShowing;
|
|
|
|
|
2006-08-19 18:56:11 -04:00
|
|
|
private:
|
1999-02-24 08:15:42 -05:00
|
|
|
// common part of all ctors
|
|
|
|
void Init();
|
2008-08-18 07:51:53 -04:00
|
|
|
wxGUIEventLoop *m_modalLoop;
|
1999-11-22 14:44:25 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxDialog)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __GTKDIALOGH__
|