diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-16 20:11:21 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-16 20:11:21 (GMT) |
commit | f6e56cebfa878dd32a2405fd0c916a40140a1ff0 (patch) | |
tree | 3e364d2e2b2de19b85ab6d14f856d4b8db11737a /src/gui/editem.c | |
parent | e0d03e3eddb9d240cc21ac1b7a7ade915fd17942 (diff) |
Applied a new GUI update with the new loaded panels features.
Diffstat (limited to 'src/gui/editem.c')
-rw-r--r-- | src/gui/editem.c | 116 |
1 files changed, 110 insertions, 6 deletions
diff --git a/src/gui/editem.c b/src/gui/editem.c index bf3dfa6..ef7cb30 100644 --- a/src/gui/editem.c +++ b/src/gui/editem.c @@ -136,10 +136,114 @@ GtkWidget *g_editor_item_get_widget(const GEditorItem *item) /****************************************************************************** * * -* Paramètres : bar = instance à actualiser. * -* panel = composant d'affichage concerné par l'opération. * +* Paramètres : item = instance à consulter. * +* old = ancien contenu chargé analysé. * +* new = nouveau contenu chargé à analyser. * +* * +* Description : Réagit à un changement de contenu chargé en cours d'analyse. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_editor_item_change_content(GEditorItem *item, GLoadedContent *old, GLoadedContent *new) +{ + GEditorItemClass *klass; /* Classe correspondante */ + + klass = G_EDITOR_ITEM_GET_CLASS(item); + + if (klass->change_content != NULL) + klass->change_content(item, old, new); + +} + + +/****************************************************************************** +* * +* Paramètres : item = instance à consulter. * +* old = ancienne vue du contenu chargé analysé. * +* new = nouvelle vue du contenu chargé analysé. * +* * +* Description : Réagit à un changement de vue du contenu en cours d'analyse. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_editor_item_change_view(GEditorItem *item, GLoadedPanel *old, GLoadedPanel *new) +{ + GEditorItemClass *klass; /* Classe correspondante */ + + klass = G_EDITOR_ITEM_GET_CLASS(item); + + if (klass->change_view != NULL) + klass->change_view(item, old, new); + +} + + +/****************************************************************************** +* * +* Paramètres : item = instance à consulter. * +* panel = vue du contenu chargé analysé modifiée. * +* * +* Description : Réagit à une modification de la vue du contenu analysé. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_editor_item_update_view(GEditorItem *item, GLoadedPanel *panel) +{ + GEditorItemClass *klass; /* Classe correspondante */ + + klass = G_EDITOR_ITEM_GET_CLASS(item); + + if (klass->update_view != NULL) + klass->update_view(item, panel); + +} + + +/****************************************************************************** +* * +* Paramètres : item = instance à consulter. * +* panel = composant d'affichage parcouru. * +* cursor = nouvel emplacement du curseur courant. * +* * +* Description : Réagit à une modification de la vue du contenu analysé. * +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_editor_item_track_cursor(GEditorItem *item, GLoadedPanel *panel, const GLineCursor *cursor) +{ + GEditorItemClass *klass; /* Classe correspondante */ + + klass = G_EDITOR_ITEM_GET_CLASS(item); + + if (klass->track_cursor != NULL) + klass->track_cursor(item, panel, cursor); + +} + + +/****************************************************************************** +* * +* Paramètres : item = instance à consulter. * +* content = contenu contenant le curseur à représenter. * +* cursor = nouvel emplacement du curseur courant. * * * -* Description : Réagit à un changement de focus des panneaux d'affichage. * +* Description : Réagit à une modification de la vue du contenu analysé. * * * * Retour : - * * * @@ -147,13 +251,13 @@ GtkWidget *g_editor_item_get_widget(const GEditorItem *item) * * ******************************************************************************/ -void notify_focus_change_for_editor_item(GEditorItem *item, GLoadedPanel *panel) +void g_editor_item_focus_cursor(GEditorItem *item, GLoadedContent *content, const GLineCursor *cursor) { GEditorItemClass *klass; /* Classe correspondante */ klass = G_EDITOR_ITEM_GET_CLASS(item); - if (klass->notify_focus != NULL) - klass->notify_focus(item, panel); + if (klass->focus_cursor != NULL) + klass->focus_cursor(item, content, cursor); } |