List Info

Thread: Re: KDE/kdevplatform/shell




Re: KDE/kdevplatform/shell
user name
2007-07-06 13:04:38
2007/7/7, Alexander Dymo <dymoukrpost.ua>:
> On 7/6/07, Dukju Ahn <dukjuahngmail.com> wrote:
> > Use documentController::closeDocument, rather than
directly
> > remove views. It confuses hash table of
documentcontroller.
> ...
> > +   
Core::self()->documentControllerInternal()->closeDocum
ent( doc->url() );
> When you close the file with the menu you don't want to
close all
> views of that file (which might be as well in different
windows, you
> just need to close the current view. So closing the
document doesn't
> really works here because it will close all views.

Then do you imply that there could be different menu for
each window?
If mainwindow's menu should act only on his views, then it
sounds like
that other windows will have their own menu.

> But I suppose you found a bug, what was that?

When I close file using menu(or shortcut key ctrl-w), the
IDocument hash
table in documentcontroller is not updated. In point of
docCtrl's view, he
feels that certain document is still opened although I
closed it via menu.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

Re: KDE/kdevplatform/shell
user name
2007-07-06 13:22:50
On 7/6/07, dukju ahn <dukjuahngmail.com> wrote:
> > > +   
Core::self()->documentControllerInternal()->closeDocum
ent( doc->url() );
> Then do you imply that there could be different menu
for each window?
> If mainwindow's menu should act only on his views, then
it sounds like
> that other windows will have their own menu.
You mean Window menu? Yes, it should display only views in
this window.

> > But I suppose you found a bug, what was that?
>
> When I close file using menu(or shortcut key ctrl-w),
the IDocument hash
> table in documentcontroller is not updated. In point of
docCtrl's view, he
> feels that certain document is still opened although I
closed it via menu.
Ok, that means document is not deleted or not removed
properly when we
close the last view. I'll fix that.

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )