diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-08 13:47:50 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-08 13:47:50 +0300 |
commit | 185ea29d2ad8cd5aa4ed520a8dc05637ac80c09b (patch) | |
tree | 92eaf22a0030a4440d0904acbd946c26d6ecf059 /source/blender/src/header_image.c | |
parent | 9caa2fee8e5365d5dcdeeb89bc160a3f15ef8daf (diff) |
- removed all buttons to choose for 'image selector'. where loading images
is meant, a ctrl+click will invoke image selector still.
- this as discussed a while ago at meeting; the image selector is highly
unstable, and causes bug reports for each release we do.
- removed reference to 'save runtime' from file menu.
- added icons to fileselect buttons in f10 menu
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index 1a02838a20b..d90d4e6a19f 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -248,31 +248,27 @@ void do_image_buttons(unsigned short event) break; case B_SIMAGELOAD: - case B_SIMAGELOAD1: if(G.sima->image) strcpy(name, G.sima->image->name); else strcpy(name, U.textudir); - if(event==B_SIMAGELOAD) - activate_imageselect(FILE_SPECIAL, "SELECT IMAGE", name, - load_space_image); + if(G.qual==LR_CTRLKEY) + activate_imageselect(FILE_SPECIAL, "SELECT IMAGE", name, load_space_image); else - activate_fileselect(FILE_SPECIAL, "SELECT IMAGE", name, - load_space_image); + activate_fileselect(FILE_SPECIAL, "SELECT IMAGE", name, load_space_image); break; + case B_SIMAGEREPLACE: - case B_SIMAGEREPLACE1: if(G.sima->image) strcpy(name, G.sima->image->name); else strcpy(name, U.textudir); - if(event==B_SIMAGEREPLACE) - activate_imageselect(FILE_SPECIAL, "REPLACE IMAGE", name, - replace_space_image); + if(G.qual==LR_CTRLKEY) + activate_imageselect(FILE_SPECIAL, "REPLACE IMAGE", name, replace_space_image); else - activate_fileselect(FILE_SPECIAL, "REPLACE IMAGE", name, - replace_space_image); + activate_fileselect(FILE_SPECIAL, "REPLACE IMAGE", name, replace_space_image); break; + case B_SIMAGEDRAW: if(G.f & G_FACESELECT) { @@ -395,19 +391,11 @@ void image_buttons(void) } uiBlockSetCol(block, TH_AUTO); - uiDefBut(block, BUT, B_SIMAGELOAD, "Load", xco+=XIC,0,2*XIC,YIC, 0, 0, 0, 0, 0, "Loads image - thumbnail view"); - - uiBlockSetCol(block, TH_HEADER); - uiDefBut(block, BUT, B_SIMAGELOAD1, "", (short)(xco+=2*XIC+2),0,10,YIC, 0, 0, 0, 0, 0, "Loads image - file select view"); - xco+=XIC/2; + uiDefBut(block, BUT, B_SIMAGELOAD, "Load", xco+=XIC,0,2*XIC,YIC, 0, 0, 0, 0, 0, "Loads image - file select"); if (G.sima->image) { uiBlockSetCol(block, TH_AUTO); - uiDefBut(block, BUT, B_SIMAGEREPLACE, "Replace",xco+=XIC,0,(short)(3*XIC),YIC, 0, 0, 0, 0, 0, "Replaces current image - thumbnail view"); - - uiBlockSetCol(block, TH_HEADER); - uiDefBut(block, BUT, B_SIMAGEREPLACE1, "", (short)(xco+=3*XIC+2),0,10,YIC, 0, 0, 0, 0, 0, "Replaces current image - file select view"); - xco+=XIC/2; + uiDefBut(block, BUT, B_SIMAGEREPLACE, "Replace",xco+=XIC,0,(short)(3*XIC),YIC, 0, 0, 0, 0, 0, "Replaces current image - file select"); uiDefIconButS(block, TOG|BIT|4, 0, ICON_ENVMAP, xco+=XIC,0,XIC,YIC, &G.sima->image->flag, 0, 0, 0, 0, "Uses this image as a reflection map (Ignores UV Coordinates)"); xco+=XIC/2; |