saving pathgrid

Involved development of the OpenMW construction set.
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

saving pathgrid

Post by cc9cii »

Finally getting back to this task. I'm now trying to save pathgrid changes to the document, but a little lost.

Looking at CSMWorld::Data, pathgrid is stored in a non-editable column.

Code: Select all

 mPathgrids.addColumn (new FixedRecordTypeColumn<Pathgrid> (UniversalId::Type_Pathgrid));
So I'm guessing that it needs to be changed to something that is editable? Or am I meant to additional columns such as Points and Edges?
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: saving pathgrid

Post by Zini »

So I'm guessing that it needs to be changed to something that is editable? Or am I meant to additional columns such as Points and Edges?
I thought we discussed that already. But anyway, I'll sum it up again.

This kind of data is effectively a sub-table, which will utilized via Qt tree model structures (but not the view). We don't have that yet, which is why we can't do the pathgrid stuff at this point.

sirherrbatka was working on this feature a while back. It was never finished and I have no idea in what state it currently is. But the branch might be still around.
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

Re: saving pathgrid

Post by cc9cii »

Ok, I'll do some reading on Qt data structures.
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

Re: saving pathgrid

Post by cc9cii »

With sirherrbatka's permission I am trying to get his NonTableFields branch working. Here are some comparison pics. First, the table from the current master :

Image

and new (see the extra tables in the red box) It appears to be almost there, the inventories table look ok, but the other two tables aren't quite right:

Image
User avatar
sirherrbatka
Posts: 2159
Joined: 07 Aug 2011, 17:21

Re: saving pathgrid

Post by sirherrbatka »

yeah, not all tables are done. I was not able to finish it, and now https://www.youtube.com/watch?v=y6aUbrZYjYE (if you get the flow).

Needless to say, i'm really happy that somebody will be able to get this job done.
User avatar
sirherrbatka
Posts: 2159
Joined: 07 Aug 2011, 17:21

Re: saving pathgrid

Post by sirherrbatka »

Any progress on this?
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

Re: saving pathgrid

Post by cc9cii »

Unfortunately I've been busy with my day job, so not much more has happened I'm afraid.
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

Re: saving pathgrid

Post by cc9cii »

More progress. Now the nested tables show correct items.

Image
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: saving pathgrid

Post by Zini »

Nice.
User avatar
ElderTroll
Posts: 499
Joined: 25 Jan 2012, 07:01

Re: saving pathgrid

Post by ElderTroll »

Great progress, cc9cii. Thank you for working on this feature.
Post Reply