/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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 init.c // functions are in topbar.c 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.c // functions are in init.c void *widget_get_main_window(); void *widget_get_dialog_window(); void *widget_get_text_window(); /******************************************************************************/ /* W I D G E T S */ /******************************************************************************/ // called in signal.c void *widget_get_state_page(); // in : src/widget/state/distrib.c void *widget_get_rules_page(); // in : src/widget/rules.c void *widget_get_stock_page(); // in : src/widget/stock.c /******************************************************************************/ /* S T A T E */ /******************************************************************************/ // called in : src/widget/state/distrib.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_reset_objects_transparency_to_values (int *value); // top void *widget_get_objects_transparencies(); // top /******************************************************************************/ /* S T O C K */ /******************************************************************************/ // in : stock.c // called by topbar.c.widget_design_text_window() void *widget_get_stock_text (gchar *text_name); /******************************************************************************/ /* 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 /******************************************************************************/ /* I M A G E S */ /******************************************************************************/ // images in : data / image / // functions in : widget / stock.c // used by : widget / rules.c void *widget_get_image_E_coli(); void *widget_get_image_glutamate(); void *widget_get_image_glutamine(); void *widget_get_image_ATP(); void *widget_get_image_AMP(); /******************************************************************************/ /* T E X T S */ /******************************************************************************/ // texts in : data / text / // functions in : widget / stock.c // used by text_window (see topbar.c)) char *widget_get_text_address_theory (); char *widget_get_text_address_about_commands (); char *widget_get_text_address_any (); /******************************************************************************/ /* L A B O */ /******************************************************************************/ // 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 */ /******************************************************************************/