gtk_fieldChooser

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

Functions

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkWindow
                        ╰── GtkDialog
                            ╰── GtkFileChooserDialog
                                ╰── VisuUiFieldChooser

Implemented Interfaces

VisuUiFieldChooser implements AtkImplementorIface, GtkBuildable and GtkFileChooser.

Description

TODO.

Functions

visu_ui_field_chooser_new ()

GtkWidget *
visu_ui_field_chooser_new (GtkWindow *parent);

Create a filechooser, specific for VisuScalarField files.

Parameters

parent

the parent window.

[allow-none]

Returns

a newly created file chooser.

[transfer full]

Since: 3.7


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.

Parameters

dialog

a VisuUiFieldChooser object.

 

Returns

the VisuScalarFieldMethod that correspond to the selected file.

[transfer none]

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.

Parameters

dialog

a VisuUiFieldChooser object.

 

Returns

if the box should be fitted or not.

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.

Parameters

dialog

a VisuUiFieldChooser object.

 

wd

some additional options to add to the dialog.

 

Since: 3.7

Types and Values

enum VisuUiBoxFit

Possible value to adapt the boxes of structure and field.

Members

VISU_UI_NO_FIT

don't change the box.

 

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.

Signal Details

The “validate” signal

void
user_function (VisuUiFieldChooser    *chooser,
               VisuScalarFieldMethod *field,
               gpointer               user_data)

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

Parameters

chooser

the object which emit the signal ;

 

field

the chosen VisuScalarField object.

 

user_data

user data set when the signal handler was connected.

 

Flags: No Recursion

Since: 3.7