projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more wxUniv compilation fixes (bug 1085003)
[wxWidgets.git]
/
src
/
univ
/
dialog.cpp
diff --git
a/src/univ/dialog.cpp
b/src/univ/dialog.cpp
index 0f5e47b9a4a4cec6fbda67794b0b6579b8248450..39a0695158bbdac8d90e6cc69333dd26724af100 100644
(file)
--- a/
src/univ/dialog.cpp
+++ b/
src/univ/dialog.cpp
@@
-14,7
+14,7
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if
def __GNUG__
+#if
defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "univdialog.h"
#endif
#pragma implementation "univdialog.h"
#endif
@@
-51,7
+51,7
@@
void wxDialog::Init()
m_returnCode = 0;
m_windowDisabler = NULL;
m_eventLoop = NULL;
m_returnCode = 0;
m_windowDisabler = NULL;
m_eventLoop = NULL;
- m_isShowingModal =
FALSE
;
+ m_isShowingModal =
false
;
}
wxDialog::~wxDialog()
}
wxDialog::~wxDialog()
@@
-87,7
+87,7
@@
void wxDialog::OnCancel(wxCommandEvent &WXUNUSED(event))
else
{
SetReturnCode(wxID_CANCEL);
else
{
SetReturnCode(wxID_CANCEL);
- Show(
FALSE
);
+ Show(
false
);
}
}
}
}
@@
-102,7
+102,7
@@
void wxDialog::OnOK(wxCommandEvent &WXUNUSED(event))
else
{
SetReturnCode(wxID_OK);
else
{
SetReturnCode(wxID_OK);
- Show(
FALSE
);
+ Show(
false
);
}
}
}
}
}
}
@@
-166,11
+166,6
@@
bool wxDialog::IsModal() const
return m_isShowingModal;
}
return m_isShowingModal;
}
-void wxDialog::SetModal(bool WXUNUSED(flag))
-{
- wxFAIL_MSG( wxT("wxDialog:SetModal obsolete now") );
-}
-
int wxDialog::ShowModal()
{
if ( IsModal() )
int wxDialog::ShowModal()
{
if ( IsModal() )
@@
-190,12
+185,17
@@
int wxDialog::ShowModal()
}
}
}
}
- Show(
TRUE
);
+ Show(
true
);
- m_isShowingModal =
TRUE
;
+ m_isShowingModal =
true
;
wxASSERT_MSG( !m_windowDisabler, _T("disabling windows twice?") );
wxASSERT_MSG( !m_windowDisabler, _T("disabling windows twice?") );
+#if defined(__WXGTK__) || defined(__WXMGL__)
+ wxBusyCursorSuspender suspender;
+ // FIXME (FIXME_MGL) - make sure busy cursor disappears under MSW too
+#endif
+
m_windowDisabler = new wxWindowDisabler(this);
if ( !m_eventLoop )
m_eventLoop = new wxEventLoop;
m_windowDisabler = new wxWindowDisabler(this);
if ( !m_eventLoop )
m_eventLoop = new wxEventLoop;
@@
-217,9
+217,9
@@
void wxDialog::EndModal(int retCode)
return;
}
return;
}
- m_isShowingModal =
FALSE
;
+ m_isShowingModal =
false
;
m_eventLoop->Exit();
m_eventLoop->Exit();
- Show(
FALSE
);
+ Show(
false
);
}
}