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
* 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
-------------
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:
int GetIndex( GtkWidget *item ) const;
GtkWidget *GetConnectWidget(void);
+ bool IsOwnGtkWindow( GdkWindow *window );
private:
int GetIndex( GtkWidget *item ) const;
GtkWidget *GetConnectWidget(void);
+ bool IsOwnGtkWindow( GdkWindow *window );
private:
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);
#include "wx/object.h"
#include "wx/string.h"
+#include "wx/filefn.h"
class wxStringTokenizer : wxObject {
public:
/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 ; \
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 ; \
}
}
#endif
-#if 0
+#if 1
else if (controlType == "wxRadioBox")
{
PrologExpr *valueList = (PrologExpr *) NULL;
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 \
}
}
+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;
+}
+
}
}
+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;
+}
+
{
RemoveSelection(item);
childHandler->SelectItem(FALSE);
+#ifndef __WXGTK__
item->GetParent()->Refresh();
+#endif
}
}