2024-09-30 18:12:50 +02:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
|
|
* Gem-graph client *
|
2024-10-03 22:25:46 +02:00
|
|
|
* What the documentation contains and how to use it *
|
|
|
|
* Docstring content: rationale and usage *
|
|
|
|
* Alphabetic Index 2024 of functions names *
|
2024-09-30 18:12:50 +02:00
|
|
|
* *
|
|
|
|
* Copyright © 2021 Libre en Communs <contact@a-lec.org> *
|
|
|
|
* Copyright © 2024 Jean Sirmai <jean@a-lec.org> *
|
|
|
|
* *
|
|
|
|
* This file is part of Gem-graph. *
|
|
|
|
* *
|
|
|
|
* This program is free software: you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU Affero General Public License *
|
|
|
|
* as publishedby the Free Software Foundation, *
|
|
|
|
* either version 3 of the License, or (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
|
|
* See the GNU Affero General Public License for more details. *
|
|
|
|
* *
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
2024-10-03 09:10:37 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-03 22:25:46 +02:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
|
|
*
|
|
|
|
* docstrings
|
|
|
|
* ----------
|
|
|
|
*
|
|
|
|
* 1) localisées dans les headers
|
|
|
|
*
|
|
|
|
* 2) structure:
|
|
|
|
*
|
|
|
|
* texte libre: que fait la fonction?
|
|
|
|
* où est-elle définie (dans quel fichier?)
|
|
|
|
* par quelles fonctions est-elle appelée?
|
|
|
|
* @param paramètres pris en entrée
|
|
|
|
* @return valeur retournée en sortie
|
|
|
|
* @use liste de fonctions GTK appelées par cette fonction, dont:
|
|
|
|
* @use_mem? celles qui doivent être 'free' après usage
|
|
|
|
*
|
|
|
|
* TODO : actuellement, valgrind bin/gem-graph-client détecte :
|
|
|
|
*
|
|
|
|
* HEAP SUMMARY:
|
|
|
|
* in use at exit: 11,537,505 bytes in 42,285 blocks
|
|
|
|
* total heap usage: 483,548 allocs,
|
|
|
|
* 441,263 frees,
|
|
|
|
* 112,049,363 bytes allocated
|
|
|
|
* LEAK SUMMARY:
|
|
|
|
* definitely lost: 40,161 bytes in 79 blocks
|
|
|
|
* indirectly lost: 11,233 bytes in 489 blocks
|
|
|
|
* possibly lost: 7,879,639 bytes in 7,844 blocks
|
|
|
|
* still reachable: 3,412,408 bytes in 32,248 blocks
|
|
|
|
* suppressed: 0 bytes in 0 blocks
|
|
|
|
* Rerun with --leak-check=full to see details of leaked memory
|
|
|
|
*
|
|
|
|
* valgrind --leak-check=full > ERROR SUMMARY: 1572 errors from 680 contexts
|
|
|
|
* --track-origins=yes ERROR SUMMARY: 896 errors from 4 contexts
|
|
|
|
* --show-leak-kinds=all
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* 3) TODO des scripts devraient pouvoir recueillir ces informations
|
|
|
|
* pour produire automatiquement, à la demande, des listes comme celle qui suit.
|
|
|
|
* (voir le dossier 'scripts')
|
|
|
|
*
|
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-10-03 09:10:37 +02:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
|
|
*
|
|
|
|
* C O N V E N T I O N S E T R È G L E S D E N O M M A G E - 2 0 2 4
|
|
|
|
*
|
2024-10-03 22:25:46 +02:00
|
|
|
* Le nom d'une fonction doit permettre d'identifier facilement:
|
|
|
|
* - le lieu (le fichier) où elle est définie,
|
|
|
|
* - le type d'action qu'elle exécute et
|
|
|
|
* - l'objet ou les objets modifié.s par cette action.
|
2024-10-03 09:10:37 +02:00
|
|
|
*
|
|
|
|
* - - -
|
|
|
|
*
|
2024-10-03 22:25:46 +02:00
|
|
|
* Ces trois informations sont encodées au moyen de trois "préfixes"
|
|
|
|
* associés et concaténés dans cet ordre pour former le nom.
|
|
|
|
* ?
|
|
|
|
* L'ordre des deux derniers préfixes peut-il être inversé
|
|
|
|
* pour que le nom soit "human-readable".
|
|
|
|
* Faut-il autoriser l'usage des alias ? (ex: 'concat')
|
|
|
|
* ?
|
2024-10-03 09:10:37 +02:00
|
|
|
*
|
2024-10-03 22:25:46 +02:00
|
|
|
* En octobre 2024, la première version de cet index classe en trois listes
|
|
|
|
* l'ensemble des préfixes utilisés.
|
|
|
|
*
|
|
|
|
* Ces listes sont en cours d'élaboration.
|
|
|
|
* Elles ne sont ni limitatives ni exhaustives ni ordonnées.
|
|
|
|
* TODO
|
2024-10-03 09:10:37 +02:00
|
|
|
*
|
|
|
|
* - - -
|
|
|
|
*
|
2024-10-03 22:25:46 +02:00
|
|
|
* Le premier préfixe est l'adresse du fichier dans la hiérarchie "src":
|
|
|
|
* ex: graphics_draw_
|
|
|
|
* fsm_measures_manager_
|
|
|
|
* util_draw_gl_
|
|
|
|
* widget_one_rule_algebra_assign_
|
2024-10-03 09:10:37 +02:00
|
|
|
*
|
2024-10-03 22:25:46 +02:00
|
|
|
* Le deuxième préfixe est choisi dans une liste de fonctions types:
|
2024-10-03 09:10:37 +02:00
|
|
|
* get, set, reset, read, write, print, edit, concat, design,
|
|
|
|
* init, create, add, remove, trigger, draw, erase, restore, push
|
|
|
|
* setup, shutdown, update, list, sort, seek, select, fix, debug,
|
|
|
|
* render, realize, unrealize, activate, exec, stop, signal,
|
|
|
|
*
|
2024-10-03 22:25:46 +02:00
|
|
|
* Le troisième préfixe est choisi dans une liste d'objets
|
|
|
|
* sur lesquels agissent les fonctions:
|
2024-10-03 09:10:37 +02:00
|
|
|
* number, string, view, window, list, tree, stack,
|
2024-10-03 22:25:46 +02:00
|
|
|
* file, buffer, callback, signal,
|
2024-10-03 09:10:37 +02:00
|
|
|
* state, rules, data, results, image, stock,
|
2024-10-03 22:25:46 +02:00
|
|
|
* widget, button, slider, color, glarea, shader,
|
2024-10-03 09:10:37 +02:00
|
|
|
* point, line, plan, space_unit, site, arrow, slot, vertex, ridge,
|
|
|
|
*
|
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-09-30 21:54:33 +02:00
|
|
|
concat util/strings_op
|
2024-10-01 11:21:28 +02:00
|
|
|
create_axis_slider util/draw/gl 223
|
|
|
|
free_stack_slot graphics/init 36
|
|
|
|
free_stack_slot_size graphics/init 37
|
|
|
|
get_user_tree_model util/tree 66 static
|
|
|
|
get_user_tree_model_child util/tree 49 static
|
|
|
|
graphics_create_shader 187 ?
|
|
|
|
graphics_debug_callback graphics/init 53 static
|
|
|
|
graphics_draw graphics/draw 150
|
|
|
|
graphics_draw_color graphics/draw 74
|
|
|
|
graphics_draw_grids_on_space_faces_lines graphics/grid 129
|
|
|
|
graphics_draw_grids_on_space_faces_vertex graphics/grid 75
|
|
|
|
graphics_draw_line graphics/draw 100
|
|
|
|
graphics_draw_one_arrow_line 365 ?
|
|
|
|
graphics_draw_one_arrow_vertex 355 ?
|
|
|
|
graphics_draw_plan graphics/draw 124
|
|
|
|
graphics_draw_space_ridges_lines graphics/grid 62
|
|
|
|
graphics_draw_space_ridges_vertex graphics/grid 30
|
|
|
|
graphics_draw_vertex graphics/draw 40
|
|
|
|
graphics_init graphics/init 108
|
|
|
|
graphics_init_buffers graphics/init 326
|
|
|
|
graphics_init_graphics_stack 127 ?
|
|
|
|
graphics_init_shaders graphics/init 370
|
|
|
|
graphics_model_setup graphics/init 228
|
|
|
|
graphics_print_stack 221 ?
|
|
|
|
graphics_render_stack 87 ?
|
|
|
|
graphics_set_arrow 401 ?
|
|
|
|
graphics_setup_glarea 89 ?
|
|
|
|
graphics_shutdown graphics/init 169
|
2024-09-30 21:54:33 +02:00
|
|
|
graphics_shutdown_graphics_stack 128
|
2024-10-01 11:21:28 +02:00
|
|
|
graphics_stack graphics/init 34
|
|
|
|
graphics_stack_size graphics/init 35
|
|
|
|
graphics_stack_t graphics.h
|
|
|
|
graphics_update_axis_stack 129 ?
|
2024-09-30 18:12:50 +02:00
|
|
|
fsm_add_data fsm/measures/data_list
|
|
|
|
fsm_add_displayable fsm/preferences/manager
|
|
|
|
fsm_add_measure fsm/measures/manager
|
|
|
|
fsm_add_result fsm/results/manager
|
2024-10-01 11:21:28 +02:00
|
|
|
fsm_disp_add_chart fsm/measures/disp_list
|
|
|
|
fsm_disp_get_chart fsm/measures/disp_list
|
|
|
|
fsm_disp_remove_chart fsm/measures/disp_list
|
2024-09-30 18:12:50 +02:00
|
|
|
fsm_enum_exec_edit fsm.h
|
|
|
|
fsm_enum_journal_severity fsm.h
|
|
|
|
fsm_enum_journal_source fsm.h
|
|
|
|
fsm_enum_measure_type fsm.h
|
|
|
|
fsm_enum_state_rules_data fsm.h
|
|
|
|
fsm_enum_store_restore_reset fsm.h
|
|
|
|
fsm_get_data fsm/measures/data_list
|
|
|
|
fsm_get_exec_edit fsm/dispatch
|
|
|
|
fsm_get_preferences_state fsm/dispatch
|
|
|
|
fsm_get_state_rules_data fsm/dispatch
|
|
|
|
fsm_init fsm/dispatch
|
|
|
|
fsm_journal_clear src/journal
|
|
|
|
fsm_journal_event fsm/dispatch
|
|
|
|
fsm_journal_init src/journal
|
|
|
|
fsm_journal_length src/journal
|
|
|
|
fsm_journal_pop_back src/journal
|
|
|
|
fsm_journal_publication_request fsm/dispatch
|
|
|
|
fsm_journal_publish src/journal
|
|
|
|
fsm_journal_push_front src/journal
|
|
|
|
fsm_journal_seek src/journal
|
|
|
|
fsm_list_init_displayables fsm/prefer
|
|
|
|
fsm_list_init_measures fsm/measures/manager
|
|
|
|
fsm_list_init_preferences fsm/preferences/manager
|
|
|
|
fsm_list_init_results fsm/results/manager
|
|
|
|
fsm_list_tools_clear fsm/measures/tools_list
|
|
|
|
fsm_list_tools_insert fsm/measures/tools_list
|
|
|
|
fsm_list_tools_length fsm/measures/tools_list
|
|
|
|
fsm_list_tools_pop fsm/measures/tools_list
|
|
|
|
fsm_list_tools_test fsm/measures/tools_list
|
|
|
|
fsm_list_tools_view fsm/measures/tools_list
|
|
|
|
fsm_remove_data fsm/measures/data_list
|
|
|
|
fsm_reset_all_situations_values fsm/preferences/manager
|
|
|
|
fsm_rule_trig_measure fsm/measures/manager
|
|
|
|
fsm_set_exec_edit fsm/dispatch
|
|
|
|
fsm_set_preferences_modified fsm/dispatch
|
|
|
|
fsm_set_state_rules_data fsm/dispatch
|
|
|
|
fsm_set_store_restore_reset fsm/dispatch
|
|
|
|
fsm_struct_journal fsm.h
|
|
|
|
fsm_struct_journal_unit fsm.h
|
|
|
|
fsm_struct_list_data fsm.h
|
|
|
|
fsm_struct_list_disp fsm.h
|
|
|
|
fsm_struct_list_tool fsm.h
|
2024-10-01 11:21:28 +02:00
|
|
|
on_auto_notification signal 37 static
|
|
|
|
on_axis_value_change signal 181
|
|
|
|
on_bind_user_tree_factory signal 81
|
|
|
|
on_clicked_topbar_right_home signal 373 < to rename
|
|
|
|
on_clicked_topbar_right_search signal 364 < to rename
|
|
|
|
on_discard_current_model_before_editing signal 228
|
|
|
|
on_entry_name_delete_after signal 547
|
|
|
|
on_entry_name_insert_after signal 542
|
|
|
|
on_glarea_realize signal 132
|
|
|
|
on_glarea_render signal 112
|
|
|
|
on_glarea_unrealize signal 158
|
|
|
|
on_measure_ ... signal 453 sqq.
|
|
|
|
on_realize_debug util/draw/gl 335 static
|
|
|
|
on_render_debug util/draw/gl 345 static
|
|
|
|
on_resetting_XYZ_in_state_page signal 404
|
|
|
|
on_save_current_model_before_editing signal 220
|
|
|
|
on_select_rules_first signal 446
|
|
|
|
on_setup_user_tree_factory signal 73
|
|
|
|
on_situations_box_do_reset signal 412
|
|
|
|
on_start_new_measure signal 439
|
|
|
|
on_toggle_exec_edit signal 254 < to rename
|
|
|
|
on_toggle_state_rules_data signal 286 < to rename
|
|
|
|
on_topbar_right_measure_clicked signal 426
|
|
|
|
on_updating_objects_transparencies signal 389
|
|
|
|
on_user_tree_expander_toggled signal 64 static
|
|
|
|
on_windows_activation widget/dispatch 67
|
|
|
|
on_windows_startup widget/dispatch 61
|
|
|
|
on_write_current_model signal 236
|
|
|
|
parse_model_get_dim util/parse 231
|
|
|
|
parse_model_get_dim_value util/parse 244
|
|
|
|
parse_model_get_multiplicity util/parse 255
|
|
|
|
parse_model_get_next_arrow util/parse 346
|
|
|
|
parse_model_get_next_state util/parse 269
|
|
|
|
parse_model_get_state_arrows_count util/parse 295
|
|
|
|
parse_model_init 29 (not used)
|
|
|
|
parse_model_shutdown util/parse 88
|
|
|
|
parse_parse_model_init util/parse 46
|
|
|
|
shader frag graphics/shader
|
|
|
|
shader vert graphics/shader
|
|
|
|
stack_index stack_index 38
|
|
|
|
stack_index_size stack_index 39
|
|
|
|
stack_index_t util/draw/gl.c 32
|
|
|
|
switch_state_rules_data signal 305 static
|
2024-09-30 21:54:33 +02:00
|
|
|
TreeNode_t widget.h (rename ?)
|
2024-10-01 11:21:28 +02:00
|
|
|
util_gl_clean_stack_index util/draw/gl.c 150
|
|
|
|
util_gl_get_stack util/draw/gl.c 66
|
|
|
|
util_gl_init_stack util/draw/gl.c 102
|
|
|
|
util_gl_is_ready util/draw/gl.c 84
|
|
|
|
util_gl_is_util_ready 92 TODO
|
|
|
|
util_gl_render_stack util/draw/gl.c 166
|
|
|
|
util_gl_set_arrow util/draw/gl.c 42
|
|
|
|
util_gl_setup_glarea util/draw/gl.c 364
|
|
|
|
util_gl_shutdown_all_stacks util/draw/gl.c 207
|
|
|
|
util_gl_shutdown_stack util/draw/gl.c 133
|
|
|
|
util_gl_update_axis util/draw/gl.c 187
|
|
|
|
util_double_list_test util/tests
|
|
|
|
util_list_2x2_ ^c^v (8 fonctions) util/list_2x2
|
|
|
|
util_pile_ ^c^v (5 fonctions) util/pile
|
|
|
|
util_pile_test util/tests
|
|
|
|
util_read_file util/io
|
|
|
|
util_sorted_list_ ^c^v (5 fonctions) util/sorted_list
|
|
|
|
util_sorted_list_test util/tests
|
|
|
|
util_trigger_test util/tests
|
|
|
|
widget_add_tree_child_node util/tree 32
|
|
|
|
widget_create_user_rules_tree_node util/tree 41
|
2024-09-30 18:12:50 +02:00
|
|
|
widget_design_dialog_window widget/dispatch
|
|
|
|
widget_design_main_window widget/dispatch
|
|
|
|
widget_design_text_window widget/dispatch
|
2024-09-30 21:54:33 +02:00
|
|
|
widget_measure_do_select_rules_first widget/measure/dispatch
|
|
|
|
widget_measure_do_ ... 295 sqq.
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_measure_event_occurences_dates widget/measure/dispatch
|
|
|
|
widget_measure_event_occurences_nb widget/measure/dispatch
|
|
|
|
widget_measure_event_occurences_situations widget/measure/dispatch
|
|
|
|
widget_measure_other_events_between_the_two widget/measure/dispatch
|
|
|
|
widget_measure_time_elapsed_between_two_events widget/measure/dispatch
|
2024-09-30 21:54:33 +02:00
|
|
|
widget_get_address_text_theory widget/topbar/dispatch
|
|
|
|
widget_get_address_text_practice widget/topbar/dispatch
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_get_btt_label_data widget/topbar/left
|
|
|
|
widget_get_btt_label_rules widget/topbar/left
|
|
|
|
widget_get_btt_label_state widget/topbar/left
|
|
|
|
widget_get_btt_label_synth widget/topbar/left
|
2024-09-30 18:12:50 +02:00
|
|
|
widget_get_dialog_window widget/dispatch
|
2024-09-30 21:54:33 +02:00
|
|
|
widget_get_graph_view_control widget/state/middle
|
2024-09-30 18:12:50 +02:00
|
|
|
widget_get_main_window widget/dispatch
|
|
|
|
widget_get_non_time_dependent widget/synth/dispatch
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_get_object_transparency widget/state/top
|
|
|
|
widget_get_page_data widget/results/dispatch
|
|
|
|
widget_get_page_engine 104 TODO
|
|
|
|
widget_get_page_measure widget/measure/dispatch
|
|
|
|
widget_get_page_state widget/state/dispatch
|
2024-09-30 18:12:50 +02:00
|
|
|
widget_get_page_synth widget/synth/dispatch
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_get_pane_all_rules_left widget/all_rules/dispatch
|
|
|
|
widget_get_pane_selected_rule_right widget/one_rule/dispatch
|
|
|
|
widget_get_results_box_display widget/results/display
|
|
|
|
widget_get_results_box_organize widget/results/organize
|
|
|
|
widget_get_results_box_time widget/results/display
|
2024-09-30 21:54:33 +02:00
|
|
|
widget_get_rule_edition_tools widget/one_rule/geometry/edit
|
|
|
|
widget_get_rule_investigation_tools widget/one_rule/geometry/investigate
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_get_rule_geometry_and_algebra 187 TODO (not yet used)
|
|
|
|
widget_get_rules_pilot_box widget/all_rules/tree/pilot_box
|
|
|
|
widget_get_rules_tree_tools widget/all_rules/tree/pilot_box
|
|
|
|
widget_get_rules_use widget/all_rules/tree/freq
|
|
|
|
widget_get_selected_rule widget/one_rule/dispatch
|
|
|
|
widget_get_selected_rule_algebra widget/one_rule/algebra/dispatch
|
|
|
|
widget_get_selected_rule_assignations_list_btt widget/one_rule/algebra/assign
|
|
|
|
widget_get_selected_rule_before_after widget/one_rule/geometry/geometry
|
|
|
|
widget_get_selected_rule_camera widget/one_rule/geometry/camera
|
2024-09-30 21:54:33 +02:00
|
|
|
widget_get_selected_rule_conditions_list_btt widget/one_rule/algebra/conditions
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_get_selected_rule_geometry widget/one_rule/geometry/dispatch
|
2024-09-30 21:54:33 +02:00
|
|
|
widget_get_selected_rule_identity_btt widget/one_rule/algebra/identity
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_get_sequence_control widget/state/bottom
|
|
|
|
widget_get_space_edit_control widget/state/bottom
|
2024-09-30 21:54:33 +02:00
|
|
|
widget_get_space_view widget/state/middle
|
2024-09-30 18:12:50 +02:00
|
|
|
widget_get_space_vs_non_time_dependent widget/synth/dispatch
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_get_text_from_address widget/topbar/modal
|
2024-09-30 18:12:50 +02:00
|
|
|
widget_get_text_window widget/dispatch
|
|
|
|
widget_get_time_dependent widget/synth/time
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_get_user_rules_tree util/tree 88
|
|
|
|
widget_reset_XYZ_scrollbars_rule 166 TODO
|
|
|
|
widget_reset_XYZ_scrollbars_state 167 TODO
|
|
|
|
widget_reset_XYZ_scrollbars_synth 168 TODO
|
|
|
|
widget_set_item_text widget/one_rule/algebra/dispatch
|
2024-09-30 21:54:33 +02:00
|
|
|
widget_set_objects_value widget/state/top
|
|
|
|
widget_set_situations_value widget/state/top
|
2024-10-01 11:21:28 +02:00
|
|
|
widget_state_XYZ_reset_all widget/state/middle TODO (dispatch)
|
2024-09-30 21:54:33 +02:00
|
|
|
window_design_topbar_left widget/dispatch
|
|
|
|
window_design_topbar_right widget/dispatch
|
2024-09-30 18:12:50 +02:00
|
|
|
|