Changeset 2157 in Sophya for trunk/SophyaPI
- Timestamp:
- Aug 4, 2002, 11:42:21 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piimage.cc
r2119 r2157 47 47 // * <Alt>X : Active/désactive l'affichage des coupes X,Y 48 48 // * <Alt>Z : Supprime les textes et signes ajoutés au dessin. 49 // * <Alt>+ <Cntl>+ : Augmentation du facteur de zoom 50 // * <Alt>- <Cntl>- : Diminution du facteur de zoom 49 51 // * Touches Curseurs : déplace la pavé. 50 52 //-- … … 687 689 { 688 690 cur_piimage = this; 689 if (kmod ==PIKM_Alt) {691 if (kmod & PIKM_Alt) { 690 692 if (key == 'R' || key == 'r') Apply(true); // Pour tout rafraichir 691 693 else if (key == 'V' || key == 'v') RequestSelection(); // Pour coller (copier/coller) … … 703 705 bool cut = (cutwin == NULL) ? true : false; 704 706 ShowCuts(cut); 707 } 708 else if (key == '+') { // Zoom in (Augmentation du facteur de zoom) 709 // cout << " ++Changing zoom factor " << GetZoomF() << " ---> " 710 // << 2*GetZoomF() << endl; 711 SetZoomF(GetZoomF()*2., true); 712 } 713 else if (key == '-') { // Zoom out (diminution du facteur de zoom) 714 // cout << " --Changing zoom factor " << GetZoomF() << " ---> " 715 // << 0.5*GetZoomF() << endl; 716 SetZoomF(GetZoomF()*0.5, true); 705 717 } 706 718 // ---- Le copier ---- … … 730 742 } 731 743 } 732 733 744 else if (kmod & PIKM_Cntl) { 745 if (key == '+') { // Zoom in (Augmentation du facteur de zoom) 746 SetZoomF(GetZoomF()*2., true); 747 } 748 else if (key == '-') { // Zoom out (diminution du facteur de zoom) 749 SetZoomF(GetZoomF()*0.5, true); 750 } 751 } 734 752 else if (kmod == PIKM_Blank) { 735 753 switch (key) {
Note:
See TracChangeset
for help on using the changeset viewer.