From eb781b9bd6199e2ac875c9d8c74dd76036d3d9bc Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sun, 29 Mar 2009 00:12:33 +0000 Subject: [PATCH] Renamed sources files to english words, updated makefile, recomputed dependencies. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@703 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- Makefile | 2 +- Makefile.dep | 110 ++++++++++--------- brush.c | 4 +- boutons.c => buttons.c | 14 +-- boutons.h => buttons.h | 0 doc/Le moteur des operations.html | 170 +++++++++++++++--------------- moteur.c => engine.c | 8 +- moteur.h => engine.h | 0 erreurs.h => errors.h | 0 files.c => filesel.c | 8 +- files.h => filesel.h | 0 graph.c | 8 +- aide.c => help.c | 14 +-- aide.h => help.h | 0 tables_aide.h => helpfile.h | 0 init.c | 10 +- input.c | 6 +- clavier.c => keyboard.c | 0 clavier.h => keyboard.h | 0 loadsave.c | 6 +- main.c | 10 +- divers.c => misc.c | 10 +- divers.h => misc.h | 0 op_c.c | 2 +- operatio.c | 8 +- pages.c | 4 +- palette.c | 10 +- pxdouble.c | 2 +- pxsimple.c | 2 +- pxtall.c | 2 +- pxwide.c | 2 +- readini.c | 2 +- readline.c | 4 +- saveini.c | 4 +- sdlscreen.c | 4 +- shade.c | 6 +- special.c | 2 +- texte.c => text.c | 0 texte.h => text.h | 0 windows.c | 6 +- 40 files changed, 219 insertions(+), 221 deletions(-) rename boutons.c => buttons.c (99%) rename boutons.h => buttons.h (100%) rename moteur.c => engine.c (99%) rename moteur.h => engine.h (100%) rename erreurs.h => errors.h (100%) rename files.c => filesel.c (99%) rename files.h => filesel.h (100%) rename aide.c => help.c (99%) rename aide.h => help.h (100%) rename tables_aide.h => helpfile.h (100%) rename clavier.c => keyboard.c (100%) rename clavier.h => keyboard.h (100%) rename divers.c => misc.c (99%) rename divers.h => misc.h (100%) rename texte.c => text.c (100%) rename texte.h => text.h (100%) diff --git a/Makefile b/Makefile index 8c4ef394..1743fb1c 100644 --- a/Makefile +++ b/Makefile @@ -235,7 +235,7 @@ endif .PHONY : all debug release clean depend zip version force install uninstall # This is the list of the objects we want to build. Dependancies are built by "make depend" automatically. -OBJ = $(OBJDIR)/main.o $(OBJDIR)/init.o $(OBJDIR)/graph.o $(OBJDIR)/sdlscreen.o $(OBJDIR)/divers.o $(OBJDIR)/special.o $(OBJDIR)/boutons.o $(OBJDIR)/palette.o $(OBJDIR)/aide.o $(OBJDIR)/operatio.o $(OBJDIR)/pages.o $(OBJDIR)/loadsave.o $(OBJDIR)/readline.o $(OBJDIR)/moteur.o $(OBJDIR)/files.o $(OBJDIR)/op_c.o $(OBJDIR)/readini.o $(OBJDIR)/saveini.o $(OBJDIR)/shade.o $(OBJDIR)/clavier.o $(OBJDIR)/io.o $(OBJDIR)/version.o $(OBJDIR)/texte.o $(OBJDIR)/SFont.o $(OBJDIR)/setup.o $(OBJDIR)/pxsimple.o $(OBJDIR)/pxtall.o $(OBJDIR)/pxwide.o $(OBJDIR)/pxdouble.o $(OBJDIR)/windows.o $(OBJDIR)/brush.o $(OBJDIR)/realpath.o $(OBJDIR)/mountlist.o $(OBJDIR)/input.o $(OBJDIR)/hotkeys.o +OBJ = $(OBJDIR)/main.o $(OBJDIR)/init.o $(OBJDIR)/graph.o $(OBJDIR)/sdlscreen.o $(OBJDIR)/misc.o $(OBJDIR)/special.o $(OBJDIR)/buttons.o $(OBJDIR)/palette.o $(OBJDIR)/help.o $(OBJDIR)/operatio.o $(OBJDIR)/pages.o $(OBJDIR)/loadsave.o $(OBJDIR)/readline.o $(OBJDIR)/engine.o $(OBJDIR)/filesel.o $(OBJDIR)/op_c.o $(OBJDIR)/readini.o $(OBJDIR)/saveini.o $(OBJDIR)/shade.o $(OBJDIR)/keyboard.o $(OBJDIR)/io.o $(OBJDIR)/version.o $(OBJDIR)/text.o $(OBJDIR)/SFont.o $(OBJDIR)/setup.o $(OBJDIR)/pxsimple.o $(OBJDIR)/pxtall.o $(OBJDIR)/pxwide.o $(OBJDIR)/pxdouble.o $(OBJDIR)/windows.o $(OBJDIR)/brush.o $(OBJDIR)/realpath.o $(OBJDIR)/mountlist.o $(OBJDIR)/input.o $(OBJDIR)/hotkeys.o all : $(BIN) diff --git a/Makefile.dep b/Makefile.dep index 7b4dcdb5..c787662e 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -1,66 +1,64 @@ -$(OBJDIR)/aide.o: aide.c const.h struct.h global.h divers.h moteur.h tables_aide.h \ - aide.h sdlscreen.h texte.h clavier.h windows.h input.h hotkeys.h \ - erreurs.h -$(OBJDIR)/boutons.o: boutons.c const.h struct.h global.h divers.h graph.h moteur.h \ - readline.h files.h loadsave.h init.h boutons.h operatio.h pages.h \ - erreurs.h readini.h saveini.h shade.h io.h aide.h texte.h sdlscreen.h \ - windows.h brush.h input.h -$(OBJDIR)/brush.o: brush.c global.h struct.h const.h graph.h divers.h erreurs.h \ +$(OBJDIR)/SFont.o: SFont.c SFont.h +$(OBJDIR)/brush.o: brush.c global.h struct.h const.h graph.h misc.h errors.h \ windows.h sdlscreen.h -$(OBJDIR)/clavier.o: clavier.c global.h struct.h const.h -$(OBJDIR)/divers.o: divers.c struct.h const.h sdlscreen.h global.h erreurs.h \ - boutons.h moteur.h divers.h clavier.h windows.h palette.h input.h -$(OBJDIR)/files.o: files.c const.h struct.h global.h divers.h erreurs.h io.h \ - windows.h loadsave.h mountlist.h moteur.h -$(OBJDIR)/graph.o: graph.c global.h struct.h const.h moteur.h boutons.h pages.h \ - erreurs.h sdlscreen.h graph.h divers.h pxsimple.h pxtall.h pxwide.h \ +$(OBJDIR)/buttons.o: buttons.c const.h struct.h global.h misc.h graph.h engine.h \ + readline.h filesel.h loadsave.h init.h buttons.h operatio.h pages.h \ + errors.h readini.h saveini.h shade.h io.h help.h text.h sdlscreen.h \ + windows.h brush.h input.h +$(OBJDIR)/engine.o: engine.c const.h struct.h global.h graph.h misc.h special.h \ + buttons.h operatio.h shade.h errors.h sdlscreen.h windows.h brush.h \ + input.h engine.h +$(OBJDIR)/filesel.o: filesel.c const.h struct.h global.h misc.h errors.h io.h \ + windows.h sdlscreen.h loadsave.h mountlist.h engine.h readline.h \ + input.h help.h +$(OBJDIR)/graph.o: graph.c global.h struct.h const.h engine.h buttons.h pages.h \ + errors.h sdlscreen.h graph.h misc.h pxsimple.h pxtall.h pxwide.h \ pxdouble.h windows.h +$(OBJDIR)/help.o: help.c const.h struct.h global.h misc.h engine.h helpfile.h \ + help.h sdlscreen.h text.h keyboard.h windows.h input.h hotkeys.h \ + errors.h $(OBJDIR)/hotkeys.o: hotkeys.c struct.h const.h global.h hotkeys.h -$(OBJDIR)/init.o: init.c const.h struct.h global.h graph.h boutons.h palette.h \ - aide.h operatio.h divers.h erreurs.h clavier.h io.h hotkeys.h files.h \ - setup.h windows.h sdlscreen.h mountlist.h loadsave.h -$(OBJDIR)/input.o: input.c global.h struct.h const.h clavier.h sdlscreen.h \ - windows.h erreurs.h divers.h input.h +$(OBJDIR)/init.o: init.c const.h struct.h global.h graph.h buttons.h palette.h \ + help.h operatio.h misc.h errors.h keyboard.h io.h hotkeys.h setup.h \ + windows.h sdlscreen.h mountlist.h loadsave.h +$(OBJDIR)/input.o: input.c global.h struct.h const.h keyboard.h sdlscreen.h \ + windows.h errors.h misc.h input.h $(OBJDIR)/io.o: io.c struct.h const.h io.h -$(OBJDIR)/loadsave.o: loadsave.c const.h struct.h global.h divers.h pages.h op_c.h \ - boutons.h erreurs.h io.h sdlscreen.h windows.h loadsave.h -$(OBJDIR)/main.o: main.c const.h struct.h global.h graph.h divers.h init.h \ - boutons.h moteur.h pages.h files.h loadsave.h sdlscreen.h erreurs.h \ - readini.h saveini.h io.h texte.h setup.h windows.h brush.h palette.h -$(OBJDIR)/moteur.o: moteur.c const.h struct.h global.h graph.h divers.h special.h \ - boutons.h operatio.h shade.h erreurs.h sdlscreen.h windows.h brush.h \ - input.h moteur.h -$(OBJDIR)/mountlist.o: mountlist.c mountlist.h -$(OBJDIR)/op_c.o: op_c.c op_c.h struct.h const.h erreurs.h -$(OBJDIR)/operatio.o: operatio.c const.h struct.h global.h divers.h moteur.h \ - graph.h operatio.h boutons.h pages.h erreurs.h sdlscreen.h brush.h \ +$(OBJDIR)/keyboard.o: keyboard.c global.h struct.h const.h +$(OBJDIR)/loadsave.o: loadsave.c const.h struct.h global.h misc.h pages.h op_c.h \ + buttons.h errors.h io.h sdlscreen.h windows.h loadsave.h +$(OBJDIR)/main.o: main.c const.h struct.h global.h graph.h misc.h init.h buttons.h \ + engine.h pages.h loadsave.h sdlscreen.h errors.h readini.h saveini.h \ + io.h text.h setup.h windows.h brush.h palette.h +$(OBJDIR)/misc.o: misc.c struct.h const.h sdlscreen.h global.h errors.h buttons.h \ + engine.h misc.h keyboard.h windows.h palette.h input.h +$(OBJDIR)/mountlist.o: mountlist.c +$(OBJDIR)/op_c.o: op_c.c op_c.h struct.h const.h errors.h +$(OBJDIR)/operatio.o: operatio.c const.h struct.h global.h misc.h engine.h graph.h \ + operatio.h buttons.h pages.h errors.h sdlscreen.h brush.h windows.h +$(OBJDIR)/pages.o: pages.c global.h struct.h const.h pages.h errors.h misc.h \ windows.h -$(OBJDIR)/pages.o: pages.c global.h struct.h const.h pages.h erreurs.h divers.h \ - windows.h -$(OBJDIR)/palette.o: palette.c const.h struct.h global.h divers.h moteur.h \ - readline.h boutons.h pages.h aide.h sdlscreen.h erreurs.h op_c.h \ - windows.h input.h -$(OBJDIR)/pxdouble.o: pxdouble.c global.h struct.h const.h sdlscreen.h divers.h \ +$(OBJDIR)/palette.o: palette.c const.h struct.h global.h misc.h engine.h readline.h \ + buttons.h pages.h help.h sdlscreen.h errors.h op_c.h windows.h input.h +$(OBJDIR)/pxdouble.o: pxdouble.c global.h struct.h const.h sdlscreen.h misc.h \ pxwide.h -$(OBJDIR)/pxsimple.o: pxsimple.c global.h struct.h const.h sdlscreen.h divers.h -$(OBJDIR)/pxtall.o: pxtall.c global.h struct.h const.h sdlscreen.h divers.h \ +$(OBJDIR)/pxsimple.o: pxsimple.c global.h struct.h const.h sdlscreen.h misc.h +$(OBJDIR)/pxtall.o: pxtall.c global.h struct.h const.h sdlscreen.h misc.h \ pxsimple.h -$(OBJDIR)/pxwide.o: pxwide.c global.h struct.h const.h sdlscreen.h divers.h -$(OBJDIR)/readini.o: readini.c const.h global.h struct.h divers.h -$(OBJDIR)/readline.o: readline.c const.h struct.h global.h divers.h erreurs.h \ +$(OBJDIR)/pxwide.o: pxwide.c global.h struct.h const.h sdlscreen.h misc.h +$(OBJDIR)/readini.o: readini.c const.h global.h struct.h misc.h +$(OBJDIR)/readline.o: readline.c const.h struct.h global.h misc.h errors.h \ sdlscreen.h readline.h windows.h input.h $(OBJDIR)/realpath.o: realpath.c -$(OBJDIR)/saveini.o: saveini.c const.h global.h struct.h readini.h io.h erreurs.h \ - divers.h -$(OBJDIR)/sdlscreen.o: sdlscreen.c global.h struct.h const.h sdlscreen.h erreurs.h \ - divers.h -$(OBJDIR)/setup.o: setup.c struct.h const.h io.h files.h -$(OBJDIR)/SFont.o: SFont.c SFont.h -$(OBJDIR)/shade.o: shade.c global.h struct.h const.h graph.h moteur.h divers.h \ - readline.h aide.h sdlscreen.h windows.h input.h -$(OBJDIR)/special.o: special.c const.h struct.h global.h graph.h moteur.h windows.h -$(OBJDIR)/texte.o: texte.c SFont.h struct.h const.h global.h sdlscreen.h io.h \ - files.h +$(OBJDIR)/saveini.o: saveini.c const.h global.h struct.h readini.h io.h errors.h \ + misc.h +$(OBJDIR)/sdlscreen.o: sdlscreen.c global.h struct.h const.h sdlscreen.h errors.h \ + misc.h +$(OBJDIR)/setup.o: setup.c struct.h const.h io.h +$(OBJDIR)/shade.o: shade.c global.h struct.h const.h graph.h engine.h misc.h \ + readline.h help.h sdlscreen.h windows.h input.h +$(OBJDIR)/special.o: special.c const.h struct.h global.h graph.h engine.h windows.h +$(OBJDIR)/text.o: text.c SFont.h struct.h const.h global.h sdlscreen.h io.h $(OBJDIR)/version.o: version.c -$(OBJDIR)/windows.o: windows.c windows.h struct.h const.h global.h graph.h moteur.h \ - divers.h sdlscreen.h erreurs.h +$(OBJDIR)/windows.o: windows.c windows.h struct.h const.h global.h graph.h engine.h \ + misc.h sdlscreen.h errors.h diff --git a/brush.c b/brush.c index 9efb7a6b..b36c4f92 100644 --- a/brush.c +++ b/brush.c @@ -30,8 +30,8 @@ #include "global.h" #include "graph.h" -#include "divers.h" -#include "erreurs.h" +#include "misc.h" +#include "errors.h" #include "windows.h" #include "sdlscreen.h" diff --git a/boutons.c b/buttons.c similarity index 99% rename from boutons.c rename to buttons.c index 3521e6d7..7a3422d3 100644 --- a/boutons.c +++ b/buttons.c @@ -30,23 +30,23 @@ #include "const.h" #include "struct.h" #include "global.h" -#include "divers.h" +#include "misc.h" #include "graph.h" -#include "moteur.h" +#include "engine.h" #include "readline.h" -#include "files.h" +#include "filesel.h" #include "loadsave.h" #include "init.h" -#include "boutons.h" +#include "buttons.h" #include "operatio.h" #include "pages.h" -#include "erreurs.h" +#include "errors.h" #include "readini.h" #include "saveini.h" #include "shade.h" #include "io.h" -#include "aide.h" -#include "texte.h" +#include "help.h" +#include "text.h" #include "sdlscreen.h" #include "windows.h" #include "brush.h" diff --git a/boutons.h b/buttons.h similarity index 100% rename from boutons.h rename to buttons.h diff --git a/doc/Le moteur des operations.html b/doc/Le moteur des operations.html index 95b43913..42c5bdd4 100644 --- a/doc/Le moteur des operations.html +++ b/doc/Le moteur des operations.html @@ -1,7 +1,7 @@ - - + + @@ -47,7 +47,7 @@ appel insctructions à exécuter. Chacune de ces parties atomiques est écrite sous la forme d'une fonction contenant tout le code qui lui est nécessaire. Ces fonctions sont ce que l'on a appelé des -"fonction_action" (définition dans STRUCT.H), c'est à +"Func_action" (définition dans STRUCT.H), c'est à dire une simple fonction qui ne reçoit pas de paramètres et qui n'en renvoie pas. Un simple void Ma_fonction(void)...

