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

List:       kde-core-devel
Subject:    Re: Can we drop KWrite ?
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-03-13 15:47:16
[Download RAW message or body]

On Tuesday 13 March 2001 15:38, Simon Hausmann wrote:
> What do you think about having a class derived from Part (or ROP, or RWP) to
> provide a default implementation of hitTest utilizing multiple views (and thus
> having addView/removeView methods and the like) ?

Sounds very good, except if you make koffice rely on it (see koffice-devel) ;-)

The problem is the base class is a big one though. Either we'll have to
write one multi-view class per type of part (Part, ROP, RWP), or to limit
the possibilities :(( Argl.
What about adding this behaviour to Part itself, kinda of a "default multi-view mode",
already reimplemented by KOffice ? AFAICS this could be done in a compatible
way: either setWidget is called, and we are in single-view mode, or
addView/removeView are called, and we are in multi-view mode
(and maybe widget() should return the first view, in case of embedding
in a single-view environment, e.g. konqueror).

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/, http://www.konqueror.org/
KDE, Making The Future of Computing Available Today

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

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