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

List:       koffice-devel
Subject:    Re: KoResourceManager
From:       Thomas Zander <zander () kde ! org>
Date:       2010-01-30 9:48:40
Message-ID: 201001301048.41144.zander () kde ! org
[Download RAW message or body]

On Saturday 30. January 2010 07.24.46 Thorsten Zachmann wrote:
> Hello,
> 
> while working on creating shapes with a predefined style I had a problem
>  that one thing I had put into the KoResourceManager was not found when I
>  wanted to get it out of the KoResourceManager at a different class. After
>  debugging I found the reason for that:
> There is a KoResourceManager for the document and there is one for each
> canvas. I had put the information into the one of the canvas and thus it
>  was not found in the document one.
> The question now is should this difference even occur or should each canvas
> using the same document use the same resource manager. The latter was the
>  case for the data centers.
> In my opinion it would make sense to use the same resource manager for all
> canvas's that are working on the same document.

From the places where you can access the canvas resource manager you can also 
easily access the document resource manager. Just go via the KoShapeController 
which can be retrieved from the KoCanvasBase.
I added various pointers in the API docs, so this should be possible to find 
there too.
-- 
Thomas Zander
_______________________________________________
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