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

List:       koffice-devel
Subject:    Re: Getting Started
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-07-27 23:29:01
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 28 July 2002 00:51, Eric R. Turner wrote:
> In KoApplication::start(), a KoDocument is created for each file specified on
> the command line (or a blank KoDocument is created if no files were
> specified). 
Yes

> A KoMainWindow is also created for each KoDocument 
Yes

> (the good ol' document-view architecture). 
Not really. That's what the KoView is for: one document can be shown in
two views.

A mainwindow can contain more than one view (e.g. when using the "split view"
feature), and/or the views of the same document can be in separate main windows.

So the real doc/view architecture is between KoDocument and KoView (surprisingly).
KoMainWindow is "simply" the mainwindow around the view.

> In komainwindow.h it says:
> 
>    "This class is used to represent a main window
>     of a KOffice component. Each main window contains
>     a menubar and some toolbars.
> 
>     If you are going to implement a new KOffice component, then
>     you must implement a subclass of this class."

Whoooops. This is wrong now (has been for a very long time). Fixed.

> Where in KWord is the class subclassed from KoMainWindow
There isn't.

Apps reimplement KoDocument and KoView. But the mainwindow is the same class
for all, since it doesn't have any app-specific stuff (its GUI, i.e. menus and toolbars,
are provided by
1) itself (the standard stuff like the File and Help menus)
2) the document's actions
3) the view's actions
).

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice 1.2 RC1 is slightly delayed. Stay tuned.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9Qyy/72KcVAmwbhARAt5cAKCIGIM5kdqlBtcz6EmfUdXvNJIBBwCfSo6j
9mCVC/AX9VJ4C1CjlIZMSOU=
=LvQu
-----END PGP SIGNATURE-----

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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