gtk_fieldChooser

gtk_fieldChooser — Defines a widget to choose a scalar field or an isosurface.

Synopsis

enum                VisuUiBoxFit;
                    VisuUiFieldChooser;
                    VisuUiFieldChooserClass;
VisuScalarFieldMethod * visu_ui_field_chooser_getFileFormat
                                                        (VisuUiFieldChooser *dialog);
VisuUiBoxFit        visu_ui_field_chooser_getFit        (VisuUiFieldChooser *dialog);
GtkWidget *         visu_ui_field_chooser_new           (GtkWindow *parent);
void                visu_ui_field_chooser_setOptions    (VisuUiFieldChooser *dialog,
                                                         GtkWidget *wd);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkWindow
                                 +----GtkDialog
                                       +----GtkFileChooserDialog
                                             +----VisuUiFieldChooser

Implemented Interfaces

VisuUiFieldChooser implements AtkImplementorIface, GtkBuildable and GtkFileChooser.

Signals

  "validate"                                       : No Recursion

Description

TODO.

Details

enum VisuUiBoxFit

typedef enum {
    VISU_UI_FIT_TO_BOX,
    VISU_UI_FIT_TO_SURFACE
} VisuUiBoxFit;

Possible value to adapt the boxes of structure and field.

VISU_UI_FIT_TO_BOX

adapt the box of the field to the box of the loaded VisuData.

VISU_UI_FIT_TO_SURFACE

adapt the box of the loaded VisuData to the box of the field.

Since 3.7


VisuUiFieldChooser

typedef struct _VisuUiFieldChooser VisuUiFieldChooser;

Private structure to store informations of a VisuUiFieldChooser object.


VisuUiFieldChooserClass

typedef struct _VisuUiFieldChooserClass VisuUiFieldChooserClass;

Private structure to store informations of a VisuUiFieldChooserClass object.


visu_ui_field_chooser_getFileFormat ()

VisuScalarFieldMethod * visu_ui_field_chooser_getFileFormat
                                                        (VisuUiFieldChooser *dialog);

After the dialog returns, it has validate the selected file on possible file formats.

dialog :

a VisuUiFieldChooser object.

Returns :

the VisuScalarFieldMethod that correspond to the selected file.

Since 3.7


visu_ui_field_chooser_getFit ()

VisuUiBoxFit        visu_ui_field_chooser_getFit        (VisuUiFieldChooser *dialog);

The VisuScalarField objects can be fitted on the visuData box or impose their boxes to VisuData.

dialog :

a VisuUiFieldChooser object.

Returns :

if the box should be fitted or not.

Since 3.7


visu_ui_field_chooser_new ()

GtkWidget *         visu_ui_field_chooser_new           (GtkWindow *parent);

Create a filechooser, specific for VisuScalarField files.

parent :

the parent window. [allow-none]

Returns :

a newly created file chooser. [transfer full]

Since 3.7


visu_ui_field_chooser_setOptions ()

void                visu_ui_field_chooser_setOptions    (VisuUiFieldChooser *dialog,
                                                         GtkWidget *wd);

One can add widgets to add more options to the chooser. If the chooser already has some option widgets, they are destroyed.

dialog :

a VisuUiFieldChooser object.

wd :

some additional options to add to the dialog.

Since 3.7

Signal Details

The "validate" signal

void                user_function                      (VisuUiFieldChooser *chooser,
                                                        GObject            *arg1,
                                                        gpointer            user_data)      : No Recursion

Gets emitted when the user choose a file and a format has been validated for it.

chooser :

the object which emit the signal ;

user_data :

user data set when the signal handler was connected.

Since 3.7