boutons.h File Reference


Functions

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 Numero)
 Changes brush shape.
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 Bouton_Brosse_monochrome (void)
 Callback for the brush button left click.
void Bouton_Menu_pinceaux (void)
 Callback for the brush button right click.
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_Lignes (void)
 Callback for the lines button left click.
void Bouton_Lignes_Switch_mode (void)
 Callback for the lines button right click.
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_Spray (void)
 Callback for the spray button left click.
void Bouton_Spray_Menu (void)
 Callback for the spray button right click.
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_Rectangle_vide (void)
 Callback for the empty rectangle button.
void Bouton_Rectangle_plein (void)
 Callback for the filled rectangle button.
void Bouton_Texte (void)
 Callback for the text button.
void Bouton_Degrades (void)
 Callback for the gradation button.
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 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_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 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 Bouton_Shade_Mode (void)
void Bouton_Quick_shade_Mode (void)
void Bouton_Shade_Menu (void)
void Bouton_Stencil_Mode (void)
void Bouton_Menu_Stencil (void)
void Bouton_Mask_Mode (void)
void Bouton_Mask_Menu (void)
void Bouton_Snap_Mode (void)
void Bouton_Menu_Grille (void)
void Copier_trame_predefinie (byte Indice)
void Inverser_trame (void)
void Bouton_Trame_Mode (void)
void Bouton_Trame_Menu (void)
void Bouton_Smooth_Mode (void)
void Calculer_les_tables_de_Colorize (void)
void Bouton_Colorize_Mode (void)
void Bouton_Colorize_Menu (void)
void Bouton_Tiling_Mode (void)
void Bouton_Tiling_Menu (void)
void Bouton_Effets (void)
void Bouton_Brosse (void)
void Bouton_Restaurer_brosse (void)
void Bouton_desenclencher_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_Brush_FX (void)
void Bouton_Page (void)
void Bouton_Copy_page (void)
void Copier_image_seule (void)
void Bouton_Kill (void)
void Bouton_Resol (void)
void Bouton_Safety_resol (void)
void Bouton_Load (void)
void Bouton_Reload (void)
void Bouton_Save (void)
void Bouton_Autosave (void)
void Bouton_Settings (void)
void Bouton_Undo (void)
void Bouton_Redo (void)
void Bouton_Clear (void)
void Bouton_Clear_colore (void)
void Bouton_Quit (void)
void Bouton_Cacher_menu (void)
void Load_picture (byte Image)
void Save_picture (byte Image)
void Menu_Tag_couleurs (char *En_tete, byte *Table, byte *Mode, byte Cancel, const char *Section_aide)
void Bouton_Smooth_Menu (void)
void Bouton_Smear_Mode (void)

Function Documentation

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_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 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 Bouton_Menu_pinceaux ( 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_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_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_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 Bouton_Spray_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_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_Texte ( void   ) 

void Bouton_Degrades ( void   ) 

void Degrade_Charger_infos_du_tableau ( int  Indice  ) 

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_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 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 Bouton_Shade_Mode ( void   ) 

void Bouton_Quick_shade_Mode ( void   ) 

void Bouton_Shade_Menu ( void   ) 

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 Bouton_Snap_Mode ( void   ) 

void Bouton_Menu_Grille ( void   ) 

void Copier_trame_predefinie ( byte  Indice  ) 

void Inverser_trame ( void   ) 

void Bouton_Trame_Mode ( void   ) 

void Bouton_Trame_Menu ( void   ) 

void Bouton_Smooth_Mode ( void   ) 

void Calculer_les_tables_de_Colorize ( void   ) 

void Bouton_Colorize_Mode ( void   ) 

void Bouton_Colorize_Menu ( void   ) 

void Bouton_Tiling_Mode ( void   ) 

void Bouton_Tiling_Menu ( void   ) 

void Bouton_Effets ( void   ) 

void Bouton_Brosse ( void   ) 

void Bouton_Restaurer_brosse ( void   ) 

void Bouton_desenclencher_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_Brush_FX ( void   ) 

void Bouton_Page ( void   ) 

void Bouton_Copy_page ( void   ) 

void Copier_image_seule ( void   ) 

void Bouton_Kill ( void   ) 

void Bouton_Resol ( void   ) 

void Bouton_Safety_resol ( void   ) 

void Bouton_Load ( void   ) 

void Bouton_Reload ( void   ) 

void Bouton_Save ( void   ) 

References Save_picture().

Referenced by Initialisation_des_boutons().

void Bouton_Autosave ( void   ) 

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_Undo ( void   ) 

void Bouton_Redo ( void   ) 

void Bouton_Clear ( void   ) 

void Bouton_Clear_colore ( void   ) 

void Bouton_Quit ( void   ) 

void Bouton_Cacher_menu ( void   ) 

void Load_picture ( byte  Image  ) 

void Save_picture ( byte  Image  ) 

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

void Bouton_Smooth_Menu ( void   ) 

void Bouton_Smear_Mode ( void   ) 


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