From af5f4cfc1123eb809c1281c04c4e0ea4669fb0f1 Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Tue, 30 Apr 2024 07:17:00 +0200 Subject: [PATCH] space page : a first approach --- Makefile | 2 -- exec.o | Bin 24992 -> 29688 bytes hot.c | 18 ++++++++++++++++-- warm.c | 4 ++-- warm.h | 8 ++++---- 5 files changed, 22 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 1dda004..c84ec71 100644 --- a/Makefile +++ b/Makefile @@ -21,11 +21,9 @@ exec.o: hot.c warm.c cold.c main.c Makefile clean: rm -f exec.o -# Builder will call this to install the application before running. install: echo "Installing is not supported" -# Builder uses this target to run your application. run: exec.o ./exec.o diff --git a/exec.o b/exec.o index 9723bd64531b5c54bf881f39402868c857620e27..cadfb24d10db303068c92b606e33da317c43cb47 100755 GIT binary patch delta 13311 zcmaKT2{@Hc^#8rKYv1?v+9}zyMcH=|5z0=M>{Rx9MY1J%qfNGCNwyLqOA&=+NtOte zHIzu!{N}yx?dRM7`Tx%I%$zx&bLPyvGiS!U?;SZU$n_ayDmx=qKpg?oUXDP7cwIkG zfbnO*fd~Re(C^7ez)0aD8qNTr)p3l#pHb|I1irr>39ORd(<7wS_X>DUf>R<8crJ_B zUy%&1r-rvT*{djx=d;9n_zx%=$eJx|wtOJLjdFv;4if(15iFq02@(fLD3I`-1|ctGNU7)ZDsh#^nf{{cBu#38z)Xl{s*@BrbQy<>jyz@+W0SrUMHp z=m!})G8BiQQS6kq;A!ANaO8(HQBoM!K&OkIzU~fAfo@I?zHS#0?!o6A{sRWN1v|L- z`3AfB20L8zbPe|SzfC;cJl#ElaW?LOo~{l~!NE>0dv%=sLjE@4d_FkX&({G8K`~Ln zxRbxXo3HDW3{)^F5dsNO&>VrJX-II>4No)@;R0fk5HeNQGr)WhA$$mNYN`&NXm66> z$tKYHJ{%4q0<9aB zTtwk<{e3vxDFR{4_9+PA4J)np;rqkgaUTvZ90Gal!{IO|kpDg$UKRuj*~2lo6}f*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*+9_+#{uu8cjLhsun$(_j~sP zDCV1Vf>A))65b7OFnninf#i{c{im` zOS}-tx(QHJTQgKA(4Zp%fg!V(HOO1X}uq|&sU$l`M$O|(J-I#+Dcab`svR$~I5)ef7 zrkFt(eR1%FwID_LvGM2x+Fa<-XU)y%nYtJ?N2=uL}3Onnv z{yl=9>>sB1ZYS*oM1+xr|47p0IG}e>=vS`3lNI3h(yDQ8EVnMVko0#7tD8xK{9gYz z`@stTN3}+;7l$|nawDg>(ClT^_ zq)5sy5s%sDz4Ep6KGW0&lTRf@U%865vRi}yKW{H5EbSlQGAJI-S=1N~x%yrCCC%Hl zx<{#>ScNEa>RJDc$N15Q-5|^S#o>CgBL6XJoF&e0miXa%2g}0vZeLMrJX#G6Iz!mf6(! zBJT?+3Z<|%bII;LSxNc8d5xQqY5#;~b&)o?XqhTRtH{6L9~kBnAEg zK`bzMRS}85E>Mm8O*)SdVD*$h;%^n0;;sgOw+L)KCE>XH0_3=x3QE9zPf1D?P77We z81hu0bij$=Wdfv^0s?=>AO+`h9*lZrlLL+#bbzN12i~A0euO?URQhmG;5<;`z>tq39CrbCMe+y+$NG!; za^NpnU@z~0wyC4QzU&D6Z^%%$&<$%JGm_Y<&1t=g&t&YS1{DT*eCT98{P$UPf diff --git a/hot.c b/hot.c index e711e60..ceef7bc 100644 --- a/hot.c +++ b/hot.c @@ -5,8 +5,22 @@ #include "cold.h" GtkWidget *get_space_page_new(){ - GtkWidget * space_grid = gtk_grid_new(); - gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("Hi babe...here am I !"), 0, 0, 1, 1); + GtkWidget *space_grid = gtk_grid_new(); + + GtkDrawingArea *surface = GTK_DRAWING_AREA(gtk_drawing_area_new ()); + gtk_drawing_area_set_content_width (surface, 640); + gtk_drawing_area_set_content_height (surface, 600); + gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(surface), 0, 0, 1, 1); + + GtkBox *XYZ_box = GTK_BOX(gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2)); // spacing = 2 + gtk_box_append (XYZ_box, gtk_button_new_with_label ("X")); + gtk_box_append (XYZ_box, gtk_button_new_with_label ("Y")); + gtk_box_append (XYZ_box, gtk_button_new_with_label ("Z")); + gtk_grid_attach (GTK_GRID(space_grid), GTK_WIDGET(XYZ_box), 1, 0, 1, 1); + + gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("RUN / STOP (and all that stuff...)"), 0, 1, 2, 1); + gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("Objects / Situations (transparences)"), 0, 2, 2, 1); + gtk_grid_attach (GTK_GRID(space_grid), gtk_button_new_with_label ("camera (zoom...)"), 0, 3, 2, 1); return space_grid; } diff --git a/warm.c b/warm.c index 4a3c59b..ded98e5 100644 --- a/warm.c +++ b/warm.c @@ -8,8 +8,8 @@ GtkWidget *get_measures_page_new(){ gtk_grid_attach (GTK_GRID (measures_grid), gtk_button_new_with_label ("movements"), 0, 0, 1, 1); gtk_grid_attach (GTK_GRID (measures_grid), gtk_button_new_with_label ("transports"), 1, 0, 1, 1); gtk_grid_attach (GTK_GRID (measures_grid), gtk_button_new_with_label ("transformations"), 2, 0, 1, 1); - gtk_grid_attach (GTK_GRID (measures_grid), gtk_button_new_with_label ("objects counts"), 0, 1, 1, 1); - gtk_grid_attach (GTK_GRID (measures_grid), gtk_button_new_with_label ("situations counts"), 1, 1, 1, 1); + gtk_grid_attach (GTK_GRID (measures_grid), gtk_button_new_with_label ("objects"), 0, 1, 1, 1); + gtk_grid_attach (GTK_GRID (measures_grid), gtk_button_new_with_label ("situations"), 1, 1, 1, 1); return measures_grid; } diff --git a/warm.h b/warm.h index 44b0e9a..497dd4b 100644 --- a/warm.h +++ b/warm.h @@ -20,16 +20,16 @@ * https://stackoverflow.com/questions/20122232/gtklistc-code-how-to-get-the-selection-of-a-gtklist * GtkWidget *switcher = gtk_stack_switcher_new(); -// GtkWidget *sidebar = gtk_stack_sidebar_new(); + GtkWidget *sidebar = gtk_stack_sidebar_new(); gtk_grid_attach (GTK_GRID (grid), switcher, 0, 1, 3, 1); gtk_orientable_set_orientation (GTK_ORIENTABLE (switcher), GTK_ORIENTATION_VERTICAL); gtk_orientable_set_orientation (GTK_ORIENTABLE (switcher), GTK_ORIENTATION_HORIZONTAL); GtkStack *stack = GTK_STACK (gtk_stack_new()); gtk_stack_switcher_set_stack (GTK_STACK_SWITCHER (switcher), stack); -// gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), stack); + gtk_stack_sidebar_set_stack (GTK_STACK_SIDEBAR (sidebar), stack); -// GtkWidget *page_0 = gtk_paned_new(GTK_ORIENTATION_VERTICAL); -// GtkWidget *page_1 = gtk_paned_new(GTK_ORIENTATION_VERTICAL); + GtkWidget *page_0 = gtk_paned_new(GTK_ORIENTATION_VERTICAL); + GtkWidget *page_1 = gtk_paned_new(GTK_ORIENTATION_VERTICAL); GtkWidget *box_0 = gtk_box_new (0, 0); GtkWidget *box_1 = gtk_box_new (0, 0); GtkWidget *box_2 = gtk_box_new (0, 0);