It's now possible to drag a listbox filled with entries
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
This commit is contained in:
@@ -188,15 +188,11 @@ The following options handle the kind of library you want to build.
|
|||||||
* Feature Options
|
* 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
|
As I don't yet care for binary size and target mainly at
|
||||||
producing a shared library, wxWindows's configure system auto-
|
producing a shared library, wxWindows's configure system auto-
|
||||||
matically enables all features, as long as they are already
|
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
|
* Compiling
|
||||||
-------------
|
-------------
|
||||||
@@ -204,19 +200,14 @@ implemented.
|
|||||||
The following must be done in the base directory (e.g. ~/wxGTK
|
The following must be done in the base directory (e.g. ~/wxGTK
|
||||||
or ~/wxWin or whatever)
|
or ~/wxWin or whatever)
|
||||||
|
|
||||||
Dependencies are generated automatically using
|
Now the makefiles are created and you can compile everything
|
||||||
|
by typing:
|
||||||
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:
|
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
make yourself some coffee, as it will try to compile ALL the
|
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:
|
if you want to be more selective:
|
||||||
|
|
||||||
|
@@ -90,6 +90,7 @@ class wxListBox: public wxControl
|
|||||||
|
|
||||||
int GetIndex( GtkWidget *item ) const;
|
int GetIndex( GtkWidget *item ) const;
|
||||||
GtkWidget *GetConnectWidget(void);
|
GtkWidget *GetConnectWidget(void);
|
||||||
|
bool IsOwnGtkWindow( GdkWindow *window );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@@ -90,6 +90,7 @@ class wxListBox: public wxControl
|
|||||||
|
|
||||||
int GetIndex( GtkWidget *item ) const;
|
int GetIndex( GtkWidget *item ) const;
|
||||||
GtkWidget *GetConnectWidget(void);
|
GtkWidget *GetConnectWidget(void);
|
||||||
|
bool IsOwnGtkWindow( GdkWindow *window );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@@ -63,15 +63,15 @@ public:
|
|||||||
wxProtocol();
|
wxProtocol();
|
||||||
|
|
||||||
bool Reconnect();
|
bool Reconnect();
|
||||||
virtual bool Connect(const wxString& host) { return FALSE; }
|
virtual bool Connect( const wxString& WXUNUSED(host) ) { return FALSE; }
|
||||||
virtual bool Connect( wxSockAddress& addr) { return wxSocketClient::Connect(addr); }
|
virtual bool Connect( wxSockAddress& addr) { return wxSocketClient::Connect(addr); }
|
||||||
|
|
||||||
virtual bool Abort() = 0;
|
virtual bool Abort() = 0;
|
||||||
virtual wxInputStream *GetInputStream(const wxString& path) = 0;
|
virtual wxInputStream *GetInputStream(const wxString& path) = 0;
|
||||||
virtual wxProtocolError GetError() = 0;
|
virtual wxProtocolError GetError() = 0;
|
||||||
virtual wxString GetContentType() { return (char *)NULL; }
|
virtual wxString GetContentType() { return (char *)NULL; }
|
||||||
virtual void SetUser(const wxString& user) {}
|
virtual void SetUser(const wxString& WXUNUSED(user)) {}
|
||||||
virtual void SetPassword(const wxString& passwd) {}
|
virtual void SetPassword(const wxString& WXUNUSED(passwd) ) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
wxProtocolError WXDLLEXPORT GetLine(wxSocketBase *sock, wxString& result);
|
wxProtocolError WXDLLEXPORT GetLine(wxSocketBase *sock, wxString& result);
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
#include "wx/object.h"
|
#include "wx/object.h"
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
|
#include "wx/filefn.h"
|
||||||
|
|
||||||
class wxStringTokenizer : wxObject {
|
class wxStringTokenizer : wxObject {
|
||||||
public:
|
public:
|
||||||
|
@@ -51,6 +51,7 @@ install::
|
|||||||
/usr/local/include/wx \
|
/usr/local/include/wx \
|
||||||
/usr/local/include/wx/gtk \
|
/usr/local/include/wx/gtk \
|
||||||
/usr/local/include/wx/common \
|
/usr/local/include/wx/common \
|
||||||
|
/usr/local/include/wx/protocol \
|
||||||
/usr/local/include/wx/generic
|
/usr/local/include/wx/generic
|
||||||
@echo " Copying headers from /include/wx"
|
@echo " Copying headers from /include/wx"
|
||||||
@cd $(WXBASEDIR)/include/wx ; \
|
@cd $(WXBASEDIR)/include/wx ; \
|
||||||
@@ -70,6 +71,12 @@ install::
|
|||||||
rm -f $(includedir)/wx/generic/$$f ; \
|
rm -f $(includedir)/wx/generic/$$f ; \
|
||||||
$(INSTALL_DATA) $$f $(includedir)/wx/generic/$$f ; \
|
$(INSTALL_DATA) $$f $(includedir)/wx/generic/$$f ; \
|
||||||
done
|
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"
|
@echo " Copying wx-config"
|
||||||
@cd $(WXBASEDIR) ; \
|
@cd $(WXBASEDIR) ; \
|
||||||
rm -f $(bindir)/wx-config ; \
|
rm -f $(bindir)/wx-config ; \
|
||||||
|
@@ -1127,7 +1127,7 @@ wxItemResource *wxResourceInterpretControl(wxResourceTable& table, PrologExpr *e
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if 0
|
#if 1
|
||||||
else if (controlType == "wxRadioBox")
|
else if (controlType == "wxRadioBox")
|
||||||
{
|
{
|
||||||
PrologExpr *valueList = (PrologExpr *) NULL;
|
PrologExpr *valueList = (PrologExpr *) NULL;
|
||||||
|
@@ -58,6 +58,11 @@ LIB_CPP_SRC=\
|
|||||||
common/socket.cpp \
|
common/socket.cpp \
|
||||||
common/sckaddr.cpp \
|
common/sckaddr.cpp \
|
||||||
common/sckipc.cpp \
|
common/sckipc.cpp \
|
||||||
|
common/protocol.cpp \
|
||||||
|
common/ftp.cpp \
|
||||||
|
common/http.cpp \
|
||||||
|
common/url.cpp \
|
||||||
|
common/tokenzr.cpp \
|
||||||
\
|
\
|
||||||
gtk/accel.cpp \
|
gtk/accel.cpp \
|
||||||
gtk/app.cpp \
|
gtk/app.cpp \
|
||||||
|
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1451,7 +1451,9 @@ bool wxResourceManager::DeleteResource(wxWindow *win)
|
|||||||
{
|
{
|
||||||
RemoveSelection(item);
|
RemoveSelection(item);
|
||||||
childHandler->SelectItem(FALSE);
|
childHandler->SelectItem(FALSE);
|
||||||
|
#ifndef __WXGTK__
|
||||||
item->GetParent()->Refresh();
|
item->GetParent()->Refresh();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user