some app.h cleanup: minimize includes, use static cast
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -25,10 +25,9 @@
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/list.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/bitmap.h"
|
||||
#include "wx/intl.h"
|
||||
#include "wx/log.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include "wx/confbase.h"
|
||||
@@ -40,6 +39,7 @@
|
||||
#include "wx/evtloop.h"
|
||||
#include "wx/msgout.h"
|
||||
#include "wx/thread.h"
|
||||
#include "wx/vidmode.h"
|
||||
#include "wx/ptr_scpd.h"
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
@@ -157,6 +157,21 @@ void wxAppBase::CleanUp()
|
||||
#endif // wxUSE_THREADS
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxWindow* wxAppBase::GetTopWindow() const
|
||||
{
|
||||
wxWindow* window = m_topWindow;
|
||||
if (window == NULL && wxTopLevelWindows.GetCount() > 0)
|
||||
window = wxTopLevelWindows.GetFirst()->GetData();
|
||||
return window;
|
||||
}
|
||||
|
||||
wxVideoMode wxAppBase::GetDisplayMode() const
|
||||
{
|
||||
return wxVideoMode();
|
||||
}
|
||||
|
||||
#if wxUSE_CMDLINE_PARSER
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user