[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kafka
Subject:    Re: patch for moving (again :o( )
From:       Emmanuel Touzery <emmanuel.touzery () wanadoo ! fr>
Date:       2001-05-04 13:05:35
[Download RAW message or body]

Le Vendredi 4 Mai 2001 14:51, Nikolas Zimmermann a écrit :
> On Friday 04 May 2001 14:34, Emmanuel Touzery wrote:
> > Hi!
> >
> > 	This version now includes moving several nodes since the selection code
> > has been improved :o)
> > 	It makes the code slightly complicated, but it works well enough :o)
> >
> > 	please tell me it's against the latest version (how can i check that?)
> >
> > 	thank you,
> >
> > emmanuel
>
> Great, applying worked.

yeah!

> you forget the .h patch but that doesn't matter

anyway i send it now.

> overall i simplified code (nextNodeInTree is obsolete, we
> have a nodeiterator..)

oh yes? it works this way too? good :o)
there is a segv i talk about in qscrollview::repaint() or something like that 
(search sigsegv in the sources). if you can fix that maybe (i don't get it).

> Will apply soon

great :o)

> Bye
>  Bye
>   Niko

thanks,

emmanuel :o)
["kafkamove.h.patch" (text/x-c++)]

Index: kafkahtmlpart.h
===================================================================
RCS file: /home/kde/kdenonbeta/kafka/kafka/library/kafkahtmlpart.h,v
retrieving revision 1.25
diff -u -3 -p -r1.25 kafkahtmlpart.h
--- kafkahtmlpart.h	2001/04/25 21:25:12	1.25
+++ kafkahtmlpart.h	2001/05/04 12:22:22
@@ -79,7 +79,8 @@ class KafkaHTMLPart : public KHTMLPart
 	virtual void khtmlMouseDoubleClickEvent(khtml::MouseDoubleClickEvent *pEvent);
 	virtual void khtmlMouseMoveEvent(khtml::MouseMoveEvent *);
 	virtual void khtmlDrawContentsEvent(khtml::DrawContentsEvent *pEvent);
-
+	virtual bool isSelected(DOM::Node& node, const int offset) const;
+	virtual DOM::Node nextNodeInTree(const DOM::Node& node) const;
     private:
 	DOM::Node currentNode;
 	DOM::Range selectionRange;
@@ -88,6 +89,8 @@ class KafkaHTMLPart : public KHTMLPart
 	long m_mousePressOffset;
 	long m_mouseReleaseOffset;
 
+	enum DragState { diNone, diPending };
+	DragState dragState;
 	KConfig *config;
 };
 

_______________________________________________
Kde-kafka mailing list
Kde-kafka@master.kde.org
http://master.kde.org/mailman/listinfo/kde-kafka


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic