boutons.c File Reference

#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <SDL.h>
#include "const.h"
#include "struct.h"
#include "global.h"
#include "divers.h"
#include "graph.h"
#include "moteur.h"
#include "readline.h"
#include "files.h"
#include "loadsave.h"
#include "init.h"
#include "boutons.h"
#include "operatio.h"
#include "pages.h"
#include "erreurs.h"
#include "readini.h"
#include "saveini.h"
#include "shade.h"
#include "io.h"
#include "aide.h"
#include "texte.h"
#include "sdlscreen.h"
#include "windows.h"
#include "brush.h"
#include "input.h"

Defines

#define FILENAMESPACE   13
#define Display_Window(X, Y)   UpdateRect(Fenetre_Pos_X,Fenetre_Pos_Y,X*Menu_Facteur_X,Y*Menu_Facteur_Y);
#define YES   "YES"
#define NO   " NO"
#define TOLERANCE_X   8
#define TOLERANCE_Y   4

Functions

void Stencil_Actualiser_couleur (byte Couleur)
void Stencil_Tagger_couleur (byte Couleur, byte Couleur_de_taggage)
void Message_Non_disponible (void)
 Displays an error message when calling an unavailable function.
void Message_Memoire_insuffisante (void)
 Displays an error message when there is no more memory for the requested operation.
void Bouton_Message_initial (void)
 Displays the splash screen at program startup.
void Changer_la_forme_du_pinceau (byte Forme)
 Changes brush shape.
void Bouton_Undo (void)
void Bouton_Redo (void)
void Bouton_Pal_left (void)
 Callback for the palette scroller buttons left click.
void Bouton_Pal_left_fast (void)
 Callback for the palette scroller buttons right click.
void Bouton_Pal_right (void)
 Callback for the palette scroller buttons left click.
void Bouton_Pal_right_fast (void)
 Callback for the palette scroller buttons right click.
void Bouton_Choix_forecolor (void)
 Callback for the palette color buttons left click.
void Bouton_Choix_backcolor (void)
 Callback for the palette color buttons right click.
void Pixel_dans_barre_d_outil_cachee (__attribute__((unused)) word X, __attribute__((unused)) word Y, __attribute__((unused)) byte Couleur)
void Bouton_Cacher_menu (void)
byte Bouton_Quitter_Routine_locale (void)
void Bouton_Quit (void)
void Bouton_Clear (void)
void Bouton_Clear_colore (void)
void Menu_Tag_couleurs (char *En_tete, byte *Table, byte *Mode, byte Cancel, const char *Section_aide)
void Bouton_Stencil_Mode (void)
void Bouton_Menu_Stencil (void)
void Bouton_Mask_Mode (void)
void Bouton_Mask_Menu (void)
void Settings_Afficher_config (struct S_Config *Conf)
void Settings_Sauver_config (struct S_Config *Conf)
void Settings_Charger_config (struct S_Config *Conf)
void Bouton_Settings (void)
void Bouton_Page (void)
void Copier_image_seule (void)
void Copier_certaines_couleurs (void)
void Bouton_Copy_page (void)
void Bouton_Kill (void)
void Cocher_bouton_mode (short Pos_X, short Pos_Y, byte Etat)
void Afficher_liste_modes (short Debut_liste, short Position_curseur)
void Scroller_la_liste_des_modes (short Debut_liste, short Position_curseur, int *Mode_choisi)
void Bouton_Resol (void)
void Bouton_Safety_resol (void)
void Bouton_Dessin (void)
 Callback for the freehand draw button left click.
void Bouton_Dessin_Switch_mode (void)
 Callback for the freehand draw button right click.
void Bouton_Rectangle_vide (void)
 Callback for the empty rectangle button.
void Bouton_Rectangle_plein (void)
 Callback for the filled rectangle button.
void Bouton_Cercle_vide (void)
 Callback for the circle button left click.
void Bouton_Ellipse_vide (void)
 Callback for the circle button left click.
void Bouton_Cercle_plein (void)
 Callback for the filled circle button ledt click.
void Bouton_Ellipse_pleine (void)
 Callback for the filled circle right click.
