gfxcfg.c File Reference

#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_events.h>
#include "SFont.h"
#include "struct.h"
#include "clavier.h"
#include "const.h"
#include "io.h"
#include "hotkeys.h"
#include "setup.h"

Defines

#define MOD_SHIFT   0x1000
#define MOD_CTRL   0x2000
#define MOD_ALT   0x4000
#define TOUCHE_MOUSEMIDDLE   (SDLK_LAST+1)
#define TOUCHE_MOUSEWHEELUP   (SDLK_LAST+2)
#define TOUCHE_MOUSEWHEELDOWN   (SDLK_LAST+3)
#define TOUCHE_BUTTON   (SDLK_LAST+4)
#define TOUCHE_ESC   SDLK_ESCAPE
#define NB_MAX_TOUCHES   134
#define HAUTEUR_DEBUT_SETUP   7
#define HAUTEUR_FIN_SETUP   44
#define Header_size   sizeof(struct Config_Header)
#define Chunk_size   sizeof(struct Config_Chunk)
#define COULEUR_SETUP   1
#define COULEUR_SELECT   8

Functions

uint8_t Fenetre_choix (int Largeur, int Hauteur, const char *Titre, const char *Choix, uint8_t Choix_debut, uint8_t Couleur, uint8_t Couleur_choix)
word Lire_Touche (void)
void Cadre (int x, int y, int w, int h, uint8_t color)
void Dessiner_ecran_principal ()
void Ecrire (uint8_t Ligne, uint16_t Num_option, uint8_t Couleur)
void Ecrire_commentaire (uint16_t Num_option)
void Tout_ecrire ()
char * Interpretation_du_fichier_config ()
bool Initialiser_config ()
void Test_duplic ()
bool Validation ()
void Scroll_haut ()
void Scroll_bas ()
void Page_up ()
void Page_down ()
void Select ()
void Setup ()
bool Verifier_ecriture_possible ()
void Enregistrer_config ()
int main (__attribute__((unused)) int argc, __attribute__((unused)) char *argv[])

Variables

SFont_FontMyFont
SDL_Surface * Ecran
char Repertoire_config [TAILLE_CHEMIN_FICHIER]
char Repertoire_donnees [TAILLE_CHEMIN_FICHIER]
bool Erreur [NB_MAX_TOUCHES]
uint8_t Choix_enreg
uint16_t Decalage_curseur = 0
uint16_t Position_curseur = 0
byteFichierConfig = NULL
byteChunkData [CHUNK_MAX]
struct Config_Chunk Chunk [CHUNK_MAX]

Define Documentation

#define MOD_SHIFT   0x1000

#define MOD_CTRL   0x2000

#define MOD_ALT   0x4000

#define TOUCHE_MOUSEMIDDLE   (SDLK_LAST+1)

Referenced by Handle_Mouse_Click(), and Nom_touche().

#define TOUCHE_MOUSEWHEELUP   (SDLK_LAST+2)

#define TOUCHE_MOUSEWHEELDOWN   (SDLK_LAST+3)

#define TOUCHE_BUTTON   (SDLK_LAST+4)

#define TOUCHE_ESC   SDLK_ESCAPE

#define NB_MAX_TOUCHES   134

#define HAUTEUR_DEBUT_SETUP   7

#define HAUTEUR_FIN_SETUP   44

#define Header_size   sizeof(struct Config_Header)

#define Chunk_size   sizeof(struct Config_Chunk)

#define COULEUR_SETUP   1

#define COULEUR_SELECT   8


Function Documentation

uint8_t Fenetre_choix ( int  Largeur,
int  Hauteur,
const char *  Titre,
const char *  Choix,
uint8_t  Choix_debut,
uint8_t  Couleur,
uint8_t  Couleur_choix 
)

word Lire_Touche ( void   ) 

References Conversion_Touche(), and Touche.

Referenced by Fenetre_choix(), Select(), and Setup().

void Cadre ( int  x,
int  y,
int  w,
int  h,
uint8_t  color 
)

void Dessiner_ecran_principal (  ) 

References Cadre(), Ecran, and SFont_Write().

Referenced by main().

void Ecrire ( uint8_t  Ligne,
uint16_t  Num_option,
uint8_t  Couleur 
)

