git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4649
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// be in your main program (e.g. hello.cpp). Now IMPLEMENT_APP should add this
// code if required.
// be in your main program (e.g. hello.cpp). Now IMPLEMENT_APP should add this
// code if required.
-#if defined(__AIX__) || defined(__HPUX__) || defined( __VMS__ )
+#if defined(__AIX__) || defined(__HPUX__) || defined( __VMS__ ) || defined(__WXPM__)
#define IMPLEMENT_WXWIN_MAIN \
extern int wxEntry( int argc, char *argv[] ); \
int main(int argc, char *argv[]) { return wxEntry(argc, argv); }
#define IMPLEMENT_WXWIN_MAIN \
extern int wxEntry( int argc, char *argv[] ); \
int main(int argc, char *argv[]) { return wxEntry(argc, argv); }
void CopyObject(wxObject& object_dest) const;
public:
int m_commandInt; // Additional information
void CopyObject(wxObject& object_dest) const;
public:
int m_commandInt; // Additional information
bool Leaving() const { return (m_eventType == wxEVT_LEAVE_WINDOW); }
// Find the position of the event
bool Leaving() const { return (m_eventType == wxEVT_LEAVE_WINDOW); }
// Find the position of the event
- void GetPosition(wxCoord *xpos, wxCoord *ypos) const
+ void GetPosition(wxCoord *xpos, wxCoord *ypos) const
void GetPosition(long *xpos, long *ypos) const
{
if (xpos)
void GetPosition(long *xpos, long *ypos) const
{
if (xpos)
if (ypos)
*ypos = (long)m_y;
}
if (ypos)
*ypos = (long)m_y;
}
// Compatibility
#if WXWIN_COMPATIBILITY
// Compatibility
#if WXWIN_COMPATIBILITY
- void Position(long *xpos, long *ypos) const
+ void Position(long *xpos, long *ypos) const
if (ypos)
*ypos = (long)m_y;
}
if (ypos)
*ypos = (long)m_y;
}
// Find the position of the event
void GetPosition(wxCoord *xpos, wxCoord *ypos) const
{
// Find the position of the event
void GetPosition(wxCoord *xpos, wxCoord *ypos) const
{
if (ypos) *ypos = m_y;
}
#ifndef __WIN16__
void GetPosition(long *xpos, long *ypos) const
{
if (ypos) *ypos = m_y;
}
#ifndef __WIN16__
void GetPosition(long *xpos, long *ypos) const
{
- if (xpos) *xpos = (long)m_x;
+ if (xpos) *xpos = (long)m_x;
if (ypos) *ypos = (long)m_y;
}
#endif
if (ypos) *ypos = (long)m_y;
}
#endif
// process all pending events
void ProcessPendingEvents();
// process all pending events
void ProcessPendingEvents();
#if wxUSE_THREADS
bool ProcessThreadEvent(wxEvent& event);
#endif
#if wxUSE_THREADS
bool ProcessThreadEvent(wxEvent& event);
#endif
bool SearchDynamicEventTable( wxEvent& event );
#if wxUSE_THREADS
bool SearchDynamicEventTable( wxEvent& event );
#if wxUSE_THREADS
- void ClearEventLocker() { delete m_eventsLocker; m_eventsLocker = NULL; };
+ void ClearEventLocker()
+ {
+# if !defined(__VISAGECPP__)
+ delete m_eventsLocker;
+ m_eventsLocker = NULL;
+#endif
+ };
wxList* m_dynamicEvents;
wxList* m_pendingEvents;
#if wxUSE_THREADS
wxList* m_dynamicEvents;
wxList* m_pendingEvents;
#if wxUSE_THREADS
+#if defined (__VISAGECPP__)
+ wxCriticalSection m_eventsLocker;
+# else
wxCriticalSection* m_eventsLocker;
wxCriticalSection* m_eventsLocker;
#endif
// optimization: instead of using costly IsKindOf() to decide whether we're
#endif
// optimization: instead of using costly IsKindOf() to decide whether we're
#ifndef __OS2DNDH__
#define __OS2DNDH__
#ifndef __OS2DNDH__
#define __OS2DNDH__
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#if !wxUSE_DRAG_AND_DROP
#error "You should #define wxUSE_DRAG_AND_DROP to 1 to compile this file!"
#endif //WX_DRAG_DROP
#if !wxUSE_DRAG_AND_DROP
#error "You should #define wxUSE_DRAG_AND_DROP to 1 to compile this file!"
#endif //WX_DRAG_DROP
+#define INCL_WINSTDDRAG
+#include <os2.h>
+#include <pmstddlg.h>
+
//-------------------------------------------------------------------------
// wxDropSource
//-------------------------------------------------------------------------
//-------------------------------------------------------------------------
// wxDropSource
//-------------------------------------------------------------------------
#ifndef _WX_PRIVATE_H_
#define _WX_PRIVATE_H_
#ifndef _WX_PRIVATE_H_
#define _WX_PRIVATE_H_
-#define INCL_DOSPROCESS
-#define INCL_DOSERRORS
#define INCL_BASE
#define INCL_PM
#define INCL_BASE
#define INCL_PM
#include <os2.h>
class WXDLLEXPORT wxFont;
#include <os2.h>
class WXDLLEXPORT wxFont;
// in order to avoid any overhead under !MSW make all wxCriticalSection class
// functions inline - but this can't be done under MSW
// in order to avoid any overhead under !MSW make all wxCriticalSection class
// functions inline - but this can't be done under MSW
-#if defined(__WXMSW__) || defined(__WXPM__)
class WXDLLEXPORT wxCriticalSectionInternal;
#define WXCRITICAL_INLINE
#elif defined(__WXMAC__)
class WXDLLEXPORT wxCriticalSectionInternal;
#define WXCRITICAL_INLINE
class WXDLLEXPORT wxCriticalSectionInternal;
#define WXCRITICAL_INLINE
#elif defined(__WXMAC__)
class WXDLLEXPORT wxCriticalSectionInternal;
#define WXCRITICAL_INLINE
+#elif defined(__WXPM__)
+ #define WXCRITICAL_INLINE
#else // !MSW && !PM
#define WXCRITICAL_INLINE inline
#endif // MSW/!MSW
#else // !MSW && !PM
#define WXCRITICAL_INLINE inline
#endif // MSW/!MSW
wxCriticalSection(const wxCriticalSection&);
wxCriticalSection& operator=(const wxCriticalSection&);
wxCriticalSection(const wxCriticalSection&);
wxCriticalSection& operator=(const wxCriticalSection&);
-#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMAC__)
+#if defined(__WXMSW__) || defined(__WXMAC__)
wxCriticalSectionInternal *m_critsect;
#else // !MSW
wxMutex m_mutex;
wxCriticalSectionInternal *m_critsect;
#else // !MSW
wxMutex m_mutex;
// returns TRUE if the main thread has GUI lock
extern bool WXDLLEXPORT wxGuiOwnedByMainThread();
// returns TRUE if the main thread has GUI lock
extern bool WXDLLEXPORT wxGuiOwnedByMainThread();
// return TRUE if the main thread is waiting for some other to terminate:
// wxApp then should block all "dangerous" messages
extern bool WXDLLEXPORT wxIsWaitingForThread();
// return TRUE if the main thread is waiting for some other to terminate:
// wxApp then should block all "dangerous" messages
extern bool WXDLLEXPORT wxIsWaitingForThread();
#else // !MSW && !PM
// implement wxCriticalSection using mutexes
inline wxCriticalSection::wxCriticalSection() { }
#else // !MSW && !PM
// implement wxCriticalSection using mutexes
inline wxCriticalSection::wxCriticalSection() { }