/////////////////////////////////////////////////////////////////////////////
-// Name: app.h
+// Name: wx/mgl/app.h
// Purpose:
// Author: Vaclav Slavik
// Id: $Id$
-// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
+// Copyright: (c) 2001-2002 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"
+#include "wx/vidmode.h"
//-----------------------------------------------------------------------------
// classes
//-----------------------------------------------------------------------------
-class WXDLLEXPORT wxApp;
-class WXDLLEXPORT wxLog;
-class WXDLLEXPORT wxEventLoop;
+class WXDLLIMPEXP_FWD_CORE wxApp;
+class WXDLLIMPEXP_FWD_BASE wxLog;
+class WXDLLIMPEXP_FWD_CORE wxEventLoop;
//-----------------------------------------------------------------------------
// wxApp
//-----------------------------------------------------------------------------
-class WXDLLEXPORT wxApp: public wxAppBase
+class WXDLLIMPEXP_CORE wxApp: public wxAppBase
{
public:
wxApp();
- ~wxApp();
+ virtual ~wxApp();
/* override for altering the way wxGTK intializes the GUI
* (palette/visual/colorcube). under wxMSW, OnInitGui() does nothing by
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 Initialize(int& argc, wxChar **argv);
+ virtual void CleanUp();
+ virtual void Exit();
+ virtual void WakeUpIdle();
virtual bool Yield(bool onlyIfNeeded = FALSE);
+ virtual wxVideoMode GetDisplayMode() const { return m_displayMode; }
+ virtual bool SetDisplayMode(const wxVideoMode& mode);
+
private:
DECLARE_DYNAMIC_CLASS(wxApp)
- DECLARE_EVENT_TABLE()
-
- wxEventLoop *m_mainLoop;
-};
-int WXDLLEXPORT wxEntry(int argc, char *argv[]);
+ wxVideoMode m_displayMode;
+};
#endif // __WX_APP_H__