void Ecrire_commentaire ( uint16_t  Num_option  ) 

void Tout_ecrire (  ) 

char* Interpretation_du_fichier_config (  ) 

bool Initialiser_config (  ) 

void Test_duplic (  ) 

References ConfigTouche, Erreur, NB_MAX_TOUCHES, and Touche.

Referenced by Select(), and Setup().

bool Validation (  ) 

References Choix_enreg, Erreur, Fenetre_choix(), and NB_MAX_TOUCHES.

Referenced by Setup().

void Scroll_haut (  ) 

void Scroll_bas (  ) 

void Page_up (  ) 

void Page_down (  ) 

void Select (  ) 

void Setup (  ) 

bool Verifier_ecriture_possible (  ) 

References Repertoire_config.

Referenced by main().

void Enregistrer_config (  ) 

int main ( __attribute__((unused)) int  argc,
__attribute__((unused)) char *  argv[] 
)


Variable Documentation

SDL_Surface* Ecran

Referenced by Affiche_brosse_Double(), Affiche_brosse_Simple(), Affiche_brosse_Tall(), Affiche_brosse_Wide(), Afficher_partie_de_l_ecran_Double(), Afficher_partie_de_l_ecran_Simple(), Afficher_partie_de_l_ecran_Tall(), Afficher_partie_de_l_ecran_Wide(), Afficher_une_ligne_ecran_Double(), Afficher_une_ligne_ecran_fast_Double(), Afficher_une_ligne_ecran_fast_Wide(), Afficher_une_ligne_ecran_Simple(), Afficher_une_ligne_ecran_Tall(), Afficher_une_ligne_ecran_Wide(), Afficher_une_ligne_transparente_a_l_ecran_Simple(), Afficher_une_ligne_transparente_a_l_ecran_Wide(), Afficher_une_ligne_transparente_mono_a_l_ecran_Double(), Afficher_une_ligne_transparente_mono_a_l_ecran_Simple(), Afficher_une_ligne_transparente_mono_a_l_ecran_Wide(), Cadre(), Clear_brush_Double(), Clear_brush_Simple(), Clear_brush_Tall(), Clear_brush_Wide(), Dessiner_ecran_principal(), Display_brush_Color_Double(), Display_brush_Color_Simple(), Display_brush_Color_Tall(), Display_brush_Color_Wide(), Display_brush_Color_zoom_Double(), Display_brush_Color_zoom_Tall(), Display_brush_Mono_Double(), Display_brush_Mono_Simple(), Display_brush_Mono_Tall(), Display_brush_Mono_Wide(), Ecrire(), Ecrire_commentaire(), Effacer_image_courante_Stencil(), Fenetre_choix(), Ligne_horizontale_XOR_Double(), Ligne_horizontale_XOR_Simple(), Ligne_horizontale_XOR_Tall(), Ligne_horizontale_XOR_Wide(), Ligne_verticale_XOR_Double(), Ligne_verticale_XOR_Simple(), Ligne_verticale_XOR_Tall(), Ligne_verticale_XOR_Wide(), Lire_une_ligne_ecran_Double(), Lire_une_ligne_ecran_Simple(), Lire_une_ligne_ecran_Tall(), Lire_une_ligne_ecran_Wide(), Lit_Pixel_Double(), Lit_Pixel_Simple(), Lit_Pixel_Tall(), Lit_Pixel_Wide(), main(), Pixel_Double(), Pixel_Simple(), Pixel_Tall(), Pixel_Wide(), Remap_screen_Double(), Remap_screen_Simple(), Remap_screen_Tall(), Remap_screen_Wide(), Select(), Set_Mode_SDL(), and Tout_ecrire().

char Repertoire_config[TAILLE_CHEMIN_FICHIER]

char Repertoire_donnees[TAILLE_CHEMIN_FICHIER]

Referenced by main().

bool Erreur[NB_MAX_TOUCHES]

uint8_t Choix_enreg

Referenced by Enregistrer_config(), and Validation().

uint16_t Decalage_curseur = 0

uint16_t Position_curseur = 0

byte* ChunkData[CHUNK_MAX]

struct Config_Chunk Chunk[CHUNK_MAX]


Generated on Sat Mar 7 22:45:16 2009 for GrafX2 by  doxygen 1.5.8