Committing in .
Update of OpenVMS compile support Modified Files: wxWidgets/setup.h_vms wxWidgets/src/common/descrip.mms wxWidgets/src/generic/descrip.mms wxWidgets/src/gtk/descrip.mms wxWidgets/src/unix/descrip.mms wxWidgets/src/unix/displayx11.cpp ---------------------------------------------------------------------- git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
* Template for the set.h file for VMS *
|
* Template for the set.h file for VMS *
|
||||||
* Created from setup.h_in *
|
* Created from setup.h_in *
|
||||||
* Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
|
* Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
|
||||||
* Date : 9 February 2006 *
|
* Date : 15 February 2006 *
|
||||||
* *
|
* *
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
|
|
||||||
@@ -543,6 +543,8 @@ typedef pid_t GPid;
|
|||||||
#define wxUSE_RICHEDIT2 0
|
#define wxUSE_RICHEDIT2 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define wxUSE_INKEDIT 1
|
||||||
|
|
||||||
#define wxUSE_UNICODE_MSLU 0
|
#define wxUSE_UNICODE_MSLU 0
|
||||||
|
|
||||||
#define wxUSE_DC_CACHEING 1
|
#define wxUSE_DC_CACHEING 1
|
||||||
|
@@ -79,6 +79,7 @@ OBJECTS = \
|
|||||||
dobjcmn.obj,\
|
dobjcmn.obj,\
|
||||||
docmdi.obj,\
|
docmdi.obj,\
|
||||||
docview.obj,\
|
docview.obj,\
|
||||||
|
dpycmn.obj,\
|
||||||
dynarray.obj,\
|
dynarray.obj,\
|
||||||
dynlib.obj,\
|
dynlib.obj,\
|
||||||
encconv.obj,\
|
encconv.obj,\
|
||||||
@@ -221,6 +222,7 @@ SOURCES = \
|
|||||||
dobjcmn.cpp,\
|
dobjcmn.cpp,\
|
||||||
docmdi.cpp,\
|
docmdi.cpp,\
|
||||||
docview.cpp,\
|
docview.cpp,\
|
||||||
|
dpycmn.cpp,\
|
||||||
dynarray.cpp,\
|
dynarray.cpp,\
|
||||||
dynlib.cpp,\
|
dynlib.cpp,\
|
||||||
encconv.cpp,\
|
encconv.cpp,\
|
||||||
@@ -523,3 +525,4 @@ xti.obj : xti.cpp
|
|||||||
xtistrm.obj : xtistrm.cpp
|
xtistrm.obj : xtistrm.cpp
|
||||||
xtixml.obj : xtixml.cpp
|
xtixml.obj : xtixml.cpp
|
||||||
uri.obj : uri.cpp
|
uri.obj : uri.cpp
|
||||||
|
dpycmn.obj : dpycmn.cpp
|
||||||
|
@@ -231,6 +231,7 @@ splash.obj : splash.cpp
|
|||||||
timer.obj : timer.cpp
|
timer.obj : timer.cpp
|
||||||
vlbox.obj : vlbox.cpp
|
vlbox.obj : vlbox.cpp
|
||||||
vscroll.obj : vscroll.cpp
|
vscroll.obj : vscroll.cpp
|
||||||
|
cxx $(CXXFLAGS)$(CXX_DEFINE)/nowarn vscroll.cpp
|
||||||
listbkg.obj : listbkg.cpp
|
listbkg.obj : listbkg.cpp
|
||||||
choicbkg.obj : choicbkg.cpp
|
choicbkg.obj : choicbkg.cpp
|
||||||
toolbkg.obj : toolbkg.cpp
|
toolbkg.obj : toolbkg.cpp
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
# *
|
# *
|
||||||
# Make file for VMS *
|
# Make file for VMS *
|
||||||
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
|
# Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
|
||||||
# Date : 13 February 2006 *
|
# Date : 20 February 2006 *
|
||||||
# *
|
# *
|
||||||
#*****************************************************************************
|
#*****************************************************************************
|
||||||
.first
|
.first
|
||||||
@@ -39,6 +39,7 @@ OBJECTS = \
|
|||||||
bitmap.obj,\
|
bitmap.obj,\
|
||||||
brush.obj,\
|
brush.obj,\
|
||||||
clipbrd.obj,\
|
clipbrd.obj,\
|
||||||
|
colordlg.obj,\
|
||||||
colour.obj,\
|
colour.obj,\
|
||||||
cursor.obj,\
|
cursor.obj,\
|
||||||
data.obj,\
|
data.obj,\
|
||||||
@@ -113,6 +114,7 @@ SOURCES =\
|
|||||||
checklst.cpp,\
|
checklst.cpp,\
|
||||||
choice.cpp,\
|
choice.cpp,\
|
||||||
clipbrd.cpp,\
|
clipbrd.cpp,\
|
||||||
|
colordlg.cpp,\
|
||||||
colour.cpp,\
|
colour.cpp,\
|
||||||
combobox.cpp,\
|
combobox.cpp,\
|
||||||
control.cpp,\
|
control.cpp,\
|
||||||
@@ -198,6 +200,7 @@ checkbox.obj : checkbox.cpp
|
|||||||
checklst.obj : checklst.cpp
|
checklst.obj : checklst.cpp
|
||||||
choice.obj : choice.cpp
|
choice.obj : choice.cpp
|
||||||
clipbrd.obj :clipbrd.cpp
|
clipbrd.obj :clipbrd.cpp
|
||||||
|
colordlg.obj : colordlg.cpp
|
||||||
colour.obj : colour.cpp
|
colour.obj : colour.cpp
|
||||||
combobox.obj : combobox.cpp
|
combobox.obj : combobox.cpp
|
||||||
control.obj : control.cpp
|
control.obj : control.cpp
|
||||||
|
@@ -46,6 +46,7 @@ CC_DEFINE =
|
|||||||
OBJECTS = baseunix.obj,\
|
OBJECTS = baseunix.obj,\
|
||||||
dialup.obj,\
|
dialup.obj,\
|
||||||
dir.obj,\
|
dir.obj,\
|
||||||
|
displayx11.obj,\
|
||||||
dlunix.obj,\
|
dlunix.obj,\
|
||||||
fontenum.obj,\
|
fontenum.obj,\
|
||||||
fontutil.obj,\
|
fontutil.obj,\
|
||||||
@@ -64,6 +65,7 @@ OBJECTS = baseunix.obj,\
|
|||||||
SOURCES = baseunix.cpp,\
|
SOURCES = baseunix.cpp,\
|
||||||
dialup.cpp,\
|
dialup.cpp,\
|
||||||
dir.cpp,\
|
dir.cpp,\
|
||||||
|
displayx11.cpp,\
|
||||||
dlunix.cpp,\
|
dlunix.cpp,\
|
||||||
fontenum.cpp,\
|
fontenum.cpp,\
|
||||||
fontutil.cpp,\
|
fontutil.cpp,\
|
||||||
@@ -115,3 +117,4 @@ sound.obj : sound.cpp
|
|||||||
sound_sdl.obj : sound_sdl.cpp
|
sound_sdl.obj : sound_sdl.cpp
|
||||||
stdpaths.obj : stdpaths.cpp
|
stdpaths.obj : stdpaths.cpp
|
||||||
taskbarx11.obj : taskbarx11.cpp
|
taskbarx11.obj : taskbarx11.cpp
|
||||||
|
displayx11.obj : displayx11.cpp
|
||||||
|
@@ -33,11 +33,13 @@
|
|||||||
* Xlibint.h conflicts with a function declaration in wx/list.h. */
|
* Xlibint.h conflicts with a function declaration in wx/list.h. */
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
#ifndef __VMS
|
||||||
#include <X11/Xlibint.h>
|
#include <X11/Xlibint.h>
|
||||||
#include <X11/extensions/Xinerama.h>
|
# include <X11/extensions/Xinerama.h>
|
||||||
#ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
|
#ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
|
||||||
#include <X11/extensions/xf86vmode.h>
|
#include <X11/extensions/xf86vmode.h>
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
class wxDisplayUnixPriv
|
class wxDisplayUnixPriv
|
||||||
@@ -51,7 +53,8 @@ size_t wxDisplayBase::GetCount()
|
|||||||
{
|
{
|
||||||
Display *disp = (Display*)wxGetDisplay();
|
Display *disp = (Display*)wxGetDisplay();
|
||||||
|
|
||||||
if ( XineramaIsActive(disp) )
|
#ifndef __VMS
|
||||||
|
if ( XineramaIsActive(disp) )
|
||||||
{
|
{
|
||||||
XineramaScreenInfo *screenarr;
|
XineramaScreenInfo *screenarr;
|
||||||
int numscreens;
|
int numscreens;
|
||||||
@@ -60,6 +63,7 @@ size_t wxDisplayBase::GetCount()
|
|||||||
return numscreens;
|
return numscreens;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -69,7 +73,8 @@ int wxDisplayBase::GetFromPoint(const wxPoint &p)
|
|||||||
{
|
{
|
||||||
Display *disp = (Display*)wxGetDisplay();
|
Display *disp = (Display*)wxGetDisplay();
|
||||||
|
|
||||||
if ( XineramaIsActive(disp) )
|
#ifndef __VMS
|
||||||
|
if ( XineramaIsActive(disp) )
|
||||||
{
|
{
|
||||||
int which_screen = -1;
|
int which_screen = -1;
|
||||||
XineramaScreenInfo *screenarr;
|
XineramaScreenInfo *screenarr;
|
||||||
@@ -92,7 +97,8 @@ int wxDisplayBase::GetFromPoint(const wxPoint &p)
|
|||||||
return which_screen;
|
return which_screen;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
#endif
|
||||||
|
{
|
||||||
wxSize size = wxGetDisplaySize();
|
wxSize size = wxGetDisplaySize();
|
||||||
if (p.x >= 0 &&
|
if (p.x >= 0 &&
|
||||||
p.x < size.GetWidth() &&
|
p.x < size.GetWidth() &&
|
||||||
@@ -110,7 +116,8 @@ wxDisplay::wxDisplay(size_t index) : wxDisplayBase ( index ), m_priv( new wxDisp
|
|||||||
{
|
{
|
||||||
Display *disp = (Display*)wxGetDisplay();
|
Display *disp = (Display*)wxGetDisplay();
|
||||||
|
|
||||||
if ( XineramaIsActive(disp) )
|
#ifndef __VMS
|
||||||
|
if ( XineramaIsActive(disp) )
|
||||||
{
|
{
|
||||||
XineramaScreenInfo *screenarr;
|
XineramaScreenInfo *screenarr;
|
||||||
int numscreens;
|
int numscreens;
|
||||||
@@ -122,7 +129,8 @@ wxDisplay::wxDisplay(size_t index) : wxDisplayBase ( index ), m_priv( new wxDisp
|
|||||||
XFree(screenarr);
|
XFree(screenarr);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
#endif
|
||||||
|
{
|
||||||
wxSize size = wxGetDisplaySize();
|
wxSize size = wxGetDisplaySize();
|
||||||
m_priv->m_rect = wxRect(0, 0, size.GetWidth(), size.GetHeight());
|
m_priv->m_rect = wxRect(0, 0, size.GetWidth(), size.GetHeight());
|
||||||
m_priv->m_depth = wxDisplayDepth();
|
m_priv->m_depth = wxDisplayDepth();
|
||||||
|
Reference in New Issue
Block a user