void Degrade_Dessiner_bouton_de_technique (short Pos_X, short Pos_Y, int Technique)
void Degrade_Charger_infos_du_tableau (int Indice)
 Gets the informations from the gradations table and set the global vars for the current gradation.
void Degrade_Dessiner_preview (short Debut_X, short Debut_Y, short Largeur, short Hauteur, int Indice)
void Bouton_Degrades (void)
 Callback for the gradation button.
void Bouton_Cercle_degrade (void)
 Callback for the gradation circle button left click.
void Bouton_Ellipse_degrade (void)
 Callback for the gradation circle right click.
void Bouton_Rectangle_degrade (void)
 Callback for the gradation rectangle button.
void Bouton_Fill (void)
 Callback for the fill button left click.
void Bouton_Remplacer (void)
 Callback for the fill button right click.
void Bouton_desenclencher_Fill (void)
 Disable and release the fill button.
void Bouton_Menu_pinceaux (void)
 Callback for the brush button right click.
void Bouton_Brosse_monochrome (void)
 Callback for the brush button left click.
void Print_repertoire_courant (void)
void Print_Nom_fichier_dans_selecteur (void)
void Preparer_et_afficher_liste_fichiers (short Position, short Decalage, struct Fenetre_Bouton_scroller *Enreg)
void Relire_liste_fichiers (byte Filtre, short Position, short Decalage, struct Fenetre_Bouton_scroller *Enreg)
void On_vient_de_scroller_dans_le_fileselect (struct Fenetre_Bouton_scroller *Scroller_de_fichiers)
short Position_fichier_dans_liste (char *Nom)
void Placer_barre_de_selection_sur (char *Nom)
char * Nom_correspondant_le_mieux_a (char *Nom)
byte Bouton_Load_ou_Save (byte Load, byte Image)
int Meilleur_mode_video (void)
void Swapper_infos_selecteurs_image_et_brosse (void)
void Load_picture (byte Image)
void Bouton_Load (void)
void Bouton_Reload (void)
void Nom_fichier_backup (char *Nom, char *Nom_backup)
void Backup_du_fichier_sauvegarde (void)
void Save_picture (byte Image)
void Bouton_Save (void)
void Bouton_Autosave (void)
void Bouton_Lignes (void)
 Callback for the lines button left click.
void Bouton_Lignes_Switch_mode (void)
 Callback for the lines button right click.
void Bouton_Brosse (void)
void Bouton_desenclencher_Brosse (void)
void Bouton_Restaurer_brosse (void)
void Bouton_Lasso (void)
void Bouton_desenclencher_Lasso (void)
void Bouton_Pipette (void)
void Bouton_desenclencher_Pipette (void)
void Bouton_Inverser_foreback (void)
void Bouton_Loupe (void)
void Bouton_Menu_Loupe (void)
void Bouton_desenclencher_Loupe (void)
void Bouton_Snap_Mode (void)
void Bouton_Menu_Grille (void)
void Bouton_Brush_FX (void)
void Bouton_Smooth_Mode (void)
void Bouton_Smooth_Menu (void)
void Bouton_Smear_Mode (void)
void Calculer_les_tables_de_Colorize (void)
void Bouton_Colorize_Mode (void)
void Bouton_Colorize_Afficher_la_selection (int Numero)
void Bouton_Colorize_Menu (void)
void Bouton_Tiling_Mode (void)
void Bouton_Tiling_Menu (void)
void Bouton_Courbes (void)
 Callback for the curves button left click.
void Bouton_Courbes_Switch_mode (void)
 Callback for the curves button right click.
void Bouton_Spray (void)
 Callback for the spray button left click.
void Spray_Rafficher_infos (byte Couleur_selectionnee, byte Rafficher_jauge)
void Bouton_Spray_Menu (void)
 Callback for the spray button right click.
void Bouton_Trame_Mode (void)
void Dessiner_trame_zoomee (short Orig_X, short Orig_Y)
void Dessiner_trames_predefinies (void)
void Copier_trame_predefinie (byte Indice)
void Inverser_trame (void)
void Mettre_a_jour_trame (short X, short Y)
void Bouton_Trame_Menu (void)
void Bouton_Polygone (void)
 Callback for the polyline button left click.
