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

List:       koffice-devel
Subject:    Re: Problem deselecting selected frames.
From:       Thomas Zander <zander () kde ! org>
Date:       2006-01-03 14:19:06
Message-ID: 200601031519.10914.zander () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 26 December 2005 04:44, Gary Cramblitt wrote:
> When user right clicks on a table in the document structure area, they
> may choose Delete, which deletes the entire table.  The problem is that
> if they also have another frame selected, that frame is also deleted.
> (deleteFrameSet deletes all selected frames.)
>
> To avoid this, I need to deselect all selected frames before deleting
> the table.  However, the deselectAllFrames call in the code below
> doesn't achieve this.  I'm guessing this is because the
> KWFrameViewManager defers the deselection for a oneshot. 

No, all changes on the data itself are done immediately; only visual 
updates of those changes are possibly deferred.

> How can I 
> achieve want I want?

Actually, it works just fine here.
I don't know what you say is not working.
The following code is still in svn, but a can't find anything wrong with 
it.  It works as I expect it would.

> void KWDocStructTableItem::deleteItem()
> {
>     // TODO: The following statement isn't working for some reason.
>     gui()->getView()->deselectAllFrames();
>     gui()->getView()->deleteFrameSet(m_table);
> }

Can you re-test and remove the TODO; or come back and give a step by step 
explanation of what you tried and where it fails?
-- 
Thomas Zander

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

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://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