The last drops of WINE.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-06-09 18:09:47 +00:00
parent a8561a273b
commit 4286a5b595
10 changed files with 39 additions and 18 deletions

View File

@@ -951,9 +951,8 @@ if test "$wxUSE_WINE" = 1; then
AC_MSG_CHECKING(for Xpm library) AC_MSG_CHECKING(for Xpm library)
WX_PATH_FIND_LIBRARIES($SEARCH_LIB,Xpm) WX_PATH_FIND_LIBRARIES($SEARCH_LIB,Xpm)
if test "$ac_find_libraries" != "" ; then if test "$ac_find_libraries" != "" ; then
WX_LINK_PATH_EXIST($ac_find_libraries,$GUI_TK_LIBRARY) GUI_TK_LIBRARY="-L$ac_find_libraries"
CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link" XPM_LINK="-lXpm"
XPM_LINK="-lXpm "
AC_DEFINE(wxHAVE_LIB_XPM) AC_DEFINE(wxHAVE_LIB_XPM)
AC_MSG_RESULT(found at $ac_find_libraries) AC_MSG_RESULT(found at $ac_find_libraries)
else else
@@ -961,7 +960,18 @@ if test "$wxUSE_WINE" = 1; then
AC_MSG_WARN(library will be compiled without support for images in XPM format) AC_MSG_WARN(library will be compiled without support for images in XPM format)
fi fi
GUI_TK_LINK="-lwine $XPM_LINK -lXmu -lX11 -lm" MESA_LINK=""
AC_MSG_CHECKING(for Mesa library)
WX_PATH_FIND_LIBRARIES($SEARCH_LIB,MesaGL)
if test "$ac_find_libraries" != "" ; then
GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
MESA_LINK="-lMesaGL"
AC_MSG_RESULT(found at $ac_find_libraries)
else
AC_MSG_ERROR(no)
fi
GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -ldl -lm"
GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
WXWINE=1 WXWINE=1
TOOLKIT=MSW TOOLKIT=MSW

View File

@@ -21,6 +21,7 @@
#endif #endif
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/dynarray.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// array types // array types

View File

@@ -20,7 +20,7 @@
#pragma interface "window.h" #pragma interface "window.h"
#endif #endif
#include "wx/msw/winundef.h" // #include "wx/msw/winundef.h"
// VZ: apparently some version of Windows send extra mouse move messages after // VZ: apparently some version of Windows send extra mouse move messages after
// a mouse click. My tests under NT 4.0 and 95 didn't show it so I'm // a mouse click. My tests under NT 4.0 and 95 didn't show it so I'm

View File

@@ -19,6 +19,7 @@ EXTRA_LTLIBRARIES = libwx_gtk.la libwx_motif.la libwx_msw.la
# these are the common files which always make part of the library # these are the common files which always make part of the library
libwx_msw_la_SOURCES = \ libwx_msw_la_SOURCES = \
\ \
winestub.c \
extended.c \ extended.c \
parser.c \ parser.c \
\ \
@@ -94,7 +95,6 @@ libwx_msw_la_SOURCES = \
gridg.cpp \ gridg.cpp \
laywin.cpp \ laywin.cpp \
panelg.cpp \ panelg.cpp \
printps.cpp \
progdlgg.cpp \ progdlgg.cpp \
prop.cpp \ prop.cpp \
propform.cpp \ propform.cpp \
@@ -116,6 +116,7 @@ libwx_msw_la_SOURCES = \
checkbox.cpp \ checkbox.cpp \
choice.cpp \ choice.cpp \
clipbrd.cpp \ clipbrd.cpp \
colordlg.cpp \
colour.cpp \ colour.cpp \
combobox.cpp \ combobox.cpp \
control.cpp \ control.cpp \
@@ -127,9 +128,9 @@ libwx_msw_la_SOURCES = \
dcscreen.cpp \ dcscreen.cpp \
dcprint.cpp \ dcprint.cpp \
dialog.cpp \ dialog.cpp \
dirdlg \
filedlg.cpp \ filedlg.cpp \
font.cpp \ font.cpp \
fontdlg.cpp \
frame.cpp \ frame.cpp \
gauge95.cpp \ gauge95.cpp \
gdiobj.cpp \ gdiobj.cpp \
@@ -145,6 +146,8 @@ libwx_msw_la_SOURCES = \
notebook.cpp \ notebook.cpp \
ownerdrw.cpp \ ownerdrw.cpp \
palette.cpp \ palette.cpp \
printdlg.cpp \
printwin.cpp \
pen.cpp \ pen.cpp \
radiobox.cpp \ radiobox.cpp \
radiobut.cpp \ radiobut.cpp \
@@ -166,7 +169,8 @@ libwx_msw_la_SOURCES = \
utils.cpp \ utils.cpp \
utilsexc.cpp \ utilsexc.cpp \
wave.cpp \ wave.cpp \
window.cpp window.cpp \
nativdlg.cpp
# these are the sources which we build by our own rules # these are the sources which we build by our own rules
# #