void Bouton_Polyform (void)
 Callback for the polyline right click.
void Bouton_Polyfill (void)
 Callback for the polyfill button left click.
void Bouton_Filled_polyform (void)
 Callback for the polyfill button right click.
void Bouton_Ajuster (void)
 Callback for the adjust picture button.
void Afficher_sprite_effet (short Numero_sprite, short Debut_X, short Debut_Y)
void Afficher_etat_effet (short X, short Y, char *Libelle, byte Etat)
void Afficher_etat_effets (void)
void Afficher_etat_feedback (void)
void Bouton_Effets (void)
void Dessiner_selecteur_fontes (short X, short Y, short Debut_liste, short Position_curseur, short Nombre_visibles)
void Bouton_Texte ()
 Callback for the text button.

Variables

short Old_MX
short Old_MY
int Type_selectionne
char FFF_Meilleur_nom [TAILLE_CHEMIN_FICHIER]
byte On_vient_du_menu_de_facteurs_de_zoom = 0
byte Smooth_Matrice_defaut [4][3][3]

Define Documentation

#define FILENAMESPACE   13

#define Display_Window ( X,
 )     UpdateRect(Fenetre_Pos_X,Fenetre_Pos_Y,X*Menu_Facteur_X,Y*Menu_Facteur_Y);

#define YES   "YES"

Referenced by main(), and Settings_Afficher_config().

#define NO   " NO"

Referenced by main(), and Settings_Afficher_config().

#define TOLERANCE_X   8

Referenced by Meilleur_mode_video().

#define TOLERANCE_Y   4

Referenced by Meilleur_mode_video().


Function Documentation

void Stencil_Actualiser_couleur ( byte  Couleur  ) 

void Stencil_Tagger_couleur ( byte  Couleur,
byte  Couleur_de_taggage 
)

void Message_Non_disponible ( void   ) 

Displays an error message when calling an unavailable function.

Only used in the beta versions for things we haven't coded yet.

References Afficher_curseur(), CM_Clair, CM_Noir, Display_Window, Fenetre_Bouton_clicke(), Fenetre_Definir_bouton_normal(), Fermer_fenetre(), Ouvrir_fenetre(), Print_dans_fenetre(), Touche, and TOUCHE_ESC.

Referenced by Bouton_Brush_FX(), Gestion_principale(), and Initialisation_des_boutons().

void Message_Memoire_insuffisante ( void   ) 

void Bouton_Message_initial ( void   ) 

void Changer_la_forme_du_pinceau ( byte  Numero  ) 

Changes brush shape.

This function saves the current brush shape and swith to the default one (single pixel brush) for the filler and the color picker. These functions don't need (and will not work with) a custom brush.

References Afficher_pinceau_dans_menu(), FORME_PINCEAU_POINT, Operation_en_cours, OPERATION_FILL, OPERATION_PIPETTE, Pinceau_Forme, Pinceau_Forme_avant_fill, and Pinceau_Forme_avant_pipette.

Referenced by Bouton_Brosse_monochrome(), Bouton_Menu_pinceaux(), Bouton_Restaurer_brosse(), Bouton_Texte(), Bouton_Trame_Menu(), Brosse_0_5(), Etirer_brosse_2_7(), Gestion_principale(), Load_picture(), Polybrosse_12_8(), and Tourner_brosse_2_5().

void Bouton_Undo ( void   ) 

void Bouton_Redo ( void   ) 

void Bouton_Pal_left ( void   ) 

Callback for the palette scroller buttons left click.

Scrolls the menubar palette one column to the left.

References Afficher_curseur(), Afficher_palette_du_menu(), BOUTON_PAL_LEFT, Couleur_debut_palette, Desenclencher_bouton(), Effacer_curseur, and Palette_Cells_Y().

Referenced by Initialisation_des_boutons().

void Bouton_Pal_left_fast ( void   ) 

Callback for the palette scroller buttons right click.

Scrolls the menubar palette faster to the left.

References Afficher_curseur(), Afficher_palette_du_menu(), BOUTON_PAL_LEFT, Couleur_debut_palette, Desenclencher_bouton(), Effacer_curseur, Palette_Cells_X(), and Palette_Cells_Y().

Referenced by Initialisation_des_boutons().

void Bouton_Pal_right ( void   ) 

Callback for the palette scroller buttons left click.

Scrolls the menubar palette one column to the right.

References Afficher_curseur(), Afficher_palette_du_menu(), BOUTON_PAL_RIGHT, Couleur_debut_palette, Desenclencher_bouton(), Effacer_curseur, Palette_Cells_X(), and Palette_Cells_Y().

Referenced by Initialisation_des_boutons().

void Bouton_Pal_right_fast ( void   ) 

Callback for the palette scroller buttons right click.

Scrolls the menubar palette faster to the right.

References Afficher_curseur(), Afficher_palette_du_menu(), BOUTON_PAL_RIGHT, Couleur_debut_palette, Desenclencher_bouton(), Effacer_curseur, Palette_Cells_X(), and Palette_Cells_Y().

Referenced by Initialisation_des_boutons().

void Bouton_Choix_forecolor ( void   ) 

Callback for the palette color buttons left click.

Selects the foreground drawing color when clicking on the menubar palette.

References Afficher_curseur(), Afficher_foreback(), CM_Blanc, CM_Noir, Couleur_palette(), Effacer_curseur, Encadrer_couleur_menu(), and Fore_color.

Referenced by Initialisation_des_boutons().

void Bouton_Choix_backcolor ( void   ) 

Callback for the palette color buttons right click.

Selects the background drawing color when clicking on the menubar palette.

References Afficher_curseur(), Afficher_foreback(), Back_color, Couleur_palette(), and Effacer_curseur.

Referenced by Initialisation_des_boutons().

void Pixel_dans_barre_d_outil_cachee ( __attribute__((unused)) word  X,
__attribute__((unused)) word  Y,
__attribute__((unused)) byte  Couleur 
)

Referenced by Bouton_Cacher_menu().

void Bouton_Cacher_menu ( void   ) 

byte Bouton_Quitter_Routine_locale ( void   ) 

void Bouton_Quit ( void   ) 

void Bouton_Clear ( void   ) 

void Bouton_Clear_colore ( void   ) 

void Menu_Tag_couleurs ( char *  En_tete,
byte Table,
byte Mode,
byte  Cancel,
const char *  Section_aide 
)

void Bouton_Stencil_Mode ( void   ) 

References Stencil_Mode.

Referenced by Bouton_Effets(), and Gestion_principale().

void Bouton_Menu_Stencil ( void   ) 

void Bouton_Mask_Mode ( void   ) 

References Mask_Mode.

Referenced by Bouton_Effets(), and Gestion_principale().

void Bouton_Mask_Menu ( void   ) 

void Settings_Afficher_config ( struct S_Config Conf  ) 

void Settings_Sauver_config ( struct S_Config Conf  ) 

References Erreur, Sauver_CFG(), and Sauver_INI().

Referenced by Bouton_Settings().

void Settings_Charger_config ( struct S_Config Conf  ) 

References Charger_CFG(), Charger_INI(), and Erreur.

Referenced by Bouton_Settings().

void Bouton_Settings ( void   ) 

