~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to source/blender/src/header_image.c

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2007-05-17 11:47:59 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070517114759-yp4ybrnhp2u7pk66
Tags: 2.44-1
* New upstream release.
* Drop debian/patches/01_64bits_stupidity, not needed anymore: as of this
  version blender is 64 bits safe again. Adjust README.Debian accordingly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * Functions to draw the "UV/Image Editor" window header
5
5
 * and handle user events sent to it.
6
6
 * 
7
 
 * $Id: header_image.c,v 1.70 2006/12/23 11:22:20 ton Exp $
 
7
 * $Id: header_image.c,v 1.73 2007/05/08 19:31:39 bebraw Exp $
8
8
 *
9
9
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
10
10
 *
160
160
                if(G.sima->flag & SI_DRAWTOOL)
161
161
                        /* add new brush if none exists */
162
162
                        brush_check_exists(&G.scene->toolsettings->imapaint.brush);
 
163
                allqueue(REDRAWBUTSSHADING, 0);
163
164
                allqueue(REDRAWIMAGE, 0);
164
165
                allqueue(REDRAWVIEW3D, 0);
165
166
                break;
438
439
                add_blockhandler(curarea, IMAGE_HANDLER_PAINT, UI_PNL_UNSTOW);
439
440
                break;
440
441
        case 9:
441
 
                image_viewcentre();
 
442
                image_viewcenter();
442
443
        case 10: /* Display Normalized Coordinates */
443
444
                G.sima->flag ^= SI_COORDFLOATS;
444
445
                allqueue(REDRAWIMAGE, 0);
662
663
                pack_image_sima();
663
664
                break;
664
665
        case 4: /* Texture Painting */
 
666
                brush_check_exists(&G.scene->toolsettings->imapaint.brush);
665
667
                if(G.sima->flag & SI_DRAWTOOL) G.sima->flag &= ~SI_DRAWTOOL;
666
668
                else G.sima->flag |= SI_DRAWTOOL;
 
669
                allqueue(REDRAWBUTSSHADING, 0);
667
670
                break;
668
671
        case 5:
669
672
                save_as_image_sima();
998
1001
        case 12:
999
1002
                minimize_stretch_tface_uv();
1000
1003
                break;
 
1004
        case 13:
 
1005
                pack_charts_tface_uv();
 
1006
                break;
1001
1007
        }
1002
1008
}
1003
1009
 
1030
1036
 
1031
1037
        uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");        
1032
1038
 
 
1039
        uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Pack Charts|Ctrl P", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 13, "");
1033
1040
        uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Minimize Stretch|Ctrl V", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 12, "");
1034
1041
        uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Limit Stitch...|Shift V", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 3, "");
1035
1042
        uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Stitch|V", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 4, "");
 
1043
 
 
1044
        uiDefBut(block, SEPR, 0, "",                            0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
 
1045
        
1036
1046
        uiDefIconTextBlockBut(block, image_uvs_transformmenu, NULL, ICON_RIGHTARROW_THIN, "Transform", 0, yco-=20, 120, 19, "");
1037
 
 
1038
 
        uiDefBut(block, SEPR, 0, "",                            0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
1039
 
        
1040
1047
        uiDefIconTextBlockBut(block, image_uvs_mirrormenu, NULL, ICON_RIGHTARROW_THIN, "Mirror", 0, yco-=20, 120, 19, "");
1041
1048
        uiDefIconTextBlockBut(block, image_uvs_weldalignmenu, NULL, ICON_RIGHTARROW_THIN, "Weld/Align", 0, yco-=20, 120, 19, "");
1042
1049