KDE 2 MDI app problem
Ralf Nolden
Ralf.Nolden at post.rwth-aachen.de
Sat Jan 29 17:59:07 GMT 2000
Hi all,
I've just commited an update to the KDE 2 MDI framework for KDevelop
1.1. If you're already using the template, please update some sections
affecting the recent file menu and slotFileNew
/slotFileOpen/slotFileOpenRecent, as well as openDocumentFile() in
header and cpp file.
One bug is also in the declaration of the pViewList in the *Doc class-
remove the static word in the header declaration and the initialization
in the cpp file before the constructor.
Now I have a request for some experts that like to Krash: ;-) (like me
the whole day except those bugs) I didn't solve the most important bug
affecting the eventFilter in the *App class. This is thought out to
function that if a window gets closed either by the "X" or by
File->Close, it tests if the document is modified and if the view to
close (that receives the close event) is the last view. Then the user
gets the possibility to save the file, not to save the file (loose
changes) or cancel. The thing that doesn't run is cancel, although the
case returns true, so the event should be discarded. I don't know what
else to do than to ask for some help here if that could be found out by
someone having more time- I spent the whole saturday and tomorrow is my
birthday, so I'm now definitely going to the pub having some beers...
Happy hacking,
Ralf
PS: in the CVS, kdevelop/kdevelop/examples there is a
kscribble-1.0.tar.gz that shows the MDI thing and the document-view
interface quite well but still has the bugs now fixed in the template.
Just if someone is interested, have a look at it to resolve the bug with
the eventFilter or just set modified=true in *Doc::newDocument() to
invoke the eventFilter when closing a window.
More information about the KDevelop
mailing list