References S_Config::Adjust_brush_pick, Afficher_curseur(), S_Config::Afficher_limites_image, Afficher_menu(), Attendre_fin_de_click(), S_Config::Auto_save, S_Config::Auto_set_res, S_Config::Backup, BOUTON_AIDE, BOUTON_PARAMETRES, Brouillon_File_list_Decalage, Brouillon_File_list_Position, Calculer_couleurs_menu_optimales(), S_Config::Clear_palette, CM_Clair, CM_Fonce, Config, S_Config::Coords_rel, S_Config::Couleurs_separees, S_Config::Curseur, Desenclencher_bouton(), Display_Window, Est_Raccourci(), Fenetre_Afficher_cadre(), Fenetre_aide(), Fenetre_Attribut2, Fenetre_Bouton_clicke(), Fenetre_Contenu_bouton_saisie(), Fenetre_Definir_bouton_normal(), Fenetre_Definir_bouton_saisie(), Fenetre_Definir_bouton_scroller(), Fenetre_Liste_boutons_special, Fermer_fenetre(), Fonte, S_Config::Fonte, Fonte_fun, Fonte_systeme, S_Config::Indice_Sensibilite_souris_X, S_Config::Indice_Sensibilite_souris_Y, S_Config::Lire_les_fichiers_caches, S_Config::Lire_les_repertoires_caches, S_Config::Maximize_preview, Menu_Facteur_X, Menu_Facteur_Y, Mouse_Facteur_de_correction_X, Mouse_Facteur_de_correction_Y, S_Config::Nb_pages_Undo, NB_PAGES_UNDO_MAX, Nouveau_nombre_de_backups(), Num2str(), Ouvrir_fenetre(), Principal_File_list_Decalage, Principal_File_list_Position, Principal_Palette, Print_dans_fenetre(), Readline(), S_Config::Safety_colors, Sensibilite_souris(), Settings_Afficher_config(), Settings_Charger_config(), Settings_Sauver_config(), Touche, and TOUCHE_ESC.

Referenced by Initialisation_des_boutons().

void Bouton_Page ( void   ) 

void Copier_image_seule ( void   ) 

void Copier_certaines_couleurs ( void   ) 

void Bouton_Copy_page ( void   ) 

void Bouton_Kill ( void   ) 

void Cocher_bouton_mode ( short  Pos_X,
short  Pos_Y,
byte  Etat 
)

void Afficher_liste_modes ( short  Debut_liste,
short  Position_curseur 
)

void Scroller_la_liste_des_modes ( short  Debut_liste,
short  Position_curseur,
int *  Mode_choisi 
)

void Bouton_Resol ( void   ) 

void Bouton_Safety_resol ( void   ) 

void Bouton_Dessin ( void   ) 

Callback for the freehand draw button left click.

Selects freehand drawing mode, depending on the current state of the freehand button.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and Mode_de_dessin_en_cours.

Referenced by Initialisation_des_boutons().

void Bouton_Dessin_Switch_mode ( void   ) 

Callback for the freehand draw button right click.

Cycles the drawing modes for the freehand tool.

References Afficher_curseur(), Afficher_sprite_dans_menu(), BOUTON_DESSIN, Demarrer_pile_operation(), Effacer_curseur, Mode_de_dessin_en_cours, OPERATION_DESSIN_CONTINU, and OPERATION_FILLED_CONTOUR.

Referenced by Initialisation_des_boutons().

void Bouton_Rectangle_vide ( void   ) 

Callback for the empty rectangle button.

Start the rectangle operation.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_RECTANGLE_VIDE.

Referenced by Initialisation_des_boutons().

void Bouton_Rectangle_plein ( void   ) 

Callback for the filled rectangle button.

Start the filled rectangle operation.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_RECTANGLE_PLEIN.

Referenced by Initialisation_des_boutons().

void Bouton_Cercle_vide ( void   ) 

Callback for the circle button left click.

Starts drawing an empty circle

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_CERCLE_VIDE.

Referenced by Initialisation_des_boutons().

void Bouton_Ellipse_vide ( void   ) 

Callback for the circle button left click.

Starts drawing an empty ellipsis

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_ELLIPSE_VIDE.

Referenced by Initialisation_des_boutons().

void Bouton_Cercle_plein ( void   ) 

Callback for the filled circle button ledt click.

Starts drawing a filled circle.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_CERCLE_PLEIN.

Referenced by Initialisation_des_boutons().

void Bouton_Ellipse_pleine ( void   ) 

Callback for the filled circle right click.

Starts drawing a filled ellipsis.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_ELLIPSE_PLEINE.

Referenced by Initialisation_des_boutons().

void Degrade_Dessiner_bouton_de_technique ( short  Pos_X,
short  Pos_Y,
int  Technique 
)

void Degrade_Charger_infos_du_tableau ( int  Indice  ) 

void Degrade_Dessiner_preview ( short  Debut_X,
short  Debut_Y,
short  Largeur,
short  Hauteur,
int  Indice 
)

void Bouton_Degrades ( void   ) 

void Bouton_Cercle_degrade ( void   ) 

