]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied a few patches,
authorRobert Roebling <robert@roebling.de>
Sat, 9 Oct 1999 13:32:40 +0000 (13:32 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 9 Oct 1999 13:32:40 +0000 (13:32 +0000)
  Put some life into iODBC again,

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

Makefile.in
configure.in
distrib/msw/tmake/unx.t
include/wx/db.h
include/wx/defs.h
samples/db/dbtest.h
src/common/db.cpp
src/common/imagbmp.cpp
src/gtk/listbox.cpp
src/gtk1/listbox.cpp

index 7c2cabbc9f466a152e5c93e8cac890fa4fe8a63d..3be6793df7fd711d0763b83ca5298b14d3211aac 100644 (file)
@@ -1,5 +1,5 @@
 #
-# This file was automatically generated by tmake at 11:14, 1999/10/09
+# This file was automatically generated by tmake at 14:12, 1999/10/09
 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
 
 #
@@ -44,8 +44,9 @@ VP6 = @top_srcdir@/src/html
 VP7 = @top_srcdir@/src/png
 VP8 = @top_srcdir@/src/jpeg
 VP9 = @top_srcdir@/src/zlib
+VP10 = @top_srcdir@/src/iodbc
 
-VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9)
+VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9):$(VP10)
 
 top_srcdir = @top_srcdir@
 prefix = @prefix@
@@ -1928,6 +1929,23 @@ JPEGOBJS    = \
                jquant2.o \
                jdmerge.o
 
+IODBCOBJS = \
+               catalog.o \
+               connect.o \
+               dlf.o \
+               dlproc.o \
+               execute.o \
+               fetch.o \
+               hdbc.o \
+               henv.o \
+               herr.o \
+               hstmt.o \
+               info.o \
+               itrace.o \
+               misc.o \
+               prepare.o \
+               result.o
+
 GUIOBJS = @GUIOBJS@
 GUIDEPS = @GUIDEPS@
 GUIHEADERS = @GUIHEADERS@
@@ -1938,7 +1956,7 @@ GENERICDEPS = @GENERICDEPS@
 UNIXOBJS = @UNIXOBJS@
 UNIXDEPS = @UNIXDEPS@
 
-OBJECTS = @ALL_OBJECTS@
+OBJECTS = @ALL_OBJECTS@ $(IODBCOBJS)
 
 DEPFILES = @ALL_DEPFILES@
 
index 5eb7e82736518451cb91d066311352d393dd5658..0e2fe1cd60363b91b50ff8ea81210a36c6bdecd2 100644 (file)
@@ -774,7 +774,7 @@ else
   DEFAULT_wxUSE_ZLIB=yes
   DEFAULT_wxUSE_LIBPNG=yes
   DEFAULT_wxUSE_LIBJPEG=yes
-  DEFAULT_wxUSE_ODBC=no
+  DEFAULT_wxUSE_ODBC=yes
 
   DEFAULT_wxUSE_STD_IOSTREAM=no
   DEFAULT_wxUSE_FILE=yes
@@ -2334,14 +2334,9 @@ if test "$wxUSE_LONGLONG" = "yes"; then
 fi
 
 if test "$wxUSE_SOCKETS" = "yes" ; then
