]> git.saurik.com Git - wxWidgets.git/commitdiff
The last drops of WINE.
authorRobert Roebling <robert@roebling.de>
Wed, 9 Jun 1999 18:09:47 +0000 (18:09 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 9 Jun 1999 18:09:47 +0000 (18:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in
include/wx/msw/dcclient.h
include/wx/msw/window.h
src/msw/Makefile.am
src/msw/app.cpp
src/msw/colordlg.cpp
src/msw/dc.cpp
src/msw/fontdlg.cpp
src/msw/main.cpp
src/msw/window.cpp

index 10f34f4c2f83c3f9c41d017c6c47e00997874bc2..f850db70ab4ee48da2133247a443664965dc3a3c 100644 (file)
@@ -951,17 +951,27 @@ if test "$wxUSE_WINE" = 1; then
     AC_MSG_CHECKING(for Xpm library)
     WX_PATH_FIND_LIBRARIES($SEARCH_LIB,Xpm)
     if test "$ac_find_libraries" != "" ; then
-        WX_LINK_PATH_EXIST($ac_find_libraries,$GUI_TK_LIBRARY)
-        CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link"
-        XPM_LINK="-lXpm "
+        GUI_TK_LIBRARY="-L$ac_find_libraries"
+        XPM_LINK="-lXpm"
         AC_DEFINE(wxHAVE_LIB_XPM)
         AC_MSG_RESULT(found at $ac_find_libraries)
     else
         AC_MSG_RESULT(no)
         AC_MSG_WARN(library will be compiled without support for images in XPM format)
     fi
+    
+    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 $XPM_LINK -lXmu -lX11 -lm"
+    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"
     WXWINE=1
     TOOLKIT=MSW
index e9eaac7776076d8e9bdd92520987f5d92c99c6b7..06288fba28282cdad1bfd8466a3ad8c65ec0bf63 100644 (file)
@@ -21,6 +21,7 @@
 #endif
 
 #include "wx/dc.h"
+#include "wx/dynarray.h"
 
 // ----------------------------------------------------------------------------
 // array types
index be06f8d8b7644a3016d420b45c6a2945fe7b27a3..8349de73e387a7620e753d23a559e602be4d42d4 100644 (file)
@@ -20,7 +20,7 @@
     #pragma interface "window.h"
 #endif
 
-#include "wx/msw/winundef.h"
+// #include "wx/msw/winundef.h"
 
 // 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
index e8295c02f76bc6c179a3739b1406cf53c36d5b07..9a155b7aa0c1bbee4802af976f8087c79df8c7e9 100644 (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
 libwx_msw_la_SOURCES = \
 \
+ winestub.c \
  extended.c \
  parser.c \
 \
@@ -94,7 +95,6 @@ libwx_msw_la_SOURCES = \
  gridg.cpp \
  laywin.cpp \
  panelg.cpp \
- printps.cpp \
  progdlgg.cpp \
  prop.cpp \
  propform.cpp \
@@ -116,6 +116,7 @@ libwx_msw_la_SOURCES = \
  checkbox.cpp \
  choice.cpp \
  clipbrd.cpp \
+ colordlg.cpp \
  colour.cpp \
  combobox.cpp \
  control.cpp \
@@ -127,9 +128,9 @@ libwx_msw_la_SOURCES = \
  dcscreen.cpp \
  dcprint.cpp \
  dialog.cpp \
- dirdlg \
  filedlg.cpp \
  font.cpp \
+ fontdlg.cpp \
  frame.cpp \
  gauge95.cpp \
  gdiobj.cpp \
@@ -145,6 +146,8 @@ libwx_msw_la_SOURCES = \
  notebook.cpp \
  ownerdrw.cpp \
  palette.cpp \
+ printdlg.cpp \
+ printwin.cpp \
  pen.cpp \
  radiobox.cpp \
  radiobut.cpp \
@@ -166,7 +169,8 @@ libwx_msw_la_SOURCES = \
  utils.cpp \
  utilsexc.cpp \
  wave.cpp \
- window.cpp
+ window.cpp \
+ nativdlg.cpp
 
 # these are the sources which we build by our own rules
 #
index 07a2d29ccd26273fe84ea0ac9ac6b00c3de42342..0c339a6a797970b5e09382327266d6425c3e13c7 100644 (file)
     #include "wx/msgdlg.h"
     #include "wx/intl.h"
     #include "wx/dynarray.h"
+    #include "wx/wxchar.h"
 #endif
 
-#include "wx/msw/private.h"
 #include "wx/log.h"
 #include "wx/module.h"
 
+#include "wx/msw/private.h"
+
 #if wxUSE_THREADS
     #include "wx/thread.h"
 
@@ -84,6 +86,7 @@
 
 #include "wx/msw/msvcrt.h"
 
+
 // ---------------------------------------------------------------------------
 // global variables
 // ---------------------------------------------------------------------------
index 78a01e7dde036d1e6e0c0d903f85df44d70b1ab2..c79f438df923900f3c143e530d7a0fb4e569078b 100644 (file)
@@ -36,7 +36,7 @@
 
 #include <windows.h>
 
-#if !defined(__WIN32__) || defined(__SALFORDC__)
+#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__)
 #include <commdlg.h>
 #endif
 
index d1590decfadc7c8e53b8421227c95fca63f9aabe..c3fb342e0112547e054303f9495ed85a93960a4b 100644 (file)
     #pragma hdrstop
 #endif
 
-#include "wx/frame.h"
-#include "wx/msw/private.h"
-
 #ifndef WX_PRECOMP
+    #include "wx/window.h"
     #include "wx/dc.h"
     #include "wx/utils.h"
     #include "wx/dialog.h"
@@ -39,6 +37,7 @@
     #include "wx/bitmap.h"
     #include "wx/dcmemory.h"
     #include "wx/log.h"
+    #include "wx/icon.h"
 #endif
 
 #include "wx/dcprint.h"
@@ -54,6 +53,8 @@
     #include <print.h>
 #endif
 
+#include "wx/msw/private.h"
+
 #if !USE_SHARED_LIBRARY
     IMPLEMENT_ABSTRACT_CLASS(wxDC, wxObject)
 #endif
index 6ab94108d0e951a0abede15c5142b39d7932350f..90886ed197c121037101c10a05d8386098520905 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <windows.h>
 
-#if !defined(__WIN32__) || defined(__SALFORDC__)
+#if !defined(__WIN32__) || defined(__SALFORDC__) || defined(__WXWINE__)
 #include <commdlg.h>
 #endif
 
index 45db41d1194c77b84f7bb6609f1af453c4d07b0a..3565e7fa23885d4c1922c07c811c8695e2159ecc 100644 (file)
@@ -40,7 +40,7 @@
 
 #if !defined(_WINDLL)
 
-#ifdef __TWIN32__
+#if defined(__TWIN32__) || defined(__WXWINE__)
 
 extern "C"
 BOOL PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
index 8da3bb78c9696fe8ff61c6f46313cbb33e3b39d4..95424f3bc6acfbf72e7ef6845c9607be096c52b7 100644 (file)
@@ -2458,13 +2458,13 @@ bool wxWindow::HandleSetCursor(WXHWND hWnd,
     return FALSE;
 }
 
-#if wxUSE_OWNER_DRAWN
 // ---------------------------------------------------------------------------
 // owner drawn stuff
 // ---------------------------------------------------------------------------
 
 bool wxWindow::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
 {
+#if wxUSE_OWNER_DRAWN
     // is it a menu item?
     if ( id == 0 )
     {
@@ -2494,11 +2494,14 @@ bool wxWindow::MSWOnDrawItem(int id, WXDRAWITEMSTRUCT *itemStruct)
         return ((wxControl *)item)->MSWOnDraw(itemStruct);
     }
     else
+#endif
         return FALSE;
+
 }
 
 bool wxWindow::MSWOnMeasureItem(int id, WXMEASUREITEMSTRUCT *itemStruct)
 {
+#if wxUSE_OWNER_DRAWN
     // is it a menu item?
     if ( id == 0 )
     {
@@ -2516,10 +2519,9 @@ bool wxWindow::MSWOnMeasureItem(int id, WXMEASUREITEMSTRUCT *itemStruct)
     {
         return ((wxControl *)item)->MSWOnMeasure(itemStruct);
     }
-
+#endif  // owner-drawn menus
     return FALSE;
 }
-#endif  // owner-drawn menus
 
 // ---------------------------------------------------------------------------
 // colours and palettes