UI cleanup work;

Proportional edit:

- Proportional mode added to header as button/menu. Including new option
  to have only connected geometry influenced.
- Added icons for proportional & proportional modes
- Make proportional edit data part of Scene, so all gets saved.
  The Global flag G_PROPORTIONAL was removed
- Made sure #defines get used properly, also tweaked order for proportional
  so it starts with regular 'smooth' by default.
- Use ALT+O in editmode to switch to new proportional 'connected' mode

Other UI stuff:

- in EditMode, the layer buttons get hidden... the amount of icons in
  3d header grows to fast. :)
- made less ugly icons for the Manipulators. Still can be better.
- Added alpha-filter for pre-processing Icon-image, giving nicer display
  of icon-antialising on dark or bright backdrops
- disabled Manipulators when in editmode, and current layers don't show
  the edited data.
- Added the value used to define Normal size (editmode draw) in Scene too,
  so it gets saved.
This commit is contained in:
2005-05-03 10:54:42 +00:00
parent cdca939c2c
commit 422b69fe1e
21 changed files with 1471 additions and 1399 deletions

View File

@@ -1863,7 +1863,7 @@ static int ui_do_but_ICONTEXTROW(uiBut *but)
width+= 30;
if (width<50) width=50;
ypos = 0;
ypos = 1;
/* loop through the menu options and draw them out with icons & text labels */
for(a=0; a<md->nitems; a++) {
@@ -1877,7 +1877,15 @@ static int ui_do_but_ICONTEXTROW(uiBut *but)
ypos += 20;
}
}
if(md->title) {
uiBut *bt;
uiSetCurFont(block, block->font+1);
bt= uiDefBut(block, LABEL, 0, md->title, 0, ypos, (short)width, 19, NULL, 0.0, 0.0, 0, 0, "");
uiSetCurFont(block, block->font);
bt->flag= UI_TEXT_LEFT;
}
block->direction= UI_TOP;
ui_positionblock(block, but);