Re: Importing CSV files



On Sat, 2008-04-19 at 17:08 +0200, Murray Cumming wrote:
On Sat, 2008-04-19 at 16:48 +0200, Armin Burgmeier wrote:
I'm starting to implement importing CSV files into glom tables. There is
a rough UI mockup at http://arbur.net/stuff/importcsv.png. Do people
think more/other options are required? Perhaps always the current table
should be used, so the "Import Into Table:" field can be removed.

I think it should show what table will be used, but it shouldn't be a
choice. It should just use the current table.


When the "First line as title" checkbutton is not checked, then the
treeview headers can simply be removed. The TreeView itself shows some
example rows and lets the user associate the fields in the CSV file to
fields in the Glom table. It's perhaps a bit more complicated to
implement than a vertical view, but I think it's more convenient this
way and so probably worth the effort.

It looks good. I guess you'd want the field choice at the top, or else
they would not be visible when viewing many example rows.

By the way "sample" rows is better than "example" rows.

I don't know how you'll manage to implement having a combo just on the
last row with TreeView.

I planned using GtkCellRendererCombo everywhere, but setting the
"editable" property only for a specific row, via a CellDataFunc.

Are there other comments/suggestions concerning the planned UI?

I also had a look at GdaDataModelImport, but it does not seem to support
progressive loading, which I think is necessary for importing big files
without blocking the UI and showing progress bars.

OK. But if it's easy and useful then think about
improving GdaDataModelImport. I've barely looked at it though.

I'll have a look.

Armin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]