/////////////////////////////////////////////////////////////////////////////
// Name: app.h
// Purpose: wxApp class
-// Author: AUTHOR
+// Author: Stefan Csomor
// Modified by:
-// Created: ??/??/98
+// Created: 1998-01-01
// RCS-ID: $Id$
-// Copyright: (c) AUTHOR
+// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
virtual bool Initialized();
virtual bool Pending() ;
virtual void Dispatch() ;
+
+ virtual void Exit();
+
virtual bool Yield(bool onlyIfNeeded = FALSE);
virtual bool ProcessIdle();
+ virtual void WakeUpIdle();
virtual void SetPrintMode(int mode) { m_printMode = mode; }
virtual int GetPrintMode() const { return m_printMode; }
public:
// Implementation
- static bool Initialize();
- static void CleanUp();
+ virtual bool Initialize(int& argc, wxChar **argv);
+ virtual void CleanUp();
- void DeletePendingObjects();
bool IsExiting() { return !m_keepGoing ; }
#if TARGET_CARBON
- WXEVENTHANDLERREF MacGetEventHandler() { return m_macEventHandler ; }
- WXEVENTHANDLERREF MacGetCurrentEventHandlerCallRef() { return m_macCurrentEventHandlerCallRef ; }
+ WXEVENTHANDLERREF MacGetEventHandler() { return m_macEventHandler ; }
+ WXEVENTHANDLERREF MacGetCurrentEventHandlerCallRef() { return m_macCurrentEventHandlerCallRef ; }
#endif
public:
// mac specifics
#if TARGET_CARBON
- WXEVENTHANDLERREF m_macEventHandler ;
- WXEVENTHANDLERCALLREF m_macCurrentEventHandlerCallRef ;
+ WXEVENTHANDLERREF m_macEventHandler ;
+ WXEVENTHANDLERCALLREF m_macCurrentEventHandlerCallRef ;
#endif
WXEVENTREF m_macCurrentEvent ;
#endif
- void MacHandleMenuCommand( wxUint32 command ) ;
- bool MacSendKeyDownEvent( wxWindow* focus , long keyval , long modifiers , long when , short wherex , short wherey ) ;
- bool MacSendKeyUpEvent( wxWindow* focus , long keyval , long modifiers , long when , short wherex , short wherey ) ;
-
+ void MacHandleMenuCommand( wxUint32 command ) ;
+ bool MacSendKeyDownEvent( wxWindow* focus , long keyval , long modifiers , long when , short wherex , short wherey ) ;
+ bool MacSendKeyUpEvent( wxWindow* focus , long keyval , long modifiers , long when , short wherex , short wherey ) ;
+
virtual short MacHandleAEODoc(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ;
virtual short MacHandleAEPDoc(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ;
virtual short MacHandleAEOApp(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ;
virtual short MacHandleAEQuit(const WXAPPLEEVENTREF event , WXAPPLEEVENTREF reply) ;
// in response of an open-document apple event
- virtual void MacOpenFile(const wxString &fileName) ;
+ virtual void MacOpenFile(const wxString &fileName) ;
// in response of a print-document apple event
- virtual void MacPrintFile(const wxString &fileName) ;
+ virtual void MacPrintFile(const wxString &fileName) ;
// in response of a open-application apple event
- virtual void MacNewFile() ;
+ virtual void MacNewFile() ;
DECLARE_EVENT_TABLE()
};
short m_currentRefNum ;
} ;
-// TODO: add platform-specific arguments
-#ifndef __DARWIN__
-int WXDLLEXPORT wxEntry( int argc, char *argv[] , bool enterLoop = TRUE);
-#endif
-
#endif
// _WX_APP_H_