Page 1 of 2

saving pathgrid

Posted: 02 Mar 2015, 05:12
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?

Re: saving pathgrid

Posted: 02 Mar 2015, 20:34
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.

Re: saving pathgrid

Posted: 02 Mar 2015, 20:46
by cc9cii
Ok, I'll do some reading on Qt data structures.

Re: saving pathgrid

Posted: 07 Mar 2015, 07:26
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

Re: saving pathgrid

Posted: 07 Mar 2015, 18:28
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.

Re: saving pathgrid

Posted: 22 Mar 2015, 15:09
by sirherrbatka
Any progress on this?

Re: saving pathgrid

Posted: 22 Mar 2015, 19:48
by cc9cii
Unfortunately I've been busy with my day job, so not much more has happened I'm afraid.

Re: saving pathgrid

Posted: 29 Mar 2015, 11:54
by cc9cii
More progress. Now the nested tables show correct items.

Image

Re: saving pathgrid

Posted: 29 Mar 2015, 13:04
by Zini
Nice.

Re: saving pathgrid

Posted: 29 Mar 2015, 13:17
by ElderTroll
Great progress, cc9cii. Thank you for working on this feature.