View File

@@ -43,12 +43,14 @@
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/dynarray.h" #include "wx/dynarray.h"
#include "wx/wxchar.h"
#endif #endif
#include "wx/msw/private.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/msw/private.h"
#if wxUSE_THREADS #if wxUSE_THREADS
#include "wx/thread.h" #include "wx/thread.h"
@@ -84,6 +86,7 @@
#include "wx/msw/msvcrt.h" #include "wx/msw/msvcrt.h"
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// global variables // global variables
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------

View File

@@ -36,7 +36,7 @@
#include <windows.h> #include <windows.h>
#if !defined(__WIN32__) || defined(__SALFORDC__) #if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__)
#include <commdlg.h> #include <commdlg.h>
#endif #endif

View File

@@ -28,10 +28,8 @@
#pragma hdrstop #pragma hdrstop
#endif #endif
#include "wx/frame.h"
#include "wx/msw/private.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dialog.h" #include "wx/dialog.h"
@@ -39,6 +37,7 @@
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/icon.h"
#endif #endif
#include "wx/dcprint.h" #include "wx/dcprint.h"
@@ -54,6 +53,8 @@
#include <print.h> #include <print.h>
#endif #endif
#include "wx/msw/private.h"
#if !USE_SHARED_LIBRARY #if !USE_SHARED_LIBRARY
IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject) IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
#endif #endif

View File

@@ -31,7 +31,7 @@
#include <windows.h> #include <windows.h>
#if !defined(__WIN32__) || defined(__SALFORDC__) #if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__)
#include <commdlg.h> #include <commdlg.h>
#endif #endif

View File

@@ -40,7 +40,7 @@
#if !defined(_WINDLL) #if !defined(_WINDLL)
#ifdef __TWIN32__ #if defined(__TWIN32__) || defined(__WXWINE__)
extern "C" extern "C"
BOOL PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) BOOL PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)

View File

@@ -2458,13 +2458,13 @@ bool wxWindow::HandleSetCursor(WXHWND hWnd,
return FALSE; return FALSE;
} }
#if wxUSE_OWNER_DRAWN
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// owner drawn stuff // owner drawn stuff
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
bool wxWindow::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct) bool wxWindow::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
{ {
#if wxUSE_OWNER_DRAWN
// is it a menu item? // is it a menu item?
if ( id == 0 ) if ( id == 0 )
{ {
@@ -2494,11 +2494,14 @@ bool wxWindow::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
return ((wxControl *)item)->MSWOnDraw(itemStruct); return ((wxControl *)item)->MSWOnDraw(itemStruct);
} }
else else
#endif
return FALSE; return FALSE;
} }
bool wxWindow::MSWOnMeasureItem(int id, WXMEASUREITEMSTRUCT *itemStruct) bool wxWindow::MSWOnMeasureItem(int id, WXMEASUREITEMSTRUCT *itemStruct)
{ {
#if wxUSE_OWNER_DRAWN
// is it a menu item? // is it a menu item?
if ( id == 0 ) if ( id == 0 )
{ {
@@ -2516,10 +2519,9 @@ bool wxWindow::MSWOnMeasureItem(int id, WXMEASUREITEMSTRUCT *itemStruct)
{ {
return ((wxControl *)item)->MSWOnMeasure(itemStruct); return ((wxControl *)item)->MSWOnMeasure(itemStruct);
} }
#endif // owner-drawn menus
return FALSE; return FALSE;
} }
#endif // owner-drawn menus
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// colours and palettes // colours and palettes