ElAdnan / gtkdialog

Automatically exported from code.google.com/p/gtkdialog
GNU General Public License v2.0
0 stars 0 forks source link

Save tree widget data complete rather than just the exported column #63

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There are a few different ways to input data:

input
input icon-column="index"
input stock-column="index"
input file
input file icon-column="index"
input file stock-column="index"
item
item icon-name="image"
item stock-id="gtk-image"

So the input data is going to consist of just data or data with an image name 
in one of the columns or in the case of item a possible image name within the 
item directive. It's also possible to use any number of these and they can all 
be different so we can definitely rule out attempting to save the data using 
the same format as it was input, therefore the data could be saved fixed like 
this:

[gtk-]image | data0 | data1 | ...

I believe that it's possible to read icon-name or stock-id from their 
respective columns, but once it's saved to a file then you're not going to know 
what it was because that information is in the input directive. Also what if 
there was no icon? So that would mean saving an icon-name, a stock-id or "" in 
column0 is meaningless.

Ok, I think the contents of the tree widget should be dumped as it is stored 
within the rows, like this:

ColumnIconName | ColumnStockId | FirstDataColumn | ...

Of course you can't simply reinput that data because it's raw, so the 
application developer will need to remove either one of the image columns or 
both.

That's it.

Original issue reported on code.google.com by thunor...@hotmail.com on 1 Nov 2012 at 3:58

GoogleCodeExporter commented 8 years ago
The table widget currently only saves the exported column so that should be 
changed too.

Original comment by thunor...@hotmail.com on 1 Nov 2012 at 4:06

GoogleCodeExporter commented 8 years ago
Fixed in r466 and r467.

Original comment by thunor...@hotmail.com on 9 Nov 2012 at 12:56