WIP: cleaning
This commit is contained in:
parent
daf5831cce
commit
3d7167361a
1
(notes)
1
(notes)
|
@ -52,6 +52,7 @@ https://docs.gtk.org/gtk4/drag-and-drop.html drag-and-drop
|
||||||
https://docs.gtk.org/gtk4/class.GestureZoom.html GtkGestureZoom
|
https://docs.gtk.org/gtk4/class.GestureZoom.html GtkGestureZoom
|
||||||
https://docs.gtk.org/gtk4/class.ListView.html
|
https://docs.gtk.org/gtk4/class.ListView.html
|
||||||
https://blog.gtk.org/2020/09/08/on-list-models/ < TODO
|
https://blog.gtk.org/2020/09/08/on-list-models/ < TODO
|
||||||
|
https://docs.gtk.org/gio/method.ActionMap.add_action_entries.html
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
49
callback.h
49
callback.h
|
@ -18,55 +18,8 @@ void on_toggle_exec_edit (GtkWidget *btt_exec_xor_edit, GtkWidget *btt_run_stop_
|
||||||
void on_toggle_model_exec (GtkWidget *btt_run_stop_model_exec, gpointer data);
|
void on_toggle_model_exec (GtkWidget *btt_run_stop_model_exec, gpointer data);
|
||||||
void on_toggle_state_rules (GtkWidget *btt_toggle_state_rules, gpointer data);
|
void on_toggle_state_rules (GtkWidget *btt_toggle_state_rules, gpointer data);
|
||||||
void on_toggle_observ_interpret (GtkWidget *btt_toggle_observ_interpret, gpointer data);
|
void on_toggle_observ_interpret (GtkWidget *btt_toggle_observ_interpret, gpointer data);
|
||||||
|
|
||||||
void on_SAVE_CURRENT_MODEL_BEFORE_EDITING (GtkWidget *btt_SAVE_CURRENT_MODEL, gpointer data);
|
void on_SAVE_CURRENT_MODEL_BEFORE_EDITING (GtkWidget *btt_SAVE_CURRENT_MODEL, gpointer data);
|
||||||
void on_DISCARD_CURRENT_MODEL_AND_START_EDITING (GtkWidget *btt_SAVE_CURRENT_MODEL, gpointer data);
|
void on_DISCARD_CURRENT_MODEL_AND_START_EDITING (GtkWidget *btt_SAVE_CURRENT_MODEL, gpointer data);
|
||||||
void on_WRITE_CURRENT_MODEL (GtkWidget *btt_WRITE_CURRENT_MODEL, gpointer data);
|
void on_WRITE_CURRENT_MODEL (GtkWidget *btt_WRITE_CURRENT_MODEL, gpointer data);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
|
|
||||||
S I M P L I F I O N S !
|
|
||||||
|
|
||||||
|
|
||||||
//void ui_enable_action (const char *name);
|
|
||||||
//void ui_disable_action (const char *name);
|
|
||||||
|
|
||||||
// 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 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 },
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
12
dialog.c
12
dialog.c
|
@ -1,16 +1,4 @@
|
||||||
#include <stdio.h>
|
|
||||||
#include <gtk-4.0/gtk/gtk.h>
|
|
||||||
|
|
||||||
#include "callback.h"
|
#include "callback.h"
|
||||||
#include "automaton.h"
|
|
||||||
#include "display.h"
|
|
||||||
#include "tree.h"
|
|
||||||
#include "texts.h"
|
|
||||||
|
|
||||||
// https://docs.gtk.org/gtk4/visual_index.html < widgets gallery
|
|
||||||
// GTK_ORIENTATION_HORIZONTAL GTK_ORIENTATION_VERTICAL
|
|
||||||
|
|
||||||
/* doc : see > on_dialog_window_activation (...) in callback.c */
|
|
||||||
|
|
||||||
void dialog_window_design (GtkWindow *main_window, GtkWindow *dialog_window){
|
void dialog_window_design (GtkWindow *main_window, GtkWindow *dialog_window){
|
||||||
char *title = " Save the current model before modifying it? ";
|
char *title = " Save the current model before modifying it? ";
|
||||||
|
|
Loading…
Reference in New Issue