diff --git a/include/widget.h b/include/widget.h index 24904ab..a168fcf 100644 --- a/include/widget.h +++ b/include/widget.h @@ -97,11 +97,11 @@ void window_design_topbar_right (GtkWidget *header_bar, GtkApplication *app); // - widget / data / dispatch.c // - widget / measure / dispatch.c -void *widget_get_page_synth(); // in : widget / synth / dispatch.c -void *widget_get_page_state(); // in : widget / state / dispatch.c -void *widget_get_page_data(); // in : widget / data / dispatch.c -void *widget_get_page_measure();// in : widget / measure / dispatch.c -void *widget_get_page_engine(); // in : fsm / engine / engine.c +void *widget_get_page_synth(); // in : widget / synth / dispatch.c +void *widget_get_page_state(); // in : widget / state / dispatch.c +void *widget_get_page_data(); // in : widget / data / dispatch.c +void *widget_get_page_measure(); // in : widget / measure / dispatch.c +void *widget_get_page_engine(); // in : fsm / engine / engine.c /* The rules page consists of two half-pages in a GtkPaned widget : * - on the left, widgets for controlling or editing all the rules. @@ -154,9 +154,9 @@ void *widget_get_sequence_control(); // bottom // call: prefer.c // def: widget / state / top.c -void widget_set_situations_value (int value); // top -void widget_set_objects_value (int rank, int value); // top -int widget_get_object_transparency (int i); // top +void widget_set_situations_value (int value); +void widget_set_objects_value (int rank, int value); +int widget_get_object_transparency (int i); // call: signal.c diff --git a/read_me.doc b/read_me.doc index 70ce6ec..5bfa4fa 100644 --- a/read_me.doc +++ b/read_me.doc @@ -35,9 +35,8 @@ * 1) localisées dans les headers; une avant chaque fonction; * 2) structure: (ref: Doxygen) * - * @fn (une phrase) décrit ce que fait la fonction - * @brief (texte libre) détaille comment, pourquoi, le type d'algorithme, - * historique, discussion avantages/inconvénients,... + * @brief (une phrase) décrit ce que fait la fonction + * @detailed (texte libre) - idem - * @warning (si besoin de préciser) * @todo * @fixme (on espère que pas, mais...) diff --git a/scripts/Hello World, I'm back ! 😄.py b/scripts/Hello World, I'm back ! 😄.py deleted file mode 100755 index 51e1176..0000000 --- a/scripts/Hello World, I'm back ! 😄.py +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env python3 -print("Hello World, I'm back ! 😄") diff --git a/scripts/junk b/scripts/junk index 89873ee..76f8eee 100644 --- a/scripts/junk +++ b/scripts/junk @@ -1,38 +1,69 @@ -widget_set_item_text -*widget_get_address_text_alpha_index -*widget_get_address_text_practice -*widget_get_address_text_theory -char -char -char -char - -TreeNode_t -TreeNode_t -*widget_get_an_impression_of_what_a_rules_comparator_could_be(); - -*widget_get_dialog_window(); - -*widget_get_graph_view_control(); -*widget_get_main_window(); - -*widget_get_non_time_dependent(); - -*widget_get_page_data(); -*widget_get_page_engine(); -*widget_get_page_measure();// -*widget_get_page_state(); -*widget_get_page_synth(); -*widget_get_pane_all_rules_left(); - -*widget_get_pane_selected_rule_right(); - -*widget_get_results_box_display(); - -*widget_get_results_box_organize(); - -*widget_get_results_box_time -*widget_get_rule_edition_tools(); -*widget_get_rule_investigation_tools(); -*widget_get_rules_pilot_box(); -*widget_get_rules_tree_tools(); +0 widget_get_main_window +1 widget_get_dialog_window +2 widget_get_text_window +3 widget_design_main_window +4 widget_design_dialog_window +5 widget_design_text_window +6 window_design_topbar_left +7 window_design_topbar_right +8 widget_get_page_synth +9 widget_get_page_state +10 widget_get_page_data +11 widget_get_page_measure +12 widget_get_page_engine +13 widget_get_time_dependent +14 widget_get_space_vs_non_time_dependent +15 widget_get_non_time_dependent +16 widget_get_space_view +17 widget_get_graph_view_control +18 widget_get_space_edit_control +19 widget_get_sequence_control +20 widget_set_situations_value +21 widget_set_objects_value +22 +23 widget_reset_XYZ_in_state_pane +24 widget_reset_XYZ_scrollbars_rule +25 widget_reset_XYZ_scrollbars_state +26 widget_reset_XYZ_scrollbars_synth +27 widget_get_pane_all_rules_left +28 widget_get_pane_selected_rule_right +29 widget_get_rules_pilot_box +30 widget_get_rules_tree_tools +31 widget_get_rules_use +32 widget_get_selected_rule +33 widget_get_rule_edition_tools +34 widget_get_rule_investigation_tools +35 widget_get_selected_rule_algebra +36 widget_get_selected_rule_geometry +37 widget_get_selected_rule_conditions_list_btt +38 widget_get_selected_rule_assignations_list_btt +39 widget_get_selected_rule_identity_btt +40 widget_set_item_text +41 widget_get_selected_rule_camera +42 widget_get_selected_rule_before_after +43 widget_get_results_box_organize +44 widget_get_results_box_display +45 widget_get_results_box_time +46 widget_add_tree_child_node +47 widget_get_user_rules_tree +48 widget_get_text_from_address +49 widget_get_address_text_theory +50 widget_get_address_text_practice +51 widget_get_address_text_alpha_index +52 widget_get_an_impression_of_what_a_rules_comparator_could_be +53 widget_let_us_create_a_complex_useless_and_expensive_tree +54 widget_measure_new +55 widget_measure_do_select_rules_first +56 widget_measure_do_depends_on_one_or_two_events +57 widget_measure_do_depends_on_a_single_event +58 widget_measure_do_depends_on_two_events +59 widget_measure_do_select_a_second_rules_set +60 widget_measure_do_choose_an_event_type +61 widget_measure_do_correlate +62 widget_measure_do_insert_in_measurements_list +63 widget_measure_do_end_creation_of_measurement_process +64 widget_measure_event_occurences_nb +65 widget_measure_event_occurences_dates +66 widget_measure_event_occurences_situations +67 widget_measure_time_elapsed_between_two_events +68 widget_measure_third_event_occurences_in_between diff --git a/scripts/parsing_functions_names.py b/scripts/parsing_functions_names.py index 322db73..22f8c60 100755 --- a/scripts/parsing_functions_names.py +++ b/scripts/parsing_functions_names.py @@ -5,27 +5,43 @@ rr = open('include/widget.h', 'r', encoding='UTF-8') ww = open('scripts/junk', "w") l = [None] * 75 -n = 0 +n = -1 for line in rr: if (line [0:4] == 'void' or line [0:3] == 'int' or line [0:4] == 'char' - or line [0:10] == 'const char' - or line [0:8] == 'GtkEntry' - or line [0:17] == 'struct TreeNode_t'): - #print(n, ' ', line [:len(line)-1]) - #ww.write(line [:len(line)]) - l[n] = line + or line [0:8] == 'GtkEntry'): n += 1 + l[n] = line.split(' ')[1] + if (len(l[n]) > 0 + and l[n][0] == '*'): + l[n] = l[n][1:] -l.sort() -n = 0 +for line in rr: + if (line [0:10] == 'const char' + or line [0:17] == 'struct TreeNode_t'): + n += 1 + l[n] = line.split(' ')[2] + if (len(l[n]) > 0 + and l[n][0] == '*'): + l[n] = l[n][1:] + + +#l.sort() +n = -1 for line in l: - print(n, ' ', line [:len(line)-1]) - if n in range(30): - ww.write(line.split(' ')[1] + '\n') n += 1 + if (line != None + and n in range(75)): + if (line[-1:] == '\n'): + line = line[:-1] + if (line[-3:] == '();'): + line = line[:-3] + line = str(n) + ' ' + line + print(line) + line = line + '\n' + ww.write(line) rr.close() ww.close()