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

List:       kfm-devel
Subject:    Re: konqueror components (was Re: konqueror issues)
From:       David Faure <David.Faure () insa-lyon ! fr>
Date:       1999-02-15 18:23:42
[Download RAW message or body]

A second-thought comment on the design below :

IconView, TreeView, HTMLView can't inherit from KfmView directly, because
we want to be able to switch between those 3 kinds of view. 
You can't transform an IconView instance into a TreeView instance.
Or is there a way ?

So a view has to be a general view of an URL, and it has a ViewContents object
(had to find a name), which can be IconView, TreeView, or HTMLView.
Or it can have the four of them (there are two icon modes), just like
KfmView currently has. The only difference would be that IconView, TreeView 
and HTMLView would inherit from a common interface, called
e.g. ViewContents (please come up with a better name !)

On Mon, Feb 15, 1999 at 05:40:54PM +0100, Simon Hausmann wrote:

> interface KfmView : OpenParts::Part, KfmGui
> {
>   void openURL( in string url );
>   string url();
> 
>   What else can be here?
> }
> 
> interface IconView : KfmView
> {
>   view specific stuff
> }
> 
> interface TreeView : KfmView
> {
>   view specific stuff
> }
> 
> interface HTMLView : KfmView
> {
>   view specific stuff
> }
> 

-- 
 ____________________________________________________________________
|                                                                    |
|  David FAURE                                                       |
|  E-mail : David.Faure@insa-lyon.fr, faure@kde.org                  |
|  http://www.insa-lyon.fr/People/AEDI/dfaure/index.html             |
|____________________________________________________________________|

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

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