2024-06-30 11:53:03 +02:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
|
|
* *
|
|
|
|
* Gem-graph client *
|
|
|
|
* *
|
|
|
|
* Widgets header *
|
|
|
|
* *
|
|
|
|
* Copyright © 2021 Libre en Communs <contact@a-lec.org> *
|
|
|
|
* Copyright © 2023 Adrien Bourmault <neox@a-lec.org> *
|
|
|
|
* Copyright © 2024 Jean Sirmai <jean@a-lec.org> *
|
|
|
|
* *
|
|
|
|
* 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 publishedby 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 <http://www.gnu.org/licenses/>. *
|
|
|
|
* *
|
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
|
2024-04-22 18:40:30 +02:00
|
|
|
|
|
|
|
#include <gtk-4.0/gtk/gtk.h>
|
|
|
|
|
|
|
|
#define W 1920
|
|
|
|
#define H 960
|
|
|
|
#define W_IMAGE W - 320
|
|
|
|
#define H_IMAGE H - 126
|
|
|
|
#define H_STYLES_PANE 30
|
|
|
|
#define W_IMAGE_LOCAL W / 16
|
|
|
|
#define H_IMAGE_LOCAL H / 16
|
|
|
|
|
|
|
|
void main_window_design (GtkWindow *main_window);
|
2024-06-30 12:47:34 +02:00
|
|
|
void dialog_window_design (GtkWindow *main_window, GtkWindow *dialog_window);
|
2024-04-22 18:40:30 +02:00
|
|
|
|
|
|
|
GtkFrame *get_frame_with_label();
|
|
|
|
GtkWidget *get_selected_rules_vpaned_new();
|
|
|
|
GtkWidget *get_TIME_EXEC_controls_box();
|
|
|
|
GtkWidget *get_SPACE_EDIT_controls_box();
|
|
|
|
GtkButton *get_GtkButton (char *btt_name);
|
|
|
|
GtkWidget *get_window_child_STATE();
|
|
|
|
GtkWidget *get_window_child_RULES();
|
|
|
|
GtkWidget *get_window_child_DATA();
|
2024-06-30 12:47:34 +02:00
|
|
|
|
|
|
|
GtkWidget *get_text_view();
|
|
|
|
GtkFrame *get_frame_with_label();
|
|
|
|
GtkWidget *get_rules_page_new();
|
|
|
|
GtkBox *get_rules_user_tree_new();
|
|
|
|
|
|
|
|
GtkWidget *get_image_ALL_SPACE();
|
|
|
|
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();
|
|
|
|
GtkWidget *get_rules_tree_hpaned_new();
|
|
|
|
|
|
|
|
GtkProgressBar *get_ELAPSED_TIME_ProgressBar();
|
|
|
|
GtkBox *get_RUN_STOP_box();
|
|
|
|
GtkBox *get_ZOOM_box();
|
|
|
|
GtkBox *get_edit_TOOL_box();
|
|
|
|
GtkBox *get_XYZ_box();
|
|
|
|
GtkWidget *get_OBJECTS_and_SITUATIONS();
|
|
|
|
GtkBox *get_ELAPSED_TIME_box();
|
|
|
|
|
|
|
|
GtkButton *get_btt_run_xor_edit();
|
|
|
|
|
|
|
|
void window_bar(GtkWindow *window, char *title);
|
|
|
|
|
|
|
|
|
|
|
|
// https://blog.gtk.org/2020/09/08/on-list-models/ < TODO
|
|
|
|
|
|
|
|
GtkScrolledWindow *get_user_rules_tree ();
|
|
|
|
void set_run_edit_mode(int prescribed_mode);
|
|
|
|
int get_run_edit_mode();
|
|
|
|
GListModel* get_user_tree_model (GObject *item, gpointer root);
|
|
|
|
void on_setup_user_tree_factory (GtkSignalListItemFactory *factory,
|
|
|
|
GObject* object, gpointer user_data);
|
2024-06-30 18:29:54 +02:00
|
|
|
char *get_space_run_edit_specif();
|
|
|
|
void icons_for_fun (GtkHeaderBar *header_bar);
|