Callback for the gradation circle button left click.

Starts drawing a gradation circle.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_CERCLE_DEGRADE.

Referenced by Initialisation_des_boutons().

void Bouton_Ellipse_degrade ( void   ) 

Callback for the gradation circle right click.

Starts drawing a gradation ellipsis.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_ELLIPSE_DEGRADEE.

Referenced by Initialisation_des_boutons().

void Bouton_Rectangle_degrade ( void   ) 

Callback for the gradation rectangle button.

Starts the gradation rectangle drawing operation.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_RECTANGLE_DEGRADE.

Referenced by Initialisation_des_boutons().

void Bouton_Fill ( void   ) 

void Bouton_Remplacer ( void   ) 

void Bouton_desenclencher_Fill ( void   ) 

Disable and release the fill button.

Restores the cursor (custom brushes are disabled for the fill operation). Cleans the status bar if the color replacement tool put a preview color inside it.

References Loupe_Mode, Menu_Ordonnee, Menu_visible, Mouse_X, Mouse_Y, Operation_en_cours, OPERATION_REMPLACER, Pinceau_Forme, Pinceau_Forme_avant_fill, Principal_Split, Principal_X_Zoom, and Print_dans_menu().

Referenced by Initialisation_des_boutons().

void Bouton_Menu_pinceaux ( void   ) 

void Bouton_Brosse_monochrome ( void   ) 

Callback for the brush button left click.

Selects the monochrome brush mode when right clicking on the brush button.

References Afficher_curseur(), BOUTON_PINCEAUX, Changer_la_forme_du_pinceau(), Desenclencher_bouton(), Effacer_curseur, and FORME_PINCEAU_BROSSE_MONOCHROME.

Referenced by Initialisation_des_boutons().

void Print_repertoire_courant ( void   ) 

void Print_Nom_fichier_dans_selecteur ( void   ) 

void Preparer_et_afficher_liste_fichiers ( short  Position,
short  Decalage,
struct Fenetre_Bouton_scroller Enreg 
)

void Relire_liste_fichiers ( byte  Filtre,
short  Position,
short  Decalage,
struct Fenetre_Bouton_scroller Enreg 
)

void On_vient_de_scroller_dans_le_fileselect ( struct Fenetre_Bouton_scroller Scroller_de_fichiers  ) 

short Position_fichier_dans_liste ( char *  Nom  ) 

void Placer_barre_de_selection_sur ( char *  Nom  ) 

char* Nom_correspondant_le_mieux_a ( char *  Nom  ) 

byte Bouton_Load_ou_Save ( byte  Load,
byte  Image 
)

