diff --git a/include/fsm.h b/include/fsm.h index 48ab3eb..0694af9 100644 --- a/include/fsm.h +++ b/include/fsm.h @@ -49,6 +49,9 @@ typedef struct disp_list {int value; struct disp_list *suiv;} disp_list ; /******************************************************************************/ /* J O U R N A L */ /******************************************************************************/ + +// ****************** - SEVERITY - ****************************************/ +// // CRITICAL ERROR WARNING INFO MESSAGE DEBUG SPEW (see: fsm.h) // 0 1 2 3 4 5 6 (fsm_journal_event) @@ -60,13 +63,34 @@ typedef struct disp_list {int value; struct disp_list *suiv;} disp_list ; #define DEBUG 5 #define SPEW 6 // THE_LOWER THE PRIORITY, THE HIGHER THE INDEX -// WINDOW BUTTON GLIDER GLAREA etc. -#define WINDOW 0 -#define BUTTON 1 -#define SCROLL 2 -#define GLAREA 3 -#define TEXT 4 -#define LABEL 5 +// ****************** - WIDGET FILTER - **********************************/ +// +// MAIN_WINDOW DIALOG_WINDOW MODAL_WINDOW +// TOPBAR TOPBAR_LEFT TOPBAR_RIGHT +// SYNTH_PAGE STATE_PAGE RULES_PAGE RESULTS_PAGE +// SYNTH_GLAREA SYNTH_ALL_RESULTS SYNTH_TIME_DEP_RESULTS SYNTH_TIME_INDEP_RESULTS +// STATE_TOP STATE_GLAREA STATE_CAMERA STATE_BOTTOM +// RULE_CAMERA RULE_GLAREA RULES_MANAGE RULES_TREE RULES_COMPARE RULES_USE +// MEASURES_TOOLS MEASURES_ACTIVE TIME_DEP_RESULTS TIME_INDEP_RESULTS +// +// BUTTON GLIDER GLAREA etc. + +#define MAIN_WINDOW 0 +#define DIALOG_WINDOW 1 +#define MODAL_WINDOW 2 +#define TOPBAR 3 +#define TOPBAR_LEFT 4 +#define TOPBAR_RIGHT 5 +#define SYNTH_PAGE 6 +#define STATE_PAGE 7 +#define RULES_PAGE 8 +#define RESULTS_PAGE 9 + +#define BUTTON 31 +#define SCROLL 32 +#define GLAREA 33 +#define TEXT 34 +#define LABEL 35 #define JOURNAL_DATE_MAX_LENGTH 255 diff --git a/src/fsm/dispatch.c b/src/fsm/dispatch.c index 5907bde..0faff1c 100644 --- a/src/fsm/dispatch.c +++ b/src/fsm/dispatch.c @@ -62,11 +62,13 @@ void fsm_journal_publication_request () {fsm_journal_publish (gg_logs);} #define CRITICAL___ERROR____WARNING___INFO____MESSAGE___DEBUG ___SPEW____😄️ 0 -void fsm_journal_event (char *message, int priority, int specificity) +void fsm_journal_event (char *message, int priority, int filter) { // CRITICAL ERROR WARNING INFO MESSAGE DEBUG SPEW 😄️ // 0 1 2 3 4 5 6 - if (priority < DEBUG) fsm_journal_push (message); + if (priority < DEBUG + || filter == 3) + fsm_journal_push (message); } #define _CRITICAL___ERROR____WARNING___INFO____MESSAGE___DEBUG ___SPEW____👋️ 0 @@ -151,7 +153,7 @@ void fsm_set_state_rules_data (int choice) /******************************************************************************/ -/* switch D E B U G G I N G */ +/* D E B U G G I N G */ /******************************************************************************/ static char *tab_0 [] = { "EXEC", "EDIT" };