# End Source File
# Begin Source File
+SOURCE=..\..\include\wx\gizmos\editlbox.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\wx\gizmos\splittree.h
# End Source File
# End Group
# End Source File
# Begin Source File
+SOURCE=.\editlbox.cpp
+# End Source File
+# Begin Source File
+
SOURCE=.\splittree.cpp
# End Source File
# End Target
LIBTARGET=$(WXDIR)\lib\gizmos.lib
-OBJECTS = multicell.obj splittree.obj
+OBJECTS = multicell.obj splittree.obj editlbox.obj
!include $(WXDIR)\src\makelib.b32
LIBTARGET=$(WXDIR)\lib\gizmos.lib
-OBJECTS = basic.obj basic2.obj canvas.obj ogldiag.obj lines.obj misc.obj divided.obj constrnt.obj\
- composit.obj drawn.obj bmpshape.obj mfutils.obj
+OBJECTS = multicell.obj splittree.obj editlbox.obj
!include $(WXDIR)\src\makelib.bcc
WXDIR = ../../..
LIBTARGET=$(WXDIR)/lib/libgizmos.a
-OBJECTS = multicell.o splittree.o
+OBJECTS = multicell.o splittree.o editlbox.o
include $(WXDIR)/src/makelib.g95
LIB_CPP_SRC=\
\
multicell.o\
+ editlbox.o\
splittree.o
all: $(GIZMOSLIB)
!include $(WXDIR)\src\makevc.env
-OBJECTS = $(D)\multicell.obj $(D)\splittree.obj
+OBJECTS = $(D)\multicell.obj $(D)\splittree.obj $(D)\editlbox.obj
LIBTARGET=$(WXDIR)\lib\gizmos$(LIBEXT).lib
$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
<<
+$(D)\editlbox.obj: editlbox.$(SRCSUFF)
+ cl @<<
+$(CPPFLAGS) /c /Fo$@ /Tp $(*B).$(SRCSUFF)
+<<
+
clean:
-erase $(D)\*.obj
-erase *.sbr
NAME = gizmos
LNK = $(name).lnk
-OBJECTS = multicell.obj splittree.obj
+OBJECTS = multicell.obj splittree.obj editlbox.obj
all: $(GIZMOSLIB)
#include "wx/generic/treectlg.h"
#include "wx/gizmos/splittree.h"
+#include <math.h>
/*
* wxRemotelyScrolledTreeCtrl
scrolledWindow->GetScrollPixelsPerUnit(& xppu2, & yppu2);
dc.SetDeviceOrigin( -startX * xppu1, -startY * yppu2 );
- dc.SetUserScale( win->GetScaleX(), win->GetScaleY() );
+ // dc.SetUserScale( win->GetScaleX(), win->GetScaleY() );
}
}
wxRect itemRect;
if (GetBoundingRect(GetRootItem(), itemRect))
{
- int itemHeight = itemRect.GetHeight();
+ // Actually, the real height seems to be 1 less than reported
+ // (e.g. 16 instead of 16)
+ int itemHeight = itemRect.GetHeight() - 1;
int w, h;
GetClientSize(&w, &h);
wxRect rect(0, 0, 0, 0);
CalcTreeSize(rect);
- int treeViewHeight = rect.GetHeight()/itemHeight;
+
+ double f = ((double) (rect.GetHeight()) / (double) itemHeight) ;
+ int treeViewHeight = (int) ceil(f);
int scrollPixelsPerLine = itemHeight;
int scrollPos = - (itemRect.y / itemHeight);
void wxRemotelyScrolledTreeCtrl::CalcTreeSize(const wxTreeItemId& id, wxRect& rect)
{
- // TODO: implement GetFirst/NextVisibleItem
- // for wxGenericTreeCtrl, plus GetBoundingRect.
-
// More efficient implementation would be to find the last item (but how?)
// Q: is the bounding rect relative to the top of the virtual tree workspace
// or the top of the window? How would we convert?
// don't cause an infinite loop
static bool inOnScroll = FALSE;
if (inOnScroll)
+ {
+ event.Skip();
return;
+ }
inOnScroll = TRUE;
int orient = event.GetOrientation();
contrib/src/xml/*.bmp
contrib/src/xml/README
+contrib/src/xml/expat/copying.txt
+contrib/src/xml/expat/xmlparse/*.c
+contrib/src/xml/expat/xmlparse/*.h
+contrib/src/xml/expat/xmltok/*.c
+contrib/src/xml/expat/xmltok/*.h
+
contrib/include/wx/xml/*.h
contrib/samples/xml/*.cpp
#endif
if (tag.GetParam(wxT("TYPE")) == wxT("text/sitemap"))
{
+/*
+ // We're reading in items at level zero, which must mean we want to specify
+ // our own 'books', so chuck out the first (empty) one that AddBook already
+ // created
+ if (m_firstTime && (m_Level == 0) && (m_ItemsCnt > 0))
+ {
+ delete[] m_Items[0].m_Name;
+ delete[] m_Items[0].m_Page;
+ m_ItemsCnt --;
+ }
+ else
+ {
+ if (m_ItemsCnt % wxHTML_REALLOC_STEP == 0)
+ m_Items = (wxHtmlContentsItem*) realloc(m_Items, (m_ItemsCnt + wxHTML_REALLOC_STEP) * sizeof(wxHtmlContentsItem));
+ }
+*/
if (m_ItemsCnt % wxHTML_REALLOC_STEP == 0)
m_Items = (wxHtmlContentsItem*) realloc(m_Items,
(m_ItemsCnt + wxHTML_REALLOC_STEP) *
sizeof(wxHtmlContentsItem));
+
m_Items[m_ItemsCnt].m_Level = m_Level;
m_Items[m_ItemsCnt].m_ID = m_ID;
m_Items[m_ItemsCnt].m_Page = new wxChar[m_Page.Length() + 1];
notifyData.hWnd = (HWND) m_hWnd;
notifyData.uCallbackMessage = sm_taskbarMsg;
notifyData.uFlags = NIF_MESSAGE ;
- if (icon.Ok())
+ if (icon.Ok())
{
- notifyData.uFlags |= NIF_ICON;
- notifyData.hIcon = (HICON) icon.GetHICON();
+ notifyData.uFlags |= NIF_ICON;
+ notifyData.hIcon = (HICON) icon.GetHICON();
}
if (((const wxChar*) tooltip != NULL) && (tooltip != wxT("")))