References A_DROITE, A_GAUCHE, Afficher_bookmark(), Afficher_curseur(), Afficher_la_liste_des_fichiers(), Afficher_menu(), Attendre_fin_de_click(), Back_color, Block, S_Config::Bookmark_directory, S_Config::Bookmark_label, BOUTON_AIDE, BOUTON_CHARGER, BOUTON_SAUVER, Brouillon_File_list_Decalage, Brouillon_File_list_Position, Brouillon_Repertoire_courant, Calculer_couleurs_menu_optimales(), Calculer_decalage_click_dans_fileselector(), CARACTERE_SUSPENSION, Charger_image(), S_Config::Chrono_delay, CM_Clair, CM_Fonce, CM_Noir, Config, Demande_de_confirmation(), Desenclencher_bouton(), Determiner_element_de_la_liste(), Determiner_repertoire_courant(), Detruire_liste_du_fileselect(), Display_Window, Effacer_curseur, Erreur, Est_Raccourci(), Etat_chrono, Fenetre_Afficher_cadre(), Fenetre_Afficher_cadre_creux(), Fenetre_Afficher_sprite_drive(), Fenetre_aide(), Fenetre_Attribut2, Fenetre_Bouton_clicke(), Fenetre_Definir_bouton_dropdown(), Fenetre_Definir_bouton_normal(), Fenetre_Definir_bouton_saisie(), Fenetre_Definir_bouton_scroller(), Fenetre_Definir_bouton_special(), Fenetre_Dropdown_choix(), Fenetre_Hauteur, Fenetre_Pos_X, Fenetre_Pos_Y, Fermer_fenetre(), Fichier_existe(), FILENAMESPACE, FORMAT_PAR_DEFAUT, FormatFichier, Initialiser_chrono(), Lire_liste_des_fichiers(), Lire_liste_des_lecteurs(), Liste_du_fileselect, Liste_Nb_elements, Liste_Nb_repertoires, Menu_Facteur_X, Menu_Facteur_Y, Menu_Ordonnee_avant_fenetre, NB_BOOKMARKS, NB_FORMATS_CONNUS, NB_FORMATS_SAVE, Nom_correspondant_le_mieux_a(), Nom_formate(), Element_de_liste_de_fileselect::NomComplet, Nouvelle_preview, On_vient_de_scroller_dans_le_fileselect(), Ouvrir_fenetre(), PARENT_DIR, Pixel_Chargement_dans_ecran_courant(), Pixel_Chargement_dans_preview(), Pixel_de_chargement, Placer_barre_de_selection_sur(), Position_dernier_slash(), Preparer_et_afficher_liste_fichiers(), Principal_Commentaire, Principal_File_list_Decalage, Principal_File_list_Position, Principal_Format, Principal_Format_fichier, Principal_Hauteur_image, Principal_Image_modifiee, Principal_Largeur_image, Principal_Nom_fichier, Principal_Palette, Principal_Repertoire_courant, Principal_Repertoire_fichier, Print_dans_fenetre(), Print_Nom_fichier_dans_selecteur(), Readline(), Readline_ex(), Relire_liste_fichiers(), Repertoire_existe(), Select_End(), Select_Home(), Select_Page_Down(), Select_Page_Up(), Select_Scroll_Down(), Select_Scroll_Up(), Set_palette(), TAILLE_CHEMIN_FICHIER, TAILLE_COMMENTAIRE, Tester_chrono(), Touche, Touche_ANSI, TOUCHE_ESC, TOUCHE_MOUSEWHEELDOWN, TOUCHE_MOUSEWHEELUP, ToWinH, ToWinL, ToWinX, ToWinY, Trier_la_liste_des_fichiers(), and UpdateRect().

Referenced by Load_picture(), and Save_picture().

int Meilleur_mode_video ( void   ) 

void Swapper_infos_selecteurs_image_et_brosse ( void   ) 

void Load_picture ( byte  Image  ) 

void Bouton_Load ( void   ) 

void Bouton_Reload ( void   ) 

void Nom_fichier_backup ( char *  Nom,
char *  Nom_backup 
)

void Backup_du_fichier_sauvegarde ( void   ) 

void Save_picture ( byte  Image  ) 

void Bouton_Save ( void   ) 

References Save_picture().

Referenced by Initialisation_des_boutons().

void Bouton_Autosave ( void   ) 

void Bouton_Lignes ( void   ) 

Callback for the lines button left click.

Selects lines drawing mode, depending on the current state of the lines button.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and Ligne_en_cours.

Referenced by Initialisation_des_boutons().

void Bouton_Lignes_Switch_mode ( void   ) 

Callback for the lines button right click.

Cycles the drawing modes for the lines tool.

References Afficher_curseur(), Afficher_sprite_dans_menu(), BOUTON_LIGNES, Demarrer_pile_operation(), Effacer_curseur, Ligne_en_cours, OPERATION_K_LIGNE, OPERATION_LIGNE, and OPERATION_LIGNES_CENTREES.

Referenced by Initialisation_des_boutons().

void Bouton_Brosse ( void   ) 

void Bouton_desenclencher_Brosse ( void   ) 

void Bouton_Restaurer_brosse ( void   ) 

void Bouton_Lasso ( void   ) 

void Bouton_desenclencher_Lasso ( void   ) 

void Bouton_Pipette ( void   ) 

void Bouton_desenclencher_Pipette ( void   ) 

void Bouton_Inverser_foreback ( void   ) 

void Bouton_Loupe ( void   ) 

void Bouton_Menu_Loupe ( void   ) 

void Bouton_desenclencher_Loupe ( void   ) 

void Bouton_Snap_Mode ( void   ) 

