]> git.saurik.com Git - wxWidgets.git/commitdiff
It's now possible to drag a listbox filled with entries
authorRobert Roebling <robert@roebling.de>
Tue, 8 Sep 1998 18:21:16 +0000 (18:21 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 8 Sep 1998 18:21:16 +0000 (18:21 +0000)
  Removed #ifdef 0 from resource.cpp around reading code
    for wxRadioBox
  #ifdeffed a Refresh call that causes DialogEd to dump
   code in wxGTK when deleting an item
  Suppressed some warnings
  Readded socket stuffto gtk.inc

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

docs/gtk/install.txt
include/wx/gtk/listbox.h
include/wx/gtk1/listbox.h
include/wx/protocol/protocol.h
include/wx/tokenzr.h
src/Makefile.in
src/common/resource.cpp
src/gtk.inc
src/gtk/listbox.cpp
src/gtk1/listbox.cpp
utils/dialoged/src/reseditr.cpp

index 05daf515a8b270616ea8a6ecc8165d5f25f097e7..32b44fe0532e3c3180766f99d02f74235376d6b5 100644 (file)
@@ -188,15 +188,11 @@ The following options handle the kind of library you want to build.
 * Feature Options
 -------------------
 
-When using the Windows version of wxWindows, it is possible
-to edit the file /include/wx/msw/setup.h in order to enable
-or disable some features of wxWindows so that the resulting
-binaries get smaller.
-
 As I don't yet care for binary size and target mainly at
 producing a shared library, wxWindows's configure system auto-
 matically enables all features, as long as they are already
-implemented.
+implemented. It is currently NOT possible to disable these
+options (in contrast to what configure tells you).
 
 * Compiling
 -------------
@@ -204,19 +200,14 @@ implemented.
 The following must be done in the base directory (e.g. ~/wxGTK
 or ~/wxWin or whatever)
 
-Dependencies are generated automatically using
-
-       make depend
-       
-(For some reason, this doesn't seem to work.)
-
-Now the makefiles are created you can compile everything is as simple
-as typing:
+Now the makefiles are created and you can compile everything 
+by typing:
 
        make
 
 make yourself some coffee, as it will try to compile ALL the 
-files in this distribution.
+files in this distribution. During compilation, you'll get
+a few warning messages.
 
 if you want to be more selective:
 
index 637b87e6ab9b9973ef02c29caee505eb09c51194..ade4af225a106cca89e5240f756cc5df70337331 100644 (file)
@@ -90,6 +90,7 @@ class wxListBox: public wxControl
     
     int GetIndex( GtkWidget *item ) const;
     GtkWidget *GetConnectWidget(void);
+    bool IsOwnGtkWindow( GdkWindow *window );
     
   private:
   
index 637b87e6ab9b9973ef02c29caee505eb09c51194..ade4af225a106cca89e5240f756cc5df70337331 100644 (file)
@@ -90,6 +90,7 @@ class wxListBox: public wxControl
     
     int GetIndex( GtkWidget *item ) const;
     GtkWidget *GetConnectWidget(void);
+    bool IsOwnGtkWindow( GdkWindow *window );
     
   private:
   
index c3773a750d549ed970596433afca0ab230b493ee..d0126a922b83ded6ca8c678ba2f562bdf35f6e9c 100644 (file)
@@ -63,15 +63,15 @@ public:
   wxProtocol();
 
   bool Reconnect();
-  virtual bool Connect(const wxString& host) { return FALSE; } 
-  virtual bool Connect(wxSockAddress& addr) { return wxSocketClient::Connect(addr); }
+  virtual bool Connect( const wxString& WXUNUSED(host) ) { return FALSE; } 
+  virtual bool Connect( wxSockAddress& addr) { return wxSocketClient::Connect(addr); }
 
   virtual bool Abort() = 0;
   virtual wxInputStream *GetInputStream(const wxString& path) = 0;
   virtual wxProtocolError GetError() = 0;
   virtual wxString GetContentType() { return (char *)NULL; }
-  virtual void SetUser(const wxString& user) {}
-  virtual void SetPassword(const wxString& passwd) {}
+  virtual void SetUser(const wxString& WXUNUSED(user)) {}
+  virtual void SetPassword(const wxString& WXUNUSED(passwd) ) {}
 };
 
 wxProtocolError WXDLLEXPORT GetLine(wxSocketBase *sock, wxString& result);
index 7942996e29ed987377b378f6b9b1237207a7b724..7de58feed3dede669396d2cd1d770db52548a8a2 100644 (file)
@@ -18,6 +18,7 @@
 
 #include "wx/object.h"
 #include "wx/string.h"
+#include "wx/filefn.h"
 
 class wxStringTokenizer : wxObject {
 public:
index 02b147b1336dcd1b3d6c47cb7f1f80b5bbe92a9b..d2fb1fd750984793480ae5b213cc4bd3e8064c71 100644 (file)
@@ -51,6 +51,7 @@ install::
           /usr/local/include/wx \
           /usr/local/include/wx/gtk \
           /usr/local/include/wx/common \
+          /usr/local/include/wx/protocol \
           /usr/local/include/wx/generic
        @echo "  Copying headers from /include/wx"
        @cd $(WXBASEDIR)/include/wx ; \
@@ -70,6 +71,12 @@ install::
          rm -f $(includedir)/wx/generic/$$f ; \
          $(INSTALL_DATA) $$f $(includedir)/wx/generic/$$f ; \
        done
+       @echo "  Copying headers from /include/wx/protocol"
+       @cd $(WXBASEDIR)/include/wx/protocol ; \
+       for f in *.h ; do \
+         rm -f $(includedir)/wx/protocol/$$f ; \
+         $(INSTALL_DATA) $$f $(includedir)/wx/protocol/$$f ; \
+       done
        @echo "  Copying wx-config"
        @cd $(WXBASEDIR) ; \
          rm -f $(bindir)/wx-config ; \
index 5cda920f991a3570ea2a7bb0f1b6e449fca17523..10da526e294c3b0ca18da6978fc1ccc175111125 100644 (file)
@@ -1127,7 +1127,7 @@ wxItemResource *wxResourceInterpretControl(wxResourceTable& table, PrologExpr *e
    }
   }
 #endif
-#if 0
+#if 1
   else if (controlType == "wxRadioBox")
   {
     PrologExpr *valueList = (PrologExpr *) NULL;
index dd40309ee0591aaec64e52379a0f0e36c866a3a6..7cffd5077bb1b04564db9539822819ab6ba6d41f 100644 (file)
@@ -58,6 +58,11 @@ LIB_CPP_SRC=\
  common/socket.cpp \
  common/sckaddr.cpp \
  common/sckipc.cpp \
+ common/protocol.cpp \
+ common/ftp.cpp \
+ common/http.cpp \
+ common/url.cpp \
+ common/tokenzr.cpp \
 \
  gtk/accel.cpp \
  gtk/app.cpp \
index fdd21a83ee8081060299261f9a25167403766594..4732b2814d36a9d46f85eb764f805b2af9382788 100644 (file)
@@ -426,4 +426,19 @@ void wxListBox::SetFont( const wxFont &font )
   }
 }
 
+bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
+{
+  if (wxWindow::IsOwnGtkWindow( window )) return TRUE;
+  
+  GList *child = m_list->children;
+  while (child)
+  {
+    GtkBin *bin = (GtkBin*) child->data;
+    if (bin->child->window == window) return TRUE;
+    child = child->next;
+  }
+  
+  return FALSE;
+}
+
 
index fdd21a83ee8081060299261f9a25167403766594..4732b2814d36a9d46f85eb764f805b2af9382788 100644 (file)
@@ -426,4 +426,19 @@ void wxListBox::SetFont( const wxFont &font )
   }
 }
 
+bool wxListBox::IsOwnGtkWindow( GdkWindow *window )
+{
+  if (wxWindow::IsOwnGtkWindow( window )) return TRUE;
+  
+  GList *child = m_list->children;
+  while (child)
+  {
+    GtkBin *bin = (GtkBin*) child->data;
+    if (bin->child->window == window) return TRUE;
+    child = child->next;
+  }
+  
+  return FALSE;
+}
+
 
index 6dd1d8987df442875a47e42273319223b98eb6ca..b371ebfb92d602bfb555a6e02f24765f2b28f452 100644 (file)
@@ -1451,7 +1451,9 @@ bool wxResourceManager::DeleteResource(wxWindow *win)
     {
       RemoveSelection(item);
       childHandler->SelectItem(FALSE);
+#ifndef __WXGTK__
       item->GetParent()->Refresh();
+#endif
     }
   }