@@ -130,9 +130,9 @@ s'achever! ;-)

  • Elle contient des mots 16-bits (type word, définit dans STRUCT.H)
  • Pour y poser une valeur : - Operation_PUSH(val)
  • + Operation_push(val)
  • Pour en retirer une valeur : - Operation_POP(&var)
  • + Operation_pop(&var)
  • Exemples de valeurs à y mettre : coordonnées de souris, de pinceau... des couleurs... des valeurs bidons pour changer @@ -143,7 +143,7 @@ s'achever! ;-)

  • A l'intérieur d'une fonction atomique :
  • Pour démarrer une opération (après avoir cliqué sur un bouton de la barre d'outils par exemple), appeler - Demarrer_pile_operation(ID_OP). Note: il faut que le + Start_operation_stack(ID_OP). Note: il faut que le curseur soit caché avant l'appel (et son état n'est pas changé après). (voir exemples dans BOUTONS.C)
  • On peut connaître l'ID_OP de l'opération en cours - grâce à la variable globale Operation_en_cours
    + grâce à la variable globale Current_operation
  • -
  • La variable globale Operation_Taille_pile correspond à +
  • La variable globale Operation_stack_size correspond à la taille de la pile d'opérations. Elle peut être consultée et éventuellement modifiée (même s'il est - préférable d'utiliser Operation_PUSH et Operation_POP + préférable d'utiliser Operation_push et Operation_pop dans ce dernier cas).
  • @@ -205,7 +205,7 @@ s'achever! ;-)

    Dans GLOBAL.H : @@ -225,15 +225,15 @@ s'achever! ;-)

    // Click Souris: 1
    // Taille_Pile : 0
    // Souris effacée: Oui (précisé grâce à - Initialiser_operation() dans INIT.C)
    + Init_operation() dans INIT.C)
    {
    -      Initialiser_debut_operation();
    +      Init_start_operation();
         Backup();

         // ACTIONS...

    -      Operation_PUSH(une_valeur_nécessaire_pour_les_prochaines_étapes);
    -      Operation_PUSH(une_autre_valeur_nécessaire_plus_tard);
    +      Operation_push(une_valeur_nécessaire_pour_les_prochaines_étapes);
    +      Operation_push(une_autre_valeur_nécessaire_plus_tard);
    }

    @@ -256,14 +256,14 @@ s'achever! ;-)

    qu'elle est terminée (cas de la loupe, de la pipette, des prises de brosse, ...), rajouter l'ID_OP dans la section correspondante de la - fonction Demarrer_pile_operation(), en début de + fonction Start_operation_stack(), en début de fichier.
  • Si l'opération voit un intérêt à accepter que l'utilisateur change de couleur de pinceau en cours d'opération (cas du dessin continu, discontinu, le spray, et les lignes centrées), rajouter l'ID_OP dans la section correspondante - de la fonction Demarrer_pile_operation(), en + de la fonction Start_operation_stack(), en début de fichier.
  • @@ -276,9 +276,9 @@ s'achever! ;-)

    Dans INIT.C :