|
|
|
@ -92,182 +92,68 @@ void let_us_create_a_complex_useless_and_expensive_tree (struct TreeNode_t *tree
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GtkWidget *get_window_child_DATA_lab () {
|
|
|
|
|
if (0) printf("widgets.get_window_child_DATA (line 279)\n");
|
|
|
|
|
GtkBox *data_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 32));
|
|
|
|
|
|
|
|
|
|
GtkWidget* frame_rule_effect = gtk_frame_new ("rule effect\n-----------");
|
|
|
|
|
gtk_frame_set_label_align (GTK_FRAME (frame_rule_effect), 0.5);
|
|
|
|
|
GtkBox *rule_effect_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 8));
|
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame_rule_effect), GTK_WIDGET (rule_effect_box));
|
|
|
|
|
|
|
|
|
|
GtkWidget* frame_rule_topic = gtk_frame_new ("rule topic\n----------");
|
|
|
|
|
gtk_frame_set_label_align (GTK_FRAME (frame_rule_topic), 0.5);
|
|
|
|
|
GtkBox *rule_topic_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 8));
|
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame_rule_topic), GTK_WIDGET (rule_topic_box));
|
|
|
|
|
|
|
|
|
|
GtkWidget* frame_data_type = gtk_frame_new ("data type\n----------");
|
|
|
|
|
gtk_frame_set_label_align (GTK_FRAME (frame_data_type), 0.5);
|
|
|
|
|
GtkBox *data_type_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 8));
|
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame_data_type), GTK_WIDGET (data_type_box));
|
|
|
|
|
|
|
|
|
|
GtkWidget* frame_interpretations = gtk_frame_new ("interpretation\n---------------");
|
|
|
|
|
gtk_frame_set_label_align (GTK_FRAME (frame_interpretations), 0.5);
|
|
|
|
|
GtkBox *interpretations_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 8));
|
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame_interpretations), GTK_WIDGET (interpretations_box));
|
|
|
|
|
|
|
|
|
|
GtkWidget* frame_discussions = gtk_frame_new ("discussion\n------------");
|
|
|
|
|
gtk_frame_set_label_align (GTK_FRAME (frame_discussions), 0.5);
|
|
|
|
|
GtkBox *discussions_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 8));
|
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame_discussions), GTK_WIDGET (discussions_box));
|
|
|
|
|
|
|
|
|
|
GtkWidget* frame_separator = gtk_frame_new ("\n");
|
|
|
|
|
|
|
|
|
|
GtkWidget* frame_game = gtk_frame_new ("game\n------");
|
|
|
|
|
gtk_frame_set_label_align (GTK_FRAME (frame_game), 0.5);
|
|
|
|
|
GtkBox *game_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 8));
|
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame_game), GTK_WIDGET (game_box));
|
|
|
|
|
|
|
|
|
|
GtkWidget* frame_help = gtk_frame_new ("help\n-----");
|
|
|
|
|
gtk_frame_set_label_align (GTK_FRAME (frame_help), 0.5);
|
|
|
|
|
GtkBox *help_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 8));
|
|
|
|
|
gtk_frame_set_child (GTK_FRAME (frame_help), GTK_WIDGET (help_box));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (data_box, GTK_WIDGET (frame_rule_effect));
|
|
|
|
|
gtk_box_append (data_box, GTK_WIDGET (frame_rule_topic));
|
|
|
|
|
gtk_box_append (data_box, GTK_WIDGET (frame_data_type));
|
|
|
|
|
gtk_box_append (data_box, GTK_WIDGET (frame_interpretations));
|
|
|
|
|
gtk_box_append (data_box, GTK_WIDGET (frame_discussions));
|
|
|
|
|
gtk_box_append (data_box, GTK_WIDGET (frame_separator));
|
|
|
|
|
gtk_box_append (data_box, GTK_WIDGET (frame_game));
|
|
|
|
|
gtk_box_append (data_box, GTK_WIDGET (frame_help));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (rule_effect_box, gtk_button_new_with_label ("movement"));
|
|
|
|
|
gtk_box_append (rule_effect_box, gtk_button_new_with_label ("transport"));
|
|
|
|
|
gtk_box_append (rule_effect_box, gtk_button_new_with_label ("transformation"));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (rule_topic_box, gtk_button_new_with_label ("objects"));
|
|
|
|
|
gtk_box_append (rule_topic_box, gtk_button_new_with_label ("situations"));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (rule_topic_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
|
|
|
|
gtk_box_append (rule_topic_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
|
|
|
|
gtk_box_append (rule_topic_box, gtk_button_new_with_label ("accuracy"));
|
|
|
|
|
gtk_box_append (rule_topic_box, gtk_button_new_with_label ("pattern recognition"));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (data_type_box, gtk_button_new_with_label ("repartitions"));
|
|
|
|
|
gtk_box_append (data_type_box, gtk_button_new_with_label ("evolutions"));
|
|
|
|
|
gtk_box_append (data_type_box, gtk_button_new_with_label ("correlations"));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (interpretations_box, gtk_button_new_with_label ("stochastic"));
|
|
|
|
|
gtk_box_append (interpretations_box, gtk_button_new_with_label ("deterministic"));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (interpretations_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
|
|
|
|
gtk_box_append (interpretations_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
|
|
|
|
gtk_box_append (interpretations_box, gtk_button_new_with_label ("physical"));
|
|
|
|
|
gtk_box_append (interpretations_box, gtk_button_new_with_label ("chemical"));
|
|
|
|
|
gtk_box_append (interpretations_box, gtk_button_new_with_label ("biological"));
|
|
|
|
|
gtk_box_append (interpretations_box, gtk_button_new_with_label ("social"));
|
|
|
|
|
gtk_box_append (interpretations_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (discussions_box, gtk_button_new_with_label ("context"));
|
|
|
|
|
gtk_box_append (discussions_box, gtk_button_new_with_label ("methodology"));
|
|
|
|
|
gtk_box_append (discussions_box, gtk_button_new_with_label ("comparisons"));
|
|
|
|
|
gtk_box_append (discussions_box, gtk_button_new_with_label ("to improve"));
|
|
|
|
|
gtk_box_append (discussions_box, gtk_button_new_with_label ("summary"));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (game_box, gtk_button_new_with_label ("single player"));
|
|
|
|
|
gtk_box_append (game_box, gtk_button_new_with_label ("multiple players"));
|
|
|
|
|
gtk_box_append (game_box, gtk_button_new_with_label ("edition facilities"));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (help_box, gtk_button_new_with_label ("modelization"));
|
|
|
|
|
gtk_box_append (help_box, gtk_button_new_with_label ("measurements"));
|
|
|
|
|
gtk_box_append (help_box, gtk_button_new_with_label ("results"));
|
|
|
|
|
gtk_box_append (help_box, gtk_button_new_with_label ("data analysis"));
|
|
|
|
|
|
|
|
|
|
gtk_box_append (help_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
|
|
|
|
gtk_box_append (help_box, GTK_WIDGET (gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)));
|
|
|
|
|
gtk_box_append (help_box, gtk_button_new_with_label ("preferences"));
|
|
|
|
|
|
|
|
|
|
return GTK_WIDGET (data_box);
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
"rule effect"
|
|
|
|
|
"rule topic"
|
|
|
|
|
"data type"
|
|
|
|
|
"interpretation"
|
|
|
|
|
"discussion"
|
|
|
|
|
"game"
|
|
|
|
|
"help"
|
|
|
|
|
"movement"
|
|
|
|
|
"transport"
|
|
|
|
|
"transformation"
|
|
|
|
|
"objects"
|
|
|
|
|
"situations"
|
|
|
|
|
"accuracy"
|
|
|
|
|
"pattern recognition"
|
|
|
|
|
"repartitions"
|
|
|
|
|
"evolutions"
|
|
|
|
|
"correlations"
|
|
|
|
|
"stochastic"
|
|
|
|
|
"deterministic"
|
|
|
|
|
"physical"
|
|
|
|
|
"chemical"
|
|
|
|
|
"biological"
|
|
|
|
|
"social"
|
|
|
|
|
"context"
|
|
|
|
|
"methodology"
|
|
|
|
|
"comparisons"
|
|
|
|
|
"to improve"
|
|
|
|
|
"summary"
|
|
|
|
|
"single player"
|
|
|
|
|
"multiple players"
|
|
|
|
|
"edition facilities"
|
|
|
|
|
"modelization"
|
|
|
|
|
"measurements"
|
|
|
|
|
"results"
|
|
|
|
|
"data analysis"
|
|
|
|
|
"preferences"
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void icons_for_fun (GtkHeaderBar *header_bar) // https://iconduck.com/sets/adwaita-icon-theme
|
|
|
|
|
// https://iconduck.com/sets/carbon-icons < pas mal ...
|
|
|
|
|
// https://thenounproject.com/icon/train-134324/
|
|
|
|
|
// ma préférée : Transport Steam Engine Icon mais : [ process icon ] semble un bon choix...
|
|
|
|
|
{
|
|
|
|
|
GtkButton *go_home = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (go_home, "go-home-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (go_home));
|
|
|
|
|
/* https://iconduck.com/sets/adwaita-icon-theme
|
|
|
|
|
https://iconduck.com/sets/carbon-icons < pas mal ...
|
|
|
|
|
https://thenounproject.com/icon/train-134324/
|
|
|
|
|
// ma préférée : Transport Steam Engine Icon
|
|
|
|
|
|
|
|
|
|
GtkButton *user_trash = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (user_trash, "user-trash-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (user_trash));
|
|
|
|
|
|
|
|
|
|
GtkButton *help_biblio = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (help_biblio, "accessories-dictionary-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (help_biblio));
|
|
|
|
|
|
|
|
|
|
GtkButton *help_doc = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (help_doc, "emblem-documents-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (help_doc));
|
|
|
|
|
|
|
|
|
|
GtkButton *help_about = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (help_about, "help-about-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (help_about));
|
|
|
|
|
|
|
|
|
|
GtkButton *help_faq = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (help_faq, "help-faq-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (help_faq));
|
|
|
|
|
|
|
|
|
|
GtkButton *terminal = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (terminal, "utilities-terminal-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (terminal));
|
|
|
|
|
|
|
|
|
|
GtkButton *search = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (search, "folder-saved-search-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (search));
|
|
|
|
|
|
|
|
|
|
GtkButton *preferences_desktop_appearance = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (preferences_desktop_appearance, "preferences-desktop-appearance-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (preferences_desktop_appearance));
|
|
|
|
|
|
|
|
|
|
GtkButton *preferences_system = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (preferences_system, "preferences-system-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (preferences_system));
|
|
|
|
|
|
|
|
|
|
GtkButton *document_properties = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (document_properties, "document-properties-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (document_properties));
|
|
|
|
|
|
|
|
|
|
GtkButton *text_edit = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (text_edit, "text-editor-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (text_edit));
|
|
|
|
|
|
|
|
|
|
GtkButton *applications_utilities = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (applications_utilities, "applications-utilities-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (applications_utilities));
|
|
|
|
|
|
|
|
|
|
GtkButton *open_menu = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (open_menu, "open-menu-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (open_menu));
|
|
|
|
|
|
|
|
|
|
GtkButton *power_max = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (power_max, "power-profile-performance-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (power_max));
|
|
|
|
|
|
|
|
|
|
GtkButton *power_middle = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (power_middle, "power-profile-balanced-rtl-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (power_middle));
|
|
|
|
|
|
|
|
|
|
GtkButton *power_low = GTK_BUTTON (gtk_button_new ());
|
|
|
|
|
gtk_button_set_icon_name (power_low, "power-profile-power-saver-symbolic");
|
|
|
|
|
gtk_header_bar_pack_end (header_bar, GTK_WIDGET (power_low));
|
|
|
|
|
|
|
|
|
|
// gtk_button_set_icon_name (btt_XOR_EXEC_EDIT, "process-stop-symbolic");
|
|
|
|
|
}
|
|
|
|
|
gtk_button_set_icon_name (any, "go-home-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "accessories-dictionary-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "emblem-documents-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "help-about-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "help-faq-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "utilities-terminal-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "folder-saved-search-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "preferences-desktop-appearance-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "preferences-system-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "document-properties-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "text-editor-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "applications-utilities-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "open-menu-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "power-profile-performance-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "power-profile-balanced-rtl-symbolic");
|
|
|
|
|
gtk_button_set_icon_name (any, "power-profile-power-saver-symbolic");
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|