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

Design problem/complication



Hi,

I am working on a Gnumeric plugin (a replacement for the CSV plugin).
The goal
is to give the user more control of the proces of a CSV import, control
which
in essence is very similar to the control XL gives in it's text import.
(e.g. choice between importing the file separator delimited or with
fixed
 widths which are manually settable)
It uses the GnomeDruid which takes the user trough a number of pages.
Everything has to happen live as examples need to be rendered on a
GnomeCanvas so the user can immediately see the effect of his/her
choices.

A lot of it is already completed. However I have now reached an impasse
:

The druid consists of several steps (seen from the users perspective):
1. User chooses import style (delimited/fixed width import).
2. User customizes tweaks the import style (setting delimiters, or
column sizes).
3. User sets the format of each individual column.

While the user is customizing (step 2) the actual import is done
(because we want to 
see the preview too..). The file is parsed into a Sheet.
The difficulty arises when step 3 is reached. I am not sure anymore how
to do the column
formatting. I am wondering weather :

1. It would be a good idea to reuse Jody's code (Cell formatting) as
contained in gnumeric/src/dialogs/dialog-cell-format.c
2. Simply make my own formatting stuff similar to Jody's dialog.
(Note that only thing I really need is the stuff which is on the cell
formatting dialog on the "Number" tab)

I am not sure what to do or what would be best.. therefore I would
appreciate advise.
Many thanks in advance.

Yours sincerely,

Almer. S. Tigelaar.
almer1@dds.nl



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