étude ergonomie édition règle (start)

This commit is contained in:
Jean Sirmai 2024-05-12 07:39:06 +02:00
parent eaf924974f
commit 43a136489b
Signed by: jean
GPG Key ID: FB3115C340E057E3
20 changed files with 51 additions and 19 deletions

View File

@ -12,8 +12,8 @@
#define W_IMAGE W - 320 #define W_IMAGE W - 320
#define H_IMAGE H - 126 #define H_IMAGE H - 126
#define H_STYLES_PANE 30 #define H_STYLES_PANE 30
#define W_IMAGE_LOCAL W / 3 #define W_IMAGE_LOCAL W / 16
#define H_IMAGE_LOCAL H / 3 #define H_IMAGE_LOCAL H / 16
void activate (GtkApplication *app, gpointer user_data); void activate (GtkApplication *app, gpointer user_data);

BIN
contain.o

Binary file not shown.

View File

@ -13,21 +13,45 @@ GtkWidget *get_image_ALL_SPACE(){
// forget > GTK_WIDGET(get_scrolled_gl_area()); // forget > GTK_WIDGET(get_scrolled_gl_area());
// Use GtkImage if you want to display a fixed-size icon // Use GtkImage if you want to display a fixed-size icon
// and GtkPicture if you want to display a (maybe) scaled picture. // and GtkPicture if you want to display a (maybe) scaled picture.
image = gtk_image_new_from_file("/home/jean/01/Gtk4/Getting_Started_with_GTK/image aXoris.png"); image = gtk_image_new_from_file("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/aXoris.png");
image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image gg sketch.png"); image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/gg sketch.png");
image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image E coli (Goodsell).png"); image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/E coli (Goodsell).png");
gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE, H_IMAGE); gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE, H_IMAGE);
return image; return image;
} }
GtkWidget *get_image_GLUTAMATE(){ GtkWidget *get_image_GLUTAMATE(){
GtkWidget *image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image glutamate.png"); GtkWidget *image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/glutamate.png");
gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE_LOCAL, H_IMAGE_LOCAL); gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
return image; return image;
} }
GtkWidget *get_image_GLUTAMINE(){ GtkWidget *get_image_GLUTAMINE(){
GtkWidget *image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image glutamine.png"); GtkWidget *image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/glutamine.png");
gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
return image;
}
GtkWidget *get_image_HISTIDINE(){
GtkWidget *image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/histidine.png");
gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
return image;
}
GtkWidget *get_image_HISTAMINE(){
GtkWidget *image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/histamine.png");
gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
return image;
}
GtkWidget *get_image_PHENYLALANINE(){
GtkWidget *image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/phénylalanine.png");
gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
return image;
}
GtkWidget *get_image_DOPAMINE(){
GtkWidget *image = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image/dopamine.png");
gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE_LOCAL, H_IMAGE_LOCAL); gtk_widget_set_size_request (GTK_WIDGET (image), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
return image; return image;
} }

View File

@ -12,6 +12,12 @@ GtkFrame *get_frame_with_label();
GtkWidget *get_image_ALL_SPACE(); GtkWidget *get_image_ALL_SPACE();
GtkWidget *get_image_GLUTAMATE(); GtkWidget *get_image_GLUTAMATE();
GtkWidget *get_image_GLUTAMINE();
GtkWidget *get_image_HISTIDINE();
GtkWidget *get_image_HISTAMINE();
GtkWidget *get_image_PHENYLALANINE();
GtkWidget *get_image_DOPAMINE();
GtkProgressBar *get_ELAPSED_TIME_ProgressBar(); GtkProgressBar *get_ELAPSED_TIME_ProgressBar();
GtkBox *get_RUN_STOP_box(); GtkBox *get_RUN_STOP_box();
GtkBox *get_ZOOM_box(); GtkBox *get_ZOOM_box();

BIN
display.o

Binary file not shown.

26
hot.c
View File

