1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2011-03-20 00:14:35 +00:00
|
|
|
// Name: wx/gtk/dialog.h
|
1998-05-20 14:01:55 +00:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-11-15 17:57:55 +00:00
|
|
|
// Created:
|
1998-10-29 18:03:18 +00:00
|
|
|
// Copyright: (c) 1998 Robert Roebling
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2009-10-09 17:39:19 +00:00
|
|
|
#ifndef _WX_GTKDIALOG_H_
|
|
|
|
#define _WX_GTKDIALOG_H_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2008-08-18 11:51:53 +00:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop;
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxDialog
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1998-11-15 17:57:55 +00:00
|
|
|
public:
|
1999-02-24 13:15:42 +00:00
|
|
|
wxDialog() { Init(); }
|
1999-02-22 11:01:13 +00:00
|
|
|
wxDialog( wxWindow *parent, wxWindowID id,
|
1998-11-15 17:57:55 +00:00
|
|
|
const wxString &title,
|
1999-02-05 14:26:48 +00:00
|
|
|
const wxPoint &pos = wxDefaultPosition,
|
|
|
|
const wxSize &size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE,
|
|
|
|
const wxString &name = wxDialogNameStr );
|
1999-02-22 11:01:13 +00: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 19:13:26 +00:00
|
|
|
virtual ~wxDialog();
|
1999-02-22 11:01:13 +00:00
|
|
|
|
2014-03-30 00:02:23 +00:00
|
|
|
virtual bool Show( bool show = true ) wxOVERRIDE;
|
|
|
|
virtual int ShowModal() wxOVERRIDE;
|
|
|
|
virtual void EndModal( int retCode ) wxOVERRIDE;
|
|
|
|
virtual bool IsModal() const wxOVERRIDE;
|
1999-02-22 11:01:13 +00:00
|
|
|
|
2006-08-19 22:56:11 +00:00
|
|
|
private:
|
1999-02-24 13:15:42 +00:00
|
|
|
// common part of all ctors
|
|
|
|
void Init();
|
2013-10-17 16:37:28 +00:00
|
|
|
|
|
|
|
bool m_modalShowing;
|
2008-08-18 11:51:53 +00:00
|
|
|
wxGUIEventLoop *m_modalLoop;
|
2013-10-17 16:37:28 +00:00
|
|
|
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxDialog);
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
2009-10-09 17:39:19 +00:00
|
|
|
#endif // _WX_GTKDIALOG_H_
|