// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
-#pragma implementation "dialog.h"
-#endif
-
#include "wx/dialog.h"
#include "wx/utils.h"
#include "wx/frame.h"
//wxList wxModelessWindows; // Frames and modeless dialogs
extern wxList wxPendingDelete;
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxTopLevelWindow)
BEGIN_EVENT_TABLE(wxDialog, wxDialogBase)
EVT_CLOSE(wxDialog::OnCloseWindow)
END_EVENT_TABLE()
-#endif
-
-wxDialog::wxDialog()
+void wxDialog::Init()
{
- m_isShown = FALSE;
+ m_isModalStyle = false;
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
}
{
if ( flag )
{
- m_windowStyle |= wxDIALOG_MODAL;
+ m_isModalStyle = true;
wxModelessWindows.DeleteObject(this);
#if TARGET_CARBON
}
else
{
- m_windowStyle &= ~wxDIALOG_MODAL;
+ m_isModalStyle = false;
wxModelessWindows.Append(this);
}
bool wxDialog::IsModal() const
{
- return (GetWindowStyleFlag() & wxDIALOG_MODAL) != 0;
+ return m_isModalStyle;
}