-    if test "$wxUSE_THREADS" = "yes" ; then
-        AC_DEFINE(wxUSE_SOCKETS)
-        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
-        INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
-    else
-        AC_MSG_WARN(Socket classes require --with-threads and won't be compiled without it)
-        wxUSE_SOCKETS=0
-    fi
+    AC_DEFINE(wxUSE_SOCKETS)
+    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket"
+    INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
 fi
 
 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
@@ -2468,6 +2463,7 @@ dnl ----------------------------------------------------------------
 IODBC_C_SRC=""
 if test "$wxUSE_ODBC" = "yes" ; then
   AC_DEFINE(wxUSE_ODBC)
+  WXODBCFLAG="-D_IODBC_"
   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
 fi
 
@@ -2823,7 +2819,7 @@ if test "$GXX" = yes ; then
     dnl        doing this... (VZ)
     dnl CXXWARNINGS="-Wall -Werror"
 fi
-EXTRA_CFLAGS="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES"
+EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
 
 CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS"
 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
@@ -2938,6 +2934,7 @@ AC_OUTPUT([
             samples/checklst/Makefile
             samples/config/Makefile
             samples/controls/Makefile
+            samples/db/Makefile
             samples/dialogs/Makefile
             samples/docview/Makefile
             samples/docvwmdi/Makefile
index 0215c79554f7f3366761294f525f204406c3f56d..c0edcfa59e1870d0927e161010d16c885eab4b89 100644 (file)
@@ -217,8 +217,9 @@ VP6 = @top_srcdir@/src/html
 VP7 = @top_srcdir@/src/png
 VP8 = @top_srcdir@/src/jpeg
 VP9 = @top_srcdir@/src/zlib
+VP10 = @top_srcdir@/src/iodbc
 
-VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9)
+VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9):$(VP10)
 
 top_srcdir = @top_srcdir@
 prefix = @prefix@
@@ -487,6 +488,23 @@ JPEGOBJS    = \
                jquant2.o \
                jdmerge.o
 
+IODBCOBJS = \
+               catalog.o \
+               connect.o \
+               dlf.o \
+               dlproc.o \
+               execute.o \
+               fetch.o \
+               hdbc.o \
+               henv.o \
+               herr.o \
+               hstmt.o \
+               info.o \
+               itrace.o \
+               misc.o \
+               prepare.o \
+               result.o
+
 GUIOBJS = @GUIOBJS@
 GUIDEPS = @GUIDEPS@
 GUIHEADERS = @GUIHEADERS@
@@ -497,7 +515,7 @@ GENERICDEPS = @GENERICDEPS@
 UNIXOBJS = @UNIXOBJS@
 UNIXDEPS = @UNIXDEPS@
 
-OBJECTS = @ALL_OBJECTS@
+OBJECTS = @ALL_OBJECTS@ $(IODBCOBJS)
 
 DEPFILES = @ALL_DEPFILES@
 
index 979f566ae77cf95ed58f61dc8a27054addc6e91f..7ba5b74748603b4456671c307cde595eedf4b55f 100644 (file)
@@ -429,6 +429,7 @@ struct DbList
 
 
 #if __WXDEBUG__ > 0
+#include "wx/object.h"
 class CstructTablesInUse : public wxObject
 {
        public:
index d17af9918c8f572363ae57bdb32651f9fbc6b84a..e9a831e9913e507e7baa2927fb6707430e5c65e1 100644 (file)
         #endif
     #endif // Sun
 
-    #if defined(__hpux) && !defined(__HPUX__)
-        #define __HPUX__
-    #endif // HP-UX
-
 #elif defined(applec) || defined(THINK_C) || ( defined( __MWERKS__ ) && !defined(__INTEL__) )
         // MacOS
 #elif defined(__OS2__)
 #undef PACKAGE
 #undef VERSION
 
+// this has to be done after including setup.h which might
+// define __HPUX__ 1 itself
+#if defined(__hpux) && !defined(__HPUX__)
+    #define __HPUX__
+#endif // HP-UX
+
 // if we're on a Unixsystem but didn't use configure (so that setup.h didn't
 // define __UNIX__), do define __UNIX__ now
 #if !defined(__UNIX__) && defined(__UNIX_LIKE__)
@@ -873,11 +875,11 @@ enum wxStretch
 /*
  * wxGauge flags
  */
-#define wxGA_PROGRESSBAR     0x0004
 #define wxGA_HORIZONTAL      wxHORIZONTAL
 #define wxGA_VERTICAL        wxVERTICAL
+#define wxGA_PROGRESSBAR     0x0010
 // Windows only
-#define wxGA_SMOOTH          0x0010
+#define wxGA_SMOOTH          0x0020
 
 /*
  * wxSlider flags
index 2a18570f9bbe220dbe58ba40003395a2f24fefbe..a1e2e5ec398f267e1cc21a5fb7cb38cf62d698ff 100644 (file)
@@ -24,6 +24,9 @@ enum          DialogModes {mView,mCreate,mEdit,mSearch};
 #define EDIT_PARAMETERS                200
 #define ABOUT_DEMO                     300
 
+// this seems to be missing, Robert Roebling (?)
+#define MAX_PATH   200
+
 
 // Name of the table to be created/opened
 const char     CONTACT_TABLE_NAME[]            =       "contacts";
@@ -40,11 +43,7 @@ enum Language {langENGLISH, langFRENCH, langGERMAN, langSPANISH, langOTHER};
 class CeditorDlg;
 class CparameterDlg;
 
-#ifdef __UNIX__
-const char paramFilename[] = "../dbtest.cfg";
-#else
 const char paramFilename[] = "dbtest.cfg";
-#endif
 
 
 /*
index 6f9c399bff8e144bae49bd7d06a53f3974c42edf..b5a4ae5a4de0b551ebde5270f17a63db21b30471 100644 (file)
 DbList* WXDLLEXPORT PtrBegDbList = 0;
 
 #if __WXDEBUG__ > 0
+        #if   wxMAJOR_VERSION == 2
+                #include "wx/object.h"
+                #include "wx/list.h"
+                #include "wx/utils.h"
+                #include "wx/msgdlg.h"
+       #endif
        extern wxList TablesInUse;
 #endif
 
index dca81ce5fc9bc51d40aeab326bc5b1481d6defc2..7b6f02cb3f7c28f589c9f70cc171070bda2860d9 100644 (file)
@@ -366,7 +366,7 @@ bool wxBMPHandler::LoadFile( wxImage *image, wxInputStream& stream, bool WXUNUSE
                    ptr[poffset] = temp;
                    temp = (aWord & gmask) >> gshift;
                    ptr[poffset + 1] = temp;
-                   temp = (aWord & bmask) >> gshift;
+                   temp = (aWord & bmask) >> bshift;
                    ptr[poffset + 2] = temp;
                    column++;
                }
index 0336ffec910bd05b1335c7123777ec827f2b5638..b4652068770b5345fb3f6dce4d1a1162bd505e23 100644 (file)
@@ -291,6 +291,12 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     gtk_container_add( GTK_CONTAINER(m_widget), GTK_WIDGET(m_list) );
 #endif
 
+    /* make list scroll when moving the focus down using cursor keys */
+    gtk_container_set_focus_vadjustment(
+        GTK_CONTAINER(m_list),
+        gtk_scrolled_window_get_vadjustment(
+           GTK_SCROLLED_WINDOW(m_widget)));
+
     gtk_widget_show( GTK_WIDGET(m_list) );
 
     wxSize newSize = size;
index 0336ffec910bd05b1335c7123777ec827f2b5638..b4652068770b5345fb3f6dce4d1a1162bd505e23 100644 (file)
@@ -291,6 +291,12 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
     gtk_container_add( GTK_CONTAINER(m_widget), GTK_WIDGET(m_list) );
 #endif
 
+    /* make list scroll when moving the focus down using cursor keys */
+    gtk_container_set_focus_vadjustment(
+        GTK_CONTAINER(m_list),
+        gtk_scrolled_window_get_vadjustment(
+           GTK_SCROLLED_WINDOW(m_widget)));
+
     gtk_widget_show( GTK_WIDGET(m_list) );
 
     wxSize newSize = size;