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

List:       kde-kafka
Subject:    Re: Event Filtering and Rendering Kafka Objects
From:       Stefan Schimanski <1Stein () gmx ! de>
Date:       2000-11-15 9:59:48
[Download RAW message or body]

> 1. Trapping the event and event type
>
> We can install an event filter over our main widget (KafkaEdit?) which can

khtml consists of the KHTMLPart and KHTMLView. The view is a normal 
scrollwidget. Just inherit from this widget and make KHTMLPart use it as 
view. There you will get _all_ events. There is also a method somewhere to 
get the DOM object behind a coordinate of the mouse. It is used for example 
for links and selections at the moment.

> 2. Making the object visually interactive
>
> We have a problem here in that AFAIK all objects that are rendered from the
> contents of the DOM are non-interactive. 

right.

>  - Change KHTML so an object can be made interactive.
>  - Create our own part that implements the first part of KHTML
> (tokenizing), the second part (parsing), and before the third part (layout
> rendering) we can subclass from the KHTML rendering classes and add our own
> methods to implement interactivity functionality to the various objects
> before displaying them.

garbage ;-) in the KHTMLView's paint method the whole layout is first 
rendered into a QPixmap. So you're free to draw anything you want above the 
rendered stuff. For example you can draw a box while resizing an image.

> Any comments/ideas/flames?
>
> 	Jono

Schimmi

-- 
#! /bin/sh
for DVDs in Linux screw the MPAA and ; do dig $DVDs.z.zoy.org ; done | \
   perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' | gunzip
_______________________________________________
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