void Bouton_Menu_Grille ( void   ) 

void Bouton_Brush_FX ( void   ) 

void Bouton_Smooth_Mode ( void   ) 

void Bouton_Smooth_Menu ( void   ) 

void Bouton_Smear_Mode ( void   ) 

void Calculer_les_tables_de_Colorize ( void   ) 

void Bouton_Colorize_Mode ( void   ) 

void Bouton_Colorize_Afficher_la_selection ( int  Numero  ) 

void Bouton_Colorize_Menu ( void   ) 

void Bouton_Tiling_Mode ( void   ) 

void Bouton_Tiling_Menu ( void   ) 

void Bouton_Courbes ( void   ) 

Callback for the curves button left click.

Start curve operation according to the selected mode.

References Afficher_curseur(), Courbe_en_cours, Demarrer_pile_operation(), and Effacer_curseur.

Referenced by Initialisation_des_boutons().

void Bouton_Courbes_Switch_mode ( void   ) 

Callback for the curves button right click.

Select the curve mode (1-point, 2-point)

References Afficher_curseur(), Afficher_sprite_dans_menu(), BOUTON_COURBES, Courbe_en_cours, Demarrer_pile_operation(), Effacer_curseur, OPERATION_COURBE_3_POINTS, and OPERATION_COURBE_4_POINTS.

Referenced by Initialisation_des_boutons().

void Bouton_Spray ( void   ) 

Callback for the spray button left click.

Start the spray operation.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_SPRAY.

Referenced by Initialisation_des_boutons().

void Spray_Rafficher_infos ( byte  Couleur_selectionnee,
byte  Rafficher_jauge 
)

void Bouton_Spray_Menu ( void   ) 

void Bouton_Trame_Mode ( void   ) 

void Dessiner_trame_zoomee ( short  Orig_X,
short  Orig_Y 
)

void Dessiner_trames_predefinies ( void   ) 

void Copier_trame_predefinie ( byte  Indice  ) 

void Inverser_trame ( void   ) 

void Mettre_a_jour_trame ( short  X,
short  Y 
)

void Bouton_Trame_Menu ( void   ) 

void Bouton_Polygone ( void   ) 

Callback for the polyline button left click.

Starts drawing a polygon.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_POLYGONE.

Referenced by Initialisation_des_boutons().

void Bouton_Polyform ( void   ) 

Callback for the polyline right click.

Starts drawing a polyform.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_POLYFORM.

Referenced by Initialisation_des_boutons().

void Bouton_Polyfill ( void   ) 

Callback for the polyfill button left click.

Starts drawing a filled polygon.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_POLYFILL.

Referenced by Initialisation_des_boutons().

void Bouton_Filled_polyform ( void   ) 

Callback for the polyfill button right click.

Starts drawing a filled polyform.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_FILLED_POLYFORM.

Referenced by Initialisation_des_boutons().

void Bouton_Ajuster ( void   ) 

Callback for the adjust picture button.

Start the adjust picture operation.

References Afficher_curseur(), Demarrer_pile_operation(), Effacer_curseur, and OPERATION_SCROLL.

Referenced by Initialisation_des_boutons().

void Afficher_sprite_effet ( short  Numero_sprite,
short  Debut_X,
short  Debut_Y 
)

void Afficher_etat_effet ( short  X,
short  Y,
char *  Libelle,
byte  Etat 
)

void Afficher_etat_effets ( void   ) 

void Afficher_etat_feedback ( void   ) 

void Bouton_Effets ( void   ) 

void Dessiner_selecteur_fontes ( short  X,
short  Y,
short  Debut_liste,
short  Position_curseur,
short  Nombre_visibles 
)

void Bouton_Texte ( void   ) 


Variable Documentation

short Old_MX

short Old_MY

char FFF_Meilleur_nom[TAILLE_CHEMIN_FICHIER]

Initial value:

{
 { {1,2,1}, {2,4,2}, {1,2,1} },
 { {1,3,1}, {3,9,3}, {1,3,1} },
 { {0,1,0}, {1,2,1}, {0,1,0} },
 { {2,3,2}, {3,1,3}, {2,3,2} }
}


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