580616706f
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
77 lines
2.0 KiB
C++
77 lines
2.0 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: app.h
|
|
// Purpose:
|
|
// Author: Vaclav Slavik
|
|
// Id: $Id$
|
|
// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef __WX_APP_H__
|
|
#define __WX_APP_H__
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface "app.h"
|
|
#endif
|
|
|
|
#include "wx/frame.h"
|
|
#include "wx/icon.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// classes
|
|
//-----------------------------------------------------------------------------
|
|
|
|
class WXDLLEXPORT wxApp;
|
|
class WXDLLEXPORT wxLog;
|
|
class WXDLLEXPORT wxEventLoop;
|
|
class WXDLLEXPORT wxDesktopWindow;
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// wxApp
|
|
//-----------------------------------------------------------------------------
|
|
|
|
class WXDLLEXPORT wxApp: public wxAppBase
|
|
{
|
|
public:
|
|
wxApp();
|
|
~wxApp();
|
|
|
|
/* override for altering the way wxGTK intializes the GUI
|
|
* (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
|
|
* default. when overriding this method, the code in it is likely to be
|
|
* platform dependent, otherwise use OnInit(). */
|
|
virtual bool OnInitGui();
|
|
|
|
// override base class (pure) virtuals
|
|
virtual int MainLoop();
|
|
virtual void ExitMainLoop();
|
|
virtual bool Initialized();
|
|
virtual bool Pending();
|
|
virtual void Dispatch();
|
|
|
|
virtual wxIcon GetStdIcon(int which) const;
|
|
|
|
// implementation only from now on
|
|
void OnIdle(wxIdleEvent &event);
|
|
bool SendIdleEvents();
|
|
bool SendIdleEvents(wxWindow* win);
|
|
|
|
static bool Initialize();
|
|
static void CleanUp();
|
|
|
|
bool ProcessIdle();
|
|
void DeletePendingObjects();
|
|
|
|
virtual bool Yield(bool onlyIfNeeded = FALSE);
|
|
|
|
private:
|
|
DECLARE_DYNAMIC_CLASS(wxApp)
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
wxEventLoop *m_mainLoop;
|
|
};
|
|
|
|
int WXDLLEXPORT wxEntry(int argc, char *argv[]);
|
|
|
|
#endif // __WX_APP_H__
|