[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: When is a shape loaded?
From: Yue Liu <opuspace () gmail ! com>
Date: 2010-09-10 8:08:12
Message-ID: AANLkTi=w8pLyyupcDkyePGVvopimiFcUZMqAmNr=gNK2 () mail ! gmail ! com
[Download RAW message or body]
I have a question about the OdfCollectionLoader, we can create shapes
from odg file, but how can we determine the name, id, and tooltip? Is
it a convenience to hack the class, write the shape attributes in odg
files and read them from there?
On Tue, Aug 10, 2010 at 1:31 AM, Thorsten Zachmann <t.zachmann@zagge.de> wrote:
> Hello,
>
> On Monday 09 August 2010 07:44:09 Yue Liu wrote:
>> I'm hacking on stencil support. Currently I use one KoStore per shape
>> to load stencils from odf files. Will all the shape be loaded at the
>> same time when Kivio starts or when you drag them to the canvas from
>> the shape selecter? I hope it's the latter, for loading too much
>> stencils at the same time seems to be slow, but the icons are defined
>> in ShapeFactory classes, the shape selecter will display them so I
>> guess the former situation happens in KOffice.
>
> I remembered that Peter Simmons was working on such a feature so I had a look
> around and found some code which handles that in
>
> plugins/docker/shapecollection/
>
> The important part is OdfCollectionLoader. It already has support for loading
> the odg and creating icons for the different stencils. Having multiple different
> collections.
>
> The idea which is implemented is to use a odg file to store all the stencils
> for one collection in it. If I understand the code correctly each toplevel
> shape in the odg file will be used to create a stencil. It also looks as this
> will work with the Add Shape docker already.
>
> Maybe you can have a look at the code to see how to reactivate it. Looks like
> most of what is needed is already there. If you need help understanding the
> code let me know.
>
> Thorsten
> _______________________________________________
> koffice-devel mailing list
> koffice-devel@kde.org
> https://mail.kde.org/mailman/listinfo/koffice-devel
>
_______________________________________________
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