2024-06-30 11:53:03 +02:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
|
|
* *
|
|
|
|
* Gem-graph client *
|
|
|
|
* *
|
|
|
|
* Widgets header *
|
|
|
|
* *
|
2024-07-01 00:42:25 +02:00
|
|
|
* Copyright © 2021 Libre en Communs <contact@a-lec.org> *
|
|
|
|
* Copyright © 2021 Adrien Bourmault <neox@a-lec.org> *
|
|
|
|
* Copyright © 2021 Jean Sirmai <jean@a-lec.org> *
|
2024-06-30 11:53:03 +02:00
|
|
|
* *
|
|
|
|
* This file is part of Gem-graph. *
|
|
|
|
* *
|
2024-07-01 00:42:25 +02:00
|
|
|
* 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. *
|
2024-06-30 11:53:03 +02:00
|
|
|
* *
|
2024-07-01 00:42:25 +02:00
|
|
|
* This program is distributed in the hope that it will be useful, *
|
2024-07-01 07:26:16 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; *
|
2024-07-01 00:42:25 +02:00
|
|
|
* without even the implied warranty of MERCHANTABILITY *
|
2024-07-01 07:26:16 +02:00
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. *
|
2024-07-01 00:42:25 +02:00
|
|
|
* See the GNU Affero General Public License for more details. *
|
2024-06-30 11:53:03 +02:00
|
|
|
* *
|
2024-07-01 00:42:25 +02:00
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
2024-06-30 11:53:03 +02:00
|
|
|
* *
|
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
2024-04-22 18:40:30 +02:00
|
|
|
|
|
|
|
#include <gtk-4.0/gtk/gtk.h>
|
|
|
|
|
2024-07-02 17:59:43 +02:00
|
|
|
void set_main_window (GtkApplication *app);
|
|
|
|
void set_dialog_window (GtkApplication *app);
|
|
|
|
|
2024-07-03 18:11:19 +02:00
|
|
|
void widget_MAIN_WINDOW_design (GtkWindow *main_window);
|
|
|
|
void widget_DIALOG_WINDOW_design (GtkWindow *main_window,
|
|
|
|
GtkWindow *dialog_window);
|
2024-04-22 18:40:30 +02:00
|
|
|
|
2024-07-02 17:59:43 +02:00
|
|
|
GtkWindow *get_main_window();
|
|
|
|
GtkWindow *get_dialog_window();
|
|
|
|
|
2024-07-02 20:19:48 +02:00
|
|
|
GtkButton *get_GtkButton (char *btt_name);
|
|
|
|
|
2024-07-03 18:11:19 +02:00
|
|
|
GtkWidget *widget_get_STATE_page();
|
|
|
|
GtkWidget *widget_get_RULES_page();
|
|
|
|
GtkWidget *widget_get_STOCK_page();
|
2024-07-01 00:42:25 +02:00
|
|
|
|
2024-07-02 20:19:48 +02:00
|
|
|
//--------------------------------------------------------
|
|
|
|
|
2024-04-22 18:40:30 +02:00
|
|
|
GtkWidget *get_selected_rules_vpaned_new();
|
2024-07-01 00:42:25 +02:00
|
|
|
GtkWidget *get_rules_tree_hpaned_new();
|
2024-07-01 07:26:16 +02:00
|
|
|
GtkWidget *get_rules_page_new();
|
2024-07-01 00:42:25 +02:00
|
|
|
|
2024-07-02 20:19:48 +02:00
|
|
|
//GtkWidget *get_TIME_EXEC_controls_box();
|
2024-07-02 17:59:43 +02:00
|
|
|
//GtkWidget *get_SPACE_EDIT_controls_box();
|
2024-07-02 20:19:48 +02:00
|
|
|
//GtkWidget *get_OBJECTS_and_SITUATIONS();
|
2024-07-01 00:42:25 +02:00
|
|
|
|
2024-06-30 12:47:34 +02:00
|
|
|
GtkWidget *get_text_view();
|
|
|
|
|
2024-07-03 00:50:21 +02:00
|
|
|
//GtkWidget *get_image_ALL_SPACE();
|
2024-07-03 18:11:19 +02:00
|
|
|
/*
|
2024-06-30 12:47:34 +02:00
|
|
|
GtkWidget *get_image_GLUTAMATE();
|
|
|
|
GtkWidget *get_image_GLUTAMINE();
|
|
|
|
GtkWidget *get_image_HISTIDINE();
|
|
|
|
GtkWidget *get_image_HISTAMINE();
|
|
|
|
GtkWidget *get_image_PHENYLALANINE();
|
|
|
|
GtkWidget *get_image_DOPAMINE();
|
|
|
|
GtkWidget *get_image_ATP();
|
|
|
|
GtkWidget *get_image_AMP();
|
2024-07-03 18:11:19 +02:00
|
|
|
*/
|
2024-07-01 07:26:16 +02:00
|
|
|
GtkFrame *get_frame_with_label();
|
|
|
|
|
2024-06-30 12:47:34 +02:00
|
|
|
GtkProgressBar *get_ELAPSED_TIME_ProgressBar();
|
2024-07-01 00:42:25 +02:00
|
|
|
|
2024-07-02 20:19:48 +02:00
|
|
|
//GtkBox *get_RUN_STOP_box();
|
2024-07-03 18:11:19 +02:00
|
|
|
//GtkBox *get_ZOOM_box();
|
|
|
|
//GtkBox *get_edit_TOOL_box();
|
|
|
|
//GtkBox *get_XYZ_box();
|
|
|
|
//GtkBox *get_rules_user_tree_new();
|
|
|
|
//GtkBox *get_ELAPSED_TIME_box();
|
2024-06-30 12:47:34 +02:00
|
|
|
|
2024-07-01 07:26:16 +02:00
|
|
|
struct TreeNode_t {gchar *text; struct TreeNode_t *child, *next;};
|
|
|
|
void add_child_node (struct TreeNode_t *parent, struct TreeNode_t *child);
|
|
|
|
struct TreeNode_t *create_user_tree_node (const gchar* text);
|
|
|
|
void let_us_create_a_complex_useless_and_expensive_tree (struct TreeNode_t *tree_root);
|
2024-07-02 17:59:43 +02:00
|
|
|
|
2024-07-01 00:42:25 +02:00
|
|
|
GtkScrolledWindow *get_user_rules_tree ();
|
2024-06-30 12:47:34 +02:00
|
|
|
|
2024-07-01 00:42:25 +02:00
|
|
|
void icons_for_fun (GtkHeaderBar *header_bar);
|
2024-06-30 12:47:34 +02:00
|
|
|
|
|
|
|
// https://blog.gtk.org/2020/09/08/on-list-models/ < TODO
|
|
|
|
|