ToutDoux : Manuel de référence
<<< Page précédenteSommaireHautPage suivante >>>

TdModTree

Nom

TdModTree -- Tree module

Synopsis

strucTdModTree
voidtd_mod_tree_hide
(TdModTree *mod_tree);
voidtd_mod_tree_update
(TdModTree *mod_tree);
voidtd_mod_tree_dnd_action
(TdModTree *mod_tree,
GtkCTreeNode *node_drag,
GtkCTreeNode *node_drop,
GtkCTreeNode *node_parent,
GtkCTreeNode *node_sibling,
GdkDragContext *context);
ginttd_mod_tree_dnd_autoexpand
(gpointer widget);
voidtd_mod_tree_dnd_received
(GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
GtkSelectionData *selection_data,
guint info,
guint time,
TdModTree *mod_tree);
voidtd_mod_tree_button_press
(GtkWidget *widget,
GdkEventButton *event,
TdModTree *mod_tree);
voidtd_mod_tree_select_node
(GtkCTree *widget,
gint row,
gint column,
GdkEvent *event,
TdModTree *mod_tree);
voidtd_mod_tree_create
(TdModTree *mod_tree,
GtkObject *mod);
inttd_mod_tree_dnd_drag_position
(GtkWidget *widget,
gint x,
gint y,
GtkWidget *scrolledwindow);
voidtd_mod_tree_destroy
(TdModTree *mod_tree);
GtkObject*td_mod_tree_new
(void);
voidtd_mod_tree_action
(TdModTree *mod_tree,
gchar *type);
voidtd_mod_tree_dnd_motion
(GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
guint time,
GtkWidget *scrolledwindow);
voidtd_mod_tree_collapse
(GtkWidget *widget,
GtkCTreeNode *node,
TdModTree *mod_tree);
voidtd_mod_tree_show
(TdModTree *mod_tree);
GList*td_mod_tree_read_node
(TdModTree *mod_tree,
GtkCTreeNode *node);
voidtd_mod_tree_refresh_node
(TdModTree *mod_tree);
voidtd_mod_tree_expand
(GtkWidget *widget,
GtkCTreeNode *node,
TdModTree *mod_tree);
voidtd_mod_tree_add_icon
(TdModTree *mod_tree,
GtkObject *icon);
GtkCTreeNode *td_mod_tree_add_node
(TdModTree *mod_tree,
GtkCTreeNode *parent,
GtkCTreeNode *sibling,
GList *data);
voidtd_mod_tree_dnd_get
(GtkWidget *widget,
GdkDragContext *context,
GtkSelectionData *selection_data,
guint info,
guint time,
gint row);
voidtd_mod_tree_interface_action
(GtkMenuItem *menuitem,
GList *data);

Description

Détails

struct TdModTree

struct TdModTree
{
gchar *name;
gchar *name_intl;
GtkObject *parent;
GtkWidget *label;
gboolean customize;
gboolean reorderable;
GList *field;
GList *icon;
gint column_oid;
gchar *table;
gchar *table_tree;
GtkWidget *widget;
GtkWidget *widget_data;
GtkWidget *menu_widget;
GtkCTreeNode *selected;
GList *list_widget;
GList *list_query;
GList *list_type;
};

fr: Objet module arbre

en: Tree module object

gchar *nameNom - Name
gchar *name_intlNom international - International name
GtkObject *parentParent
GtkWidget *labelEtiquette - Label
gboolean customizePersonnalisable - Customizable
gboolean reorderableRéarrangeable - Reorderable
GList *fieldChamps - Fields
GList *iconIcônes - Icons
gint column_oidLocalisation du champs des idendificateurs - Location of identifiers field
gchar *tableNom de la table - Table name
gchar *table_treeNom de la table de l'arbre - Tree table name
GtkWidget *widgetWidget
GtkWidget *widget_dataWidget de données - Widget with data
GtkWidget *menu_widgetMenu
GtkCTreeNode *selectedItem selectionné - Selected item
GList *list_widgetWidget des listes - Widget of lists
GList *list_queryRequête des liste - Query of lists
GList *list_typeType des listes - Type of lists

td_mod_tree_hide ()

voidtd_mod_tree_hide
(TdModTree *mod_tree);

fr: Cache l'arbre

en: Hides the tree

mod_tree : tree

td_mod_tree_update ()

voidtd_mod_tree_update
(TdModTree *mod_tree);

fr: Rafraîchis les données de l'arbre

en: Refresh the data of tree

mod_tree : tree

td_mod_tree_dnd_action ()

voidtd_mod_tree_dnd_action
(TdModTree *mod_tree,
GtkCTreeNode *node_drag,
GtkCTreeNode *node_drop,
GtkCTreeNode *node_parent,
GtkCTreeNode *node_sibling,
GdkDragContext *context);

fr: Execute une modification générée par le drag'n'drop du module

en: Execute a modification generated by drag'n'drop of module

mod_tree : component
node_drag : node of drag
node_drop : node of drop
node_parent : parent of futur node
node_sibling : sibling of futur node
context : drag'n'drop context

td_mod_tree_dnd_autoexpand ()

ginttd_mod_tree_dnd_autoexpand
(gpointer widget);

fr: Lance la temporisation de l'auto-expansion

en: Lauch the autoexpand temporization

Return value: temporization identifier

widget : widget

td_mod_tree_dnd_received ()

