src/*.c: moved headers to include/

This commit is contained in:
Jean Sirmai 2024-06-29 17:15:01 +02:00
parent 175418ab35
commit f8cbc1a8a2
Signed by: jean
GPG Key ID: FB3115C340E057E3
14 changed files with 40 additions and 66 deletions

26
main.c
View File

@ -1,26 +0,0 @@
/******************************************************************************/
/* */
/* E coli by David S. Goodsell (2009) */
/* --- */
/* Let this freeze frame guide us towards the model */
/* that alone can account for the phenomenon ! */
/* */
/******************************************************************************/
#include "callback.h"
int main (int argc, char **argv)
{
GtkApplication *app;
int status;
app = gtk_application_new ("org.jean.GTK4_GG_hack", G_APPLICATION_DEFAULT_FLAGS);
g_signal_connect (app, "activate", G_CALLBACK (on_main_window_activation), NULL);
g_signal_connect (app, "activate", G_CALLBACK (on_dialog_window_activation), NULL);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
printf("in contain.get_SPACE_VIEW_box() (line 138) > ui_setup_glarea (0, GTK_WIDGET (middle_box)); < commented 2024/06/27 > TODO\n");
return status;
}

View File

@ -1,7 +1,7 @@
#include <gtk-4.0/gtk/gtk.h> #include <gtk-4.0/gtk/gtk.h>
#include <assert.h> #include <assert.h>
#include "../include/callback.h" #include "../include/callback.h"
#include "automaton.h" #include "../include/automaton.h"
/******************************************************************************/ /******************************************************************************/

View File

@ -1,15 +1,15 @@
#include <stdio.h> #include <stdio.h>
#include <gtk-4.0/gtk/gtk.h> #include <gtk-4.0/gtk/gtk.h>
#include "callback.h" #include "../include/callback.h"
#include "contain.h" #include "../include/contain.h"
#include "tree.h" #include "../include/tree.h"
#include "contain.h" #include "../include/contain.h"
#include "dialog.h" #include "../include/dialog.h"
#include "texts.h" #include "../include/texts.h"
#include "automaton.h" #include "../include/automaton.h"
#include "parsing.h" #include "../include/parsing.h"
#include "graph_area.h" #include "../include/graph_area.h"
/******************************************************************************/ /******************************************************************************/
/* W I N D O W S A C T I V A T I O N */ /* W I N D O W S A C T I V A T I O N */

View File

@ -1,12 +1,12 @@
#include <stdio.h> #include <stdio.h>
#include <gtk-4.0/gtk/gtk.h> #include <gtk-4.0/gtk/gtk.h>
#include "graph_area.h" #include "../include/graph_area.h"
#include "callback.h" #include "../include/callback.h"
#include "automaton.h" #include "../include/automaton.h"
#include "display.h" #include "../include/display.h"
#include "tree.h" #include "../include/tree.h"
#include "texts.h" #include "../include/texts.h"
// https://blog.gtk.org/2020/09/08/on-list-models/ < TODO // https://blog.gtk.org/2020/09/08/on-list-models/ < TODO
// https://docs.gtk.org/gtk4/visual_index.html < widgets gallery // https://docs.gtk.org/gtk4/visual_index.html < widgets gallery

View File

@ -1,4 +1,4 @@
#include "callback.h" #include "../include/callback.h"
void dialog_window_design (GtkWindow *main_window, GtkWindow *dialog_window){ void dialog_window_design (GtkWindow *main_window, GtkWindow *dialog_window){
char *title = " Save the current model before modifying it? "; char *title = " Save the current model before modifying it? ";

View File

@ -1,9 +1,9 @@
#include <stdio.h> #include <stdio.h>
#include <gtk-4.0/gtk/gtk.h> #include <gtk-4.0/gtk/gtk.h>
#include "contain.h" #include "../include/contain.h"
#include "tree.h" #include "../include/tree.h"
#include "texts.h" #include "../include/texts.h"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------

View File

@ -33,9 +33,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include <cglm/cglm.h> #include <cglm/cglm.h>
#include "base.h" #include "../include/base.h"
//#include "ui.h" //#include "../include/ui.h"
#include "graph_area.h" #include "../include/graph_area.h"
void graphics_draw_vertex (const int stack_id, void graphics_draw_vertex (const int stack_id,
GLfloat x, GLfloat x,

View File

@ -25,9 +25,9 @@
#include <gtk-4.0/gtk/gtk.h> #include <gtk-4.0/gtk/gtk.h>
#include <glib-2.0/glib.h> #include <glib-2.0/glib.h>
#include "contain.h" #include "../include/contain.h"
#include "graph_area.h" #include "../include/graph_area.h"
#include "callback.h" #include "../include/callback.h"
struct stack_index_t { struct stack_index_t {
long stack_id; long stack_id;

View File

@ -26,9 +26,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include "contain.h" #include "../include/contain.h"
#include "graph_area.h" #include "../include/graph_area.h"
#include "parsing.h" #include "../include/parsing.h"
#define TEST 0 #define TEST 0

View File

@ -24,9 +24,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include "base.h" #include "../include/base.h"
//#include "ui.h" //#include "../include/ui.h"
#include "graphics.h" #include "../include/graphics.h"
int draw_space_ridges_vertex (const int stack_id, int draw_space_ridges_vertex (const int stack_id,
long offset_vertex, long offset_vertex,

View File

@ -26,9 +26,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include "base.h" #include "../include/base.h"
#include "contain.h" // instead of "ui.h" #include "../include/contain.h" // instead of "ui.h"
#include "graph_area.h" #include "../include/graph_area.h"
/* Initializes the buffer of a gl_area /* Initializes the buffer of a gl_area
* Calls according to the user preferences * Calls according to the user preferences

View File

@ -7,7 +7,7 @@
/* */ /* */
/******************************************************************************/ /******************************************************************************/
#include "callback.h" #include "../include/callback.h"
int main (int argc, char **argv) int main (int argc, char **argv)
{ {

View File

@ -33,7 +33,7 @@
#include <libxml/xmlreader.h> // http://xmlsoft.org/examples/#parse1.c #include <libxml/xmlreader.h> // http://xmlsoft.org/examples/#parse1.c
// https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/general.html // https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/general.html
#include "base.h" #include "../include/base.h"
#define READ_SITE 1 << 0 #define READ_SITE 1 << 0
#define READ_WEIGHT 1 << 1 #define READ_WEIGHT 1 << 1

View File

@ -3,9 +3,9 @@
#include <assert.h> #include <assert.h>
#include "contain.h" #include "../include/contain.h"
#include "texts.h" #include "../include/texts.h"
#include "callback.h" #include "../include/callback.h"
// https://docs.gtk.org/gtk4/visual_index.html < widgets gallery // https://docs.gtk.org/gtk4/visual_index.html < widgets gallery
// https://docs.gtk.org/gtk4/section-text-widget.html // https://docs.gtk.org/gtk4/section-text-widget.html