51 lines
2.9 KiB
C
51 lines
2.9 KiB
C
void ui_enable_action (const char *name);
|
|
void ui_disable_action (const char *name);
|
|
|
|
void set_run_edit_mode(int prescribed_mode);
|
|
int get_run_edit_mode();
|
|
|
|
// je vais déjà voir si j'arrive à manoeuvrer ces deux là... (2024-05-30)
|
|
// GtkWidget *btt_run_xor_edit = gtk_toggle_button_new ();
|
|
// GtkWidget *btt_run_stop_exec = gtk_toggle_button_new ();
|
|
|
|
// https://docs.gtk.org/gio/method.ActionMap.add_action_entries.html
|
|
// A function for creating multiple GSimpleAction instances and adding them to a GActionMap.
|
|
// @see application . gem_graph_client_application_init (GemGraphClientApplication *self) {
|
|
// g_action_map_add_action_entries (G_ACTION_MAP(self), app_actions, G_N_ELEMENTS(app_actions), self); ...
|
|
|
|
void ui_toggle_run_edit();
|
|
|
|
void on_quit_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_about_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_preferences_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
|
|
// my "action of interest" : (2024-06-01)
|
|
void on_togglerunedit_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
//
|
|
void on_togglerunstop_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_togglesidebar_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_editmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_runmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_presentmode_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_openfile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_closefile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_savefile_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
void on_toast_close_action (GSimpleAction *action, GVariant *parameter, gpointer user_data);
|
|
|
|
static const GActionEntry app_actions[] = {
|
|
{ "quit", on_quit_action, NULL, NULL, NULL },
|
|
{ "about", on_about_action, NULL, NULL, NULL },
|
|
{ "preferences", on_preferences_action, NULL, NULL, NULL },
|
|
{ "togglerunedit", on_togglerunedit_action, NULL, NULL, NULL },
|
|
{ "togglerunstop", on_togglerunstop_action, NULL, NULL, NULL },
|
|
{ "togglesidebar", on_togglesidebar_action, NULL, NULL, NULL },
|
|
{ "editmode", on_editmode_action, NULL, NULL, NULL },
|
|
{ "runmode", on_runmode_action, NULL, NULL, NULL },
|
|
{ "presentmode", on_presentmode_action, NULL, NULL, NULL },
|
|
{ "openfile", on_openfile_action, NULL, NULL, NULL },
|
|
{ "closefile", on_closefile_action, NULL, NULL, NULL },
|
|
{ "savefile", on_savefile_action, NULL, NULL, NULL },
|
|
{ "toastclose", on_toast_close_action, NULL, NULL, NULL },
|
|
};
|
|
|