voidtd_mod_tree_dnd_received
(GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
GtkSelectionData *selection_data,
guint info,
guint time,
TdModTree *mod_tree);

fr: Réception des données au lâché

en: Receipt data at drop

widget : tree widget
context : drag'n'drop context
x : x coordinate at end of drag'n'drop
y : y coordinate at end of drag'n'drop
selection_data : drag'n'drop selection
info : drag'n'drop info
time : drag'n'drop time
mod_tree : component

td_mod_tree_button_press ()

voidtd_mod_tree_button_press
(GtkWidget *widget,
GdkEventButton *event,
TdModTree *mod_tree);

fr: Evènement 'button_press' de l'arbre

en: Event 'button_press' of tree

widget : ctree widget
event : event button
mod_tree : tree

td_mod_tree_select_node ()

voidtd_mod_tree_select_node
(GtkCTree *widget,
gint row,
gint column,
GdkEvent *event,
TdModTree *mod_tree);

fr: Mise à jour de la node courante

en: Update the current node

widget : tree widget
row : event's row
column : event's column
event : event
mod_tree : tree

td_mod_tree_create ()

voidtd_mod_tree_create
(TdModTree *mod_tree,
GtkObject *mod);

fr: Créé l'interface de l'arbre du module

en: Creates the interface of tree of module

mod_tree : tree
mod : module

td_mod_tree_dnd_drag_position ()

inttd_mod_tree_dnd_drag_position
(GtkWidget *widget,
gint x,
gint y,
GtkWidget *scrolledwindow);

fr: Retourne le numéro de ligne correspondant aux coordonées (x,y)

en: Return the row number corresponding the coordinates (x,y)

Return value: integer

widget : tree widget
x : x coordinate
y : y coordinate
scrolledwindow : scroll positions of tree

td_mod_tree_destroy ()

voidtd_mod_tree_destroy
(TdModTree *mod_tree);

fr: Détruit l'arbre

en: Destroys the tree

mod_tree : tree

td_mod_tree_new ()

GtkObject*td_mod_tree_new
(void);

fr: Créé un nouveau arbre

en: Creates a new tree

Return value: tree


td_mod_tree_action ()

voidtd_mod_tree_action
(TdModTree *mod_tree,
gchar *type);

fr: Execute une modification élémentaire générée par l'arbre

en: Execute a elementary modification generated by the tree

mod_tree : component
type : type of action

td_mod_tree_dnd_motion ()

voidtd_mod_tree_dnd_motion
(GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
guint time,
GtkWidget *scrolledwindow);

fr: Evènement 'drag_motion' de l'arbre

en: Event 'drag_motion' of tree

widget : tree widget
context : drag'n'drop context
x : x coordinate
y : y coordinate
time : drag'n'drop time
scrolledwindow : scroll positions of tree

td_mod_tree_collapse ()

voidtd_mod_tree_collapse
(GtkWidget *widget,
GtkCTreeNode *node,
TdModTree *mod_tree);

fr: Evènement 'tree_collapse' de l'arbre

en: Event 'tree_collapse' of tree

widget : ctree widget
node : node selected
mod_tree : tree

td_mod_tree_show ()

voidtd_mod_tree_show
(TdModTree *mod_tree);

fr: Affiche l'arbre

en: Displays the tree

mod_tree : tree

td_mod_tree_read_node ()

GList*td_mod_tree_read_node
(TdModTree *mod_tree,
GtkCTreeNode *node);

fr: Retourne la liste des valeurs de la node

en: Return the list of values of the node

Return value: list

mod_tree : tree
node : node

td_mod_tree_refresh_node ()

voidtd_mod_tree_refresh_node
(TdModTree *mod_tree);

fr: Mise à jour de la node courante

en: Update the current node

mod_tree : tree

td_mod_tree_expand ()

voidtd_mod_tree_expand
(GtkWidget *widget,
GtkCTreeNode *node,
TdModTree *mod_tree);

fr: Evènement 'tree_expand' de l'arbre

en: Event 'tree_expand' of tree

widget : ctree widget
node : node selected
mod_tree : tree

td_mod_tree_add_icon ()

voidtd_mod_tree_add_icon
(TdModTree *mod_tree,
GtkObject *icon);

fr: Ajoute l'icône à l'arbre

en: Adds the icon to tree

mod_tree : tree
icon : icon

td_mod_tree_add_node ()

GtkCTreeNode *td_mod_tree_add_node
(TdModTree *mod_tree,
GtkCTreeNode *parent,
GtkCTreeNode *sibling,
GList *data);

fr: Création d'une nouvelle node

en: Creates a new node

Return value: node

mod_tree : tree
parent : parent node
sibling : sibling node
data : data list

td_mod_tree_dnd_get ()

voidtd_mod_tree_dnd_get
(GtkWidget *widget,
GdkDragContext *context,
GtkSelectionData *selection_data,
guint info,
guint time,
gint row);

fr: Prise de données au tiré

en: Catch data at drag

widget : tree widget
context : drag'n'drop context
selection_data : drag'n'drop selection
info : drag'n'drop info
time : drag'n'drop time
row : row number of selection

td_mod_tree_interface_action ()

voidtd_mod_tree_interface_action
(GtkMenuItem *menuitem,
GList *data);

fr: Ecriture de la valeur sur la node courante

en: Write the value to the current node

menuitem : tree
data : value

Voir aussi

<<< Page précédenteSommaireHautPage suivante >>>
IndexIndex