## panelDataFile

panelDataFile

## Synopsis

    ToolPanel*          panelDataFileInit                   ();
    gboolean            panelDataFileLoad_file              (VisuData *visuData,
                                                             gchar *file,
                                                             gboolean *new);
    void                panelDataFileSet_use                (gboolean used);
    void                panelDataFileUpdate                 (VisuData *visuData);

## Description

## Details

### panelDataFileInit ()

    ToolPanel*          panelDataFileInit                   ();

Should be used in the list declared in externalModules.h to be loaded by V_Sim on start-up. This routine will create the ToolPanel where the colouring stuff can be done, such as choosing a colour shade, opening a file, setting boundaries...

Returns : | a newly created ToolPanel object.

### panelDataFileLoad_file ()

    gboolean            panelDataFileLoad_file              (VisuData *visuData,
                                                             gchar *file,
                                                             gboolean *new);

Read the given data file and associate the values of each column to the node. It does not update the widgets of the panel. This is done to allow to change the values of the colouration before drawing the widgets. See `panelDataFileUpdate()` to do it.

`visuData` : | the VisuData object to associated the data to ;
`file` : | the file to read ;
`new` : | return TRUE if the loaded data are associated for the first time to `visuData`.
Returns : | TRUE if `visuData_createAllNodes()` should be called after.

### panelDataFileSet_use ()

    void                panelDataFileSet_use                (gboolean used);

Set if the panel is used or not.

`used` : | a boolean.

### panelDataFileUpdate ()

    void                panelDataFileUpdate                 (VisuData *visuData);

Update the widgets depending on the colouration associated to the given VisuData object.

`visuData` : | the VisuData object to associated the data to.