WIP: introducing some data charts images... Rules, first

This commit is contained in:
Jean Sirmai 2024-08-03 15:50:23 +02:00
parent 6c04038f85
commit 6132ea34f2
Signed by: jean
GPG Key ID: FB3115C340E057E3
8 changed files with 8 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -31,6 +31,9 @@
#include "../../../include/signal.h"
#include "../../../include/widget.h"
// "graph", "chart" and "diagram" are ambiguous terms, sometimes used interchangeably.
// https://www.mathsisfun.com/data/data-graph.php
#define PARTITION_A 700
#define PARTITION_B 700

View File

@ -184,7 +184,7 @@ void *widget_get_an_impression_of_what_a_rules_comparator_could_be(){
GtkBox *comparator = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2));
gtk_box_append (comparator, GTK_WIDGET (compare_left));
gtk_box_append (comparator, GTK_WIDGET (compare_right));
// gtk_box_append (comparator, GTK_WIDGET (compare_right));
return comparator;
}

View File

@ -51,8 +51,11 @@ void *widget_get_rules_tree_tools ()
{
GtkBox *rules_tree_box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0));
gtk_box_append (rules_tree_box, GTK_WIDGET (widget_get_user_rules_tree()));
gtk_box_append (rules_tree_box, GTK_WIDGET (gtk_picture_new_for_filename
("/home/jean/Gem-Graph/gem-graph-client/data/image/many bars vertical.png")));
gtk_box_append (rules_tree_box, GTK_WIDGET (widget_get_rules_use ()));
gtk_box_append (rules_tree_box, GTK_WIDGET (widget_get_an_impression_of_what_a_rules_comparator_could_be()));
gtk_widget_set_size_request (GTK_WIDGET (rules_tree_box), W_IMAGE_LOCAL * 7.4, 0);//H_IMAGE_LOCAL);
return GTK_WIDGET (rules_tree_box);
}

View File

@ -43,7 +43,7 @@ void *widget_get_rules_use ()
// GtkWidget *frame_rules_use = gtk_frame_new (" Rules use");
// gtk_frame_set_child (GTK_FRAME (frame_rules_use), GTK_WIDGET (scroll_rules_use));
gtk_widget_set_size_request (GTK_WIDGET (scroll_rules_use), W_IMAGE_LOCAL * 2, 0);//H_IMAGE_LOCAL);
gtk_widget_set_size_request (GTK_WIDGET (scroll_rules_use), W_IMAGE_LOCAL * 1.5, 0);//H_IMAGE_LOCAL);
gtk_scrolled_window_set_child (GTK_SCROLLED_WINDOW (scroll_rules_use), GTK_WIDGET (rules_use_box));