@ -18,25 +18,27 @@
GtkWidget *get_selected_rules_vpaned_new(){ GtkWidget *get_selected_rules_vpaned_new(){
GtkPaned *V_selected_1_vs_2 = GTK_PANED (gtk_paned_new (GTK_ORIENTATION_VERTICAL)); GtkPaned *V_selected_1_vs_2 = GTK_PANED (gtk_paned_new (GTK_ORIENTATION_VERTICAL));
GtkWidget *règle_sélectionnée_n_1 = gtk_frame_new ("(1)"); // GtkWidget *règle_sélectionnée_n_1 = gtk_frame_new ("(1)");
GtkWidget *règle_sélectionnée_n_2 = gtk_frame_new ("(2)"); // GtkWidget *règle_sélectionnée_n_2 = gtk_frame_new ("(2)");
GtkBox *up_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); GtkBox *up_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2));
gtk_box_append (up_box, GTK_WIDGET (get_image_GLUTAMATE())); gtk_box_append (up_box, GTK_WIDGET (get_image_GLUTAMATE()));
GtkBox *down_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); gtk_box_append (up_box, GTK_WIDGET(gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
gtk_box_append (down_box, GTK_WIDGET (get_image_GLUTAMINE())); gtk_box_append (up_box, GTK_WIDGET (get_image_GLUTAMINE()));
GtkBox *bottom_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2));
gtk_box_append (bottom_box, GTK_WIDGET (get_image_PHENYLALANINE()));
gtk_box_append (bottom_box, GTK_WIDGET(gtk_separator_new (GTK_ORIENTATION_VERTICAL)));
gtk_box_append (bottom_box, GTK_WIDGET (get_image_DOPAMINE()));
gtk_paned_set_start_child (V_selected_1_vs_2, GTK_WIDGET (up_box)); gtk_paned_set_start_child (V_selected_1_vs_2, GTK_WIDGET (up_box));
gtk_paned_set_end_child (V_selected_1_vs_2, GTK_WIDGET (down_box)); gtk_paned_set_end_child (V_selected_1_vs_2, GTK_WIDGET (bottom_box));
// gtk_paned_set_wide_handle (V_selected_1_vs_2, TRUE);
/* GtkWidget *picture_before = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image glutamine"); // gtk_paned_set_start_child (V_selected_1_vs_2, GTK_WIDGET (règle_sélectionnée_n_1));
GtkWidget *picture_after = gtk_picture_new_for_filename ("/home/jean/01/Gtk4/Getting_Started_with_GTK/image glutamate"); // gtk_paned_set_end_child (V_selected_1_vs_2, GTK_WIDGET (règle_sélectionnée_n_2));
gtk_widget_set_size_request (GTK_WIDGET (picture_before), W_IMAGE_LOCAL, H_IMAGE_LOCAL);
gtk_widget_set_size_request (GTK_WIDGET (picture_after), W_IMAGE_LOCAL, H_IMAGE_LOCAL);*/
// gtk_window_set_child (GTK_WINDOW (règle_sélectionnée_n_1), GTK_WIDGET(up_box)); // gtk_box_append ( GTK_BOX(règle_sélectionnée_n_1), GTK_WIDGET (up_box));//, GTK_WIDGET (get_image_GLUTAMATE()));
// gtk_window_set_child (GTK_WINDOW (up_box), GTK_WIDGET(picture_before)); // gtk_box_append ( GTK_BOX(règle_sélectionnée_n_2), GTK_WIDGET (bottom_box));//, GTK_WIDGET (get_image_GLUTAMATE()));
return GTK_WIDGET (V_selected_1_vs_2); return GTK_WIDGET (V_selected_1_vs_2);
} }

BIN
hot.o

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

BIN
image/catécholamines.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

BIN
image/dopamine.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

View File

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 11 MiB

View File

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 167 KiB

BIN
image/histamine.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
image/histidine.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

BIN
image/hémoglobine 1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

BIN
image/hémoglobine 2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

BIN
image/phénylalanine.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

BIN
myprogram

Binary file not shown.