/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Gem-graph client * * * * Widgets header * * * * Copyright © 2021 Libre en Communs * * Copyright © 2021 Adrien Bourmault * * Copyright © 2021 Jean Sirmai * * * * This file is part of Gem-graph. * * * * This program is free software: you can redistribute it and/or modify it * * under the terms of the GNU Affero General Public License * * as published by the Free Software Foundation, * * either version 3 of the License, * * or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; * * without even the implied warranty of MERCHANTABILITY * * or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU Affero General Public License for more details. * * * * You should have received a copy of the GNU Affero General Public License * * along with this program. If not, see . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #pragma once #include /******************************************************************************/ /* W I N D O W S */ /******************************************************************************/ // called in dispatch.c // functions are in topbar.c #define W_MY_SCREEN 1920 // 1920 x 960 = ad hoc (pour mon écran)) #define H_MY_SCREEN 1000 // Full HD (1920 x 1080 pixels) #define W_TEXT_WINDOW 550 // ad hoc (mais sans conséquences ici) #define H_TEXT_WINDOW 1000 void widget_design_main_window (GtkWindow *main_window); void widget_design_dialog_window (GtkWindow *main_window, GtkWindow *dialog_window); void widget_design_text_window (GtkWindow *main_window, GtkWindow *text_window); // called in topbar // functions are in topbar / dispatch.c void *widget_get_main_window(); void *widget_get_dialog_window(); void *widget_get_text_window(); // functions are in topbar / left.c void *widget_get_btt_synth(); // {return btt_SYNTH;} void *widget_get_btt_state(); // {return btt_STATE;} void *widget_get_btt_rules(); // {return btt_RULES;} void *widget_get_btt_data(); // {return btt_DATA;} void window_header_bar_left (GtkWidget *header_bar); void window_header_bar_right (GtkWidget *header_bar); /******************************************************************************/ /* W I D G E T S */ /******************************************************************************/ // called in signal.c void *widget_get_synth_page(); // in : src/widget/synth/dispatch.c void *widget_get_state_page(); // in : src/widget/state/dispatch.c void *widget_get_rules_page(); // in : src/widget/rules/dispatch.c void *widget_get_data_page(); // in : src/widget/data /dispatch.c #define W_TREE_160 160 #define W_DO_UNDO_REDO_BOX_1300 1300 #define H_XYZ_BOX_200 200 #define H_OBJECTS_SITUATIONS_130 130 #define W_COMPARATOR_64 64 #define W_RULES_USE_90 90 #define W_IMAGE_800 800 #define W_IMAGE_100 100 #define ARBITRARY_PARTITION_1600 1600 #define ARBITRARY_PARTITION_750 750 #define ARBITRARY_PARTITION_600 600 /******************************************************************************/ /* S Y N T H */ /******************************************************************************/ // called in : src/widget/synth/dispatch.c // defined in : src/widget/synth/time.c void *widget_get_time_dependent_results_and_time_controls(); /******************************************************************************/ /* S T A T E */ /******************************************************************************/ // called in : src/widget/state/distribvoid *widget_get_rule_edit_control().c void *widget_get_space_view(); // middle void *widget_get_graph_view_control(); // middle void *widget_get_space_edit_control(); // bottom void *widget_get_sequence_control(); // bottom // called in : src/widget/state/top.c void widget_reset_all_situations_transparencies_to_value (int value); // top void widget_set_object_transparency_to_value (int rank, int value); // top int widget_get_object_transparency (int i); // top /******************************************************************************/ /* R U L E S */ /******************************************************************************/ // called in : src/widget/rules/distrib.c void *widget_get_selected_rule(); void *widget_get_rules_left_pane(); void *widget_get_rules_page(); void *widget_get_rule_edit(); void *widget_get_rule_analyse(); void *widget_get_rules_right_pane(); void *widget_get_rules_pilot_box(); void *widget_get_rules_tree_tools(); void *widget_get_rules_use(); void *widget_get_selected_rule_texts(); void *widget_get_selected_rule_images(); /******************************************************************************/ /* D A T A */ /******************************************************************************/ // in : data / ..._page // called by topbar / .widget_design_text_window() void *widget_get_measures_page(); void *widget_get_results_page(); void *widget_get_operations_on_results_page(); /******************************************************************************/ /* T R E E */ /******************************************************************************/ struct TreeNode_t {gchar *text; struct TreeNode_t *child, *next;}; struct TreeNode_t *widget_create_user_tree_node (const gchar* text); void widget_add_child_node (struct TreeNode_t *parent, struct TreeNode_t *child); void *widget_get_user_rules_tree (); // see "labo.c" for specification of the tree /******************************************************************************/ /* T E X T S */ /******************************************************************************/ // texts in : data / text / // functions in : widget / stock.c // used by text_window (see topbar/dispatch.c)) void *widget_get_text_from_address (gchar *text_name); char *widget_get_text_address_theory (); char *widget_get_text_address_practice (); /******************************************************************************/ /* I M A G E S */ /******************************************************************************/ // images in : data / image / // used by : widget / rules.c void *widget_get_an_impression_of_what_a_rules_comparator_could_be(); /******************************************************************************/ /* L A B O */ /******************************************************************************/ // now in : src/widget/rules/tree_tools/ // called by tree.c widget_get_user_rules_tree() void widget_let_us_create_a_complex_useless_and_expensive_tree (struct TreeNode_t *tree_root); /******************************************************************************/ /* M E N U */ /******************************************************************************/