saving pathgrid

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

saving pathgrid

Post by cc9cii » 02 Mar 2015, 05:12

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: 5134
Joined: 06 Aug 2011, 15:16

Re: saving pathgrid

Post by Zini » 02 Mar 2015, 20:34

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: 434
Joined: 28 Mar 2013, 04:01

Re: saving pathgrid

Post by cc9cii » 02 Mar 2015, 20:46

Ok, I'll do some reading on Qt data structures.

User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

Re: saving pathgrid

Post by cc9cii » 07 Mar 2015, 07:26

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: 2121
Joined: 07 Aug 2011, 17:21

Re: saving pathgrid

Post by sirherrbatka » 07 Mar 2015, 18:28

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: 2121
Joined: 07 Aug 2011, 17:21

Re: saving pathgrid

Post by sirherrbatka » 22 Mar 2015, 15:09

Any progress on this?

User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

Re: saving pathgrid

Post by cc9cii » 22 Mar 2015, 19:48

Unfortunately I've been busy with my day job, so not much more has happened I'm afraid.

User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

Re: saving pathgrid

Post by cc9cii » 29 Mar 2015, 11:54

More progress. Now the nested tables show correct items.

Image

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

Re: saving pathgrid

Post by Zini » 29 Mar 2015, 13:04

Nice.

User avatar
ElderTroll
Posts: 485
Joined: 25 Jan 2012, 07:01

Re: saving pathgrid

Post by ElderTroll » 29 Mar 2015, 13:17

Great progress, cc9cii. Thank you for working on this feature.
“A society grows great when old men plant trees whose shade they know they shall never sit in.”

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests