étude ergonomie édition règle (start)
|
@ -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);
|
||||||
|
|
34
display.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
26
hot.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 148 KiB |
After Width: | Height: | Size: 153 KiB |
Before Width: | Height: | Size: 11 MiB After Width: | Height: | Size: 11 MiB |
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 128 KiB |
Before Width: | Height: | Size: 167 KiB After Width: | Height: | Size: 167 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 168 KiB |
After Width: | Height: | Size: 352 KiB |
After Width: | Height: | Size: 352 KiB |
After Width: | Height: | Size: 151 KiB |