2024-06-02 22:49:16 +02:00
|
|
|
#include <gtk-4.0/gtk/gtk.h>
|
|
|
|
#include <assert.h>
|
2024-06-03 05:46:01 +02:00
|
|
|
#include "callback.h"
|
2024-06-02 22:49:16 +02:00
|
|
|
|
|
|
|
|
2024-06-04 06:25:47 +02:00
|
|
|
/******************************************************************************/
|
|
|
|
/* EXEC / EDIT */
|
|
|
|
/******************************************************************************/
|
2024-06-03 05:46:01 +02:00
|
|
|
|
2024-06-04 06:25:47 +02:00
|
|
|
enum { EXEC_MODE, EDIT_MODE};
|
2024-06-07 23:34:08 +02:00
|
|
|
static int exec_edit_mode = EXEC_MODE;
|
2024-06-03 05:46:01 +02:00
|
|
|
|
2024-06-07 23:34:08 +02:00
|
|
|
int get_exec_edit_mode () {return exec_edit_mode;}
|
|
|
|
void set_exec_edit_mode (int prescribed) {exec_edit_mode = prescribed;}
|
2024-06-03 05:46:01 +02:00
|
|
|
|
2024-06-04 06:25:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/* RUN / STOP */
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
enum { STOP, RUN };
|
2024-06-07 23:34:08 +02:00
|
|
|
static int run_stop = STOP;
|
2024-06-03 05:46:01 +02:00
|
|
|
|
2024-06-07 23:34:08 +02:00
|
|
|
int get_run_xor_stop_exec () {return run_stop;}
|
|
|
|
void set_run_xor_stop_exec (int prescribed) {run_stop = prescribed;}
|
2024-06-04 06:25:47 +02:00
|
|
|
|
2024-06-07 23:34:08 +02:00
|
|
|
|
|
|
|
/******************************************************************************/
|
|
|
|
/* STATE / RULES / MEASURES / INTERPRETATIONS */
|
|
|
|
/******************************************************************************/
|
|
|
|
|
|
|
|
enum { STATE, RULES, MEASURE, OBSERVE, INTERPRET, HELP, CONFIGURE };
|
|
|
|
static int switch_observ_interpret = STATE;
|
|
|
|
|
|
|
|
int get_observ_interpret () {return switch_observ_interpret;}
|
|
|
|
void set_observ_interpret (int prescribed) {switch_observ_interpret = prescribed;}
|
|
|
|
|
|
|
|
// if (0) printf ("switch_observ_interpret = %d\n", switch_observ_interpret);
|