X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af111fc33841cc8bdc4d6cf027702805333bdd2a..10992a81d39da31b79063387b7b71c0ff68737ce:/src/motif/utils.cpp diff --git a/src/motif/utils.cpp b/src/motif/utils.cpp index 082d3285be..bbd87c8772 100644 --- a/src/motif/utils.cpp +++ b/src/motif/utils.cpp @@ -17,6 +17,10 @@ // headers // ---------------------------------------------------------------------------- +#ifdef __VMS +#define XtDisplay XTDISPLAY +#endif + #include "wx/setup.h" #include "wx/utils.h" #include "wx/app.h" @@ -41,7 +45,13 @@ #include #endif +#ifdef __VMS__ +#pragma message disable nosimpint +#endif #include +#ifdef __VMS__ +#pragma message enable nosimpint +#endif #include "wx/unix/execute.h" @@ -638,6 +648,16 @@ void wxDisplaySize(int *width, int *height) *height = DisplayHeight (dpy, DefaultScreen (dpy)); } +void wxDisplaySizeMM(int *width, int *height) +{ + Display *dpy = (Display*) wxGetDisplay(); + + if ( width ) + *width = DisplayWidthMM(dpy, DefaultScreen (dpy)); + if ( height ) + *height = DisplayHeightMM(dpy, DefaultScreen (dpy)); +} + // Configurable display in Motif static WXDisplay *gs_currentDisplay = NULL; static wxString gs_displayName; @@ -689,8 +709,6 @@ bool wxSetDisplay(const wxString& display_name) else return FALSE; } - - return FALSE; } wxString wxGetDisplayName() @@ -698,6 +716,11 @@ wxString wxGetDisplayName() return gs_displayName; } +wxWindow* wxFindWindowAtPoint(const wxPoint& pt) +{ + return wxGenericFindWindowAtPoint(pt); +} + // ---------------------------------------------------------------------------- // accelerators // ---------------------------------------------------------------------------- @@ -731,7 +754,8 @@ char * wxFindAccelerator (const char *s) // handling return NULL; - // The accelerator text is after the \t char. +#if 0 + // The accelerator text is after the \t char. while (*s && *s != '\t') s++; if (*s == '\0') @@ -778,6 +802,7 @@ char * wxFindAccelerator (const char *s) } delete[]tmp; return wxBuffer; +#endif } XmString wxFindAcceleratorText (const char *s) @@ -786,7 +811,8 @@ XmString wxFindAcceleratorText (const char *s) // handling return NULL; - // The accelerator text is after the \t char. +#if 0 + // The accelerator text is after the \t char. while (*s && *s != '\t') s++; if (*s == '\0') @@ -794,6 +820,7 @@ XmString wxFindAcceleratorText (const char *s) s++; XmString text = XmStringCreateSimple ((char *)s); return text; +#endif } // ----------------------------------------------------------------------------