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

List:       kde-devel
Subject:    Re: some beginners questions
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2005-02-25 20:35:28
Message-ID: 200502251335.32669.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Wednesday 23 February 2005 03:48, Andreas Pakulat wrote:
> - I'm planning on adding support for multiple documents in my app, is
> the KMDI stuff used for something like this in other kde apps, or do
> they do the mdi-stuff on their own? I see kdevelop uses kmdi.

if you put each document in its own window (SDI) you don't need anything.. 
just create multiple main windows as needed. if you want to go the MDI route, 
which makes sense in certain cricumstances, then kmdi is useful, yes.

> - Last question is how do "correctly" handle KActions that have a
> meaning only with a document?

well, you can have your document class create new KActions and pass those up 
to the main window ... but generally having menus that change entries 
depending on whether or not you have a document open is frowned upon (again, 
there are exceptions). usually the "needs a document" actions are simply 
disabled when there is no document open.

without more information on the type of app you are creating and what sort of 
documents you'd be showing, it's a bit hard to answer this question, however.

-- 
Aaron J. Seigo
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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