2001-06-26 17:05:06 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2006-09-14 12:51:13 -04:00
|
|
|
// Name: wx/mgl/app.h
|
2001-06-26 17:05:06 -04:00
|
|
|
// Purpose:
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Id: $Id$
|
2002-02-14 15:30:34 -05:00
|
|
|
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2001-06-26 17:05:06 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __WX_APP_H__
|
|
|
|
#define __WX_APP_H__
|
|
|
|
|
|
|
|
#include "wx/frame.h"
|
|
|
|
#include "wx/icon.h"
|
2006-09-14 12:51:13 -04:00
|
|
|
#include "wx/vidmode.h"
|
2001-06-26 17:05:06 -04:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// classes
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxApp;
|
2007-11-23 09:13:50 -05:00
|
|
|
class WXDLLIMPEXP_FWD_BASE wxLog;
|
2007-07-09 06:09:52 -04:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxEventLoop;
|
2001-06-26 17:05:06 -04:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxApp
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxApp: public wxAppBase
|
2001-06-26 17:05:06 -04:00
|
|
|
{
|
|
|
|
public:
|
2001-08-09 18:40:39 -04:00
|
|
|
wxApp();
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxApp();
|
2001-06-26 17:05:06 -04:00
|
|
|
|
|
|
|
/* 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(). */
|
2001-08-09 18:40:39 -04:00
|
|
|
virtual bool OnInitGui();
|
2001-06-26 17:05:06 -04:00
|
|
|
|
|
|
|
// override base class (pure) virtuals
|
2003-06-30 16:02:05 -04:00
|
|
|
virtual bool Initialize(int& argc, wxChar **argv);
|
2003-06-30 14:43:09 -04:00
|
|
|
virtual void CleanUp();
|
2006-09-14 12:51:13 -04:00
|
|
|
|
2003-09-18 06:01:59 -04:00
|
|
|
virtual void Exit();
|
|
|
|
virtual void WakeUpIdle();
|
2001-10-20 18:07:13 -04:00
|
|
|
|
2003-09-27 08:55:46 -04:00
|
|
|
virtual wxVideoMode GetDisplayMode() const { return m_displayMode; }
|
|
|
|
virtual bool SetDisplayMode(const wxVideoMode& mode);
|
2001-11-03 19:00:36 -05:00
|
|
|
|
2001-06-26 17:05:06 -04:00
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxApp)
|
2003-09-15 15:48:16 -04:00
|
|
|
|
2003-09-27 08:55:46 -04:00
|
|
|
wxVideoMode m_displayMode;
|
2001-06-26 17:05:06 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WX_APP_H__
|