Commit Graph

777 Commits

Author SHA1 Message Date
Stephen Swaney
c19d84f89e Fix unchecked pointer reference when adding sitedirs to sys.path.
This is a bugfix against the 2.28c release.
2003-10-19 06:26:32 +00:00
Joseph Gilbert
56ad0d31b9 Added support for returning the normal of a NMFace 2003-10-19 03:15:43 +00:00
Ton Roosendaal
f420f87610 - added Theme for File Window
- made grid drawing using the main theme color
- was annoyed with the primitive grid... so coded something that allows
  zooming in and out a 100fold without losing gridlines
- brought back 'NKEY' for mesh editmode
- added to this a 'median' option; when more vertices selected you see
  the average coordinate. works nice when inputting values as well
  (todo: make this for other editmodes)
- renamed the 'NKEY' panel to 'Transform Properties', also fixed in
  pulldown menu.

I am off for the rest of the day. More committing fun tomorrow!

-Ton-
2003-10-18 12:21:41 +00:00
Matt Ebb
b6d30dddd7 A few small tweaks to the panel drawing 2003-10-18 12:02:03 +00:00
Matt Ebb
43243009b7 - Added ICON_PANEL_CLOSE 2003-10-18 07:37:37 +00:00
Matt Ebb
362d2470a1 - Updated panel style based on funboard feedback
- Added white 'close panel' icon ICON_PANEL_CLOSE to blenderbuttons
2003-10-18 07:36:46 +00:00
Matt Ebb
23189d1ef0 - A few small wording edits
- Added Copy/Pase/Paste Flipped pose to the Armature menu
2003-10-18 03:41:22 +00:00
Ton Roosendaal
a9af685011 - further work on theme colors:
- panels work
  - ipo window done
  - buttonswindow done

Please be warned that saving  Themes now wont work... it will also save
BLACK for all uninitalized colors... so dont panic when you see weird
things, just go back the default theme and copy a new one.
2003-10-17 23:18:18 +00:00
Roel Spruit
d622706883 Preliminary work on faceloop selection and faceloop cutting. Commiting in steps to prevent Ton from sneaking in between me! :D
some small things to fix:

- cutting on 1 face doesn't work
- options now under shift/ctrl R, they will be under a K menu that will contain DetectiveThorn's Knife tool too.

Roel
2003-10-17 19:59:32 +00:00
Ton Roosendaal
f948e31bac - forget to mention: Panel (3d win) header and back color is part of
Theme now. Try black transparant... neat. :)
2003-10-17 19:06:13 +00:00
Ton Roosendaal
58a0811ad9 - fixed bug in windows with extreme small height... it didnt accept
input
- was needed for usage of this windowtype (headerless) as 'timeline'
  dragger, which was supposed to be...
- as extra I fixed 'home', it sets start/end frame for sound window
- at mouselocation the current frame or time is printed
- rightmouse menu switches seconds/frames (should be in header as option...)
- displaybutton 'frs/sec/' updates soundwindow too

So, its not perfect... but try opening a tiny high headerless audio
window on top of buttonswin or somewhere full width. not bad...
2003-10-17 19:03:53 +00:00
Ton Roosendaal
8ce5ece950 - fixed reopen last file (in file pulldown menu)
- fixed delay in drawing active item in pop menus...
2003-10-17 16:24:10 +00:00
Ton Roosendaal
f8671b2cb2 - fixed AA font drawing in view3d Panels... forgot to clear a pixelzoom 2003-10-17 16:17:21 +00:00
Ton Roosendaal
fe925541a2 - fatal error: when reloading .B.blend (CTRL+X) the themes were not freed. 2003-10-17 15:20:13 +00:00
Ton Roosendaal
e78bb262c2 - fixed redraw for copy button in new themes editor
- typo in include DNA_ListBase.h... has to be DNA_listBase.h
2003-10-17 15:12:45 +00:00
Ton Roosendaal
3583d2fdeb - color for 'Panel' was not defined in resources yet... :) 2003-10-17 14:18:53 +00:00
Ton Roosendaal
8380bc9cab - one button was invisible... 2003-10-17 14:11:17 +00:00
Ton Roosendaal
0321602b65 - The basic layer for Themes in place!
- currently only implemented for 3d window
- create as many themes you like, and name them
- default theme is not editable, and always will be defined at startup
  (initTheme)
- saves in .B.blend
- themes for spaces can become local too, so you can set individual
  3d windows at theme 'Maya' or so. (to be implemented)
- it uses alpha as well...!

API:
This doesnt use the old method with BFCOLORID blahblah. The API is copied
from OpenGL conventions (naming) as much as possible:

- void BIF_ThemeColor(ScrArea *sa, int colorid)
  sets a color... id's are in BIF_resources.h (TH_GRID, TH_WIRE, etc)

- void BIF_ThemeColorShade(ScrArea *sa, int colorid, int offset)
  sets a color with offset, no more weird COLORSHADE_LGREY stuff

- void BIF_GetThemeColor3fv(ScrArea *sa, int colorid, float *col)
  like opengl, this gives you in *col the three rgb values

- void BIF_GetThemeColor4ubv(ScrArea *sa, int colorid, char *col)
  or the one to get 4 bytes

ThemeColor calls for globals (UI etc) can also call NULL for *sa... this
is to be implemented still.

Next step: cleaning up interface.c for all weird colorcalls.
2003-10-17 14:02:08 +00:00
Ton Roosendaal
00cf36d6a5 - accidentally removed 2 lines in this file that made previewrender not
showing up...
2003-10-17 00:49:59 +00:00
Ton Roosendaal
7a7956509d - fixed edge selecting... :) 2003-10-16 20:36:29 +00:00
Ton Roosendaal
1f226c943b - bone selection armatures fixed! 2003-10-16 16:13:01 +00:00
Ton Roosendaal
77b37c9927 - fix for drawing buttons in fileselectors, it used an old exception
and special 'EMBOSSF' drawing function. Now complies to standard.
2003-10-16 12:03:03 +00:00
Ton Roosendaal
a7cd8b5951 - fixed correct drawing of frontbuffer vertices... it still gives some
nice increased interactivity when selecting in slow drawing situations.
  nevertheless, can be worked on later once, to make it less hackish. :)
2003-10-16 09:56:23 +00:00
Ton Roosendaal
5d1438ad96 - fixed editing vertices again!
I had to clean up very old calls to switch matrices for 3d windows.
To make it more clear, I've introduced defines for the infamous persp()
function:

persp(PERSP_WIN);  sets matrices at pixel level window
persp(PERSP_VIEW); restores matrices back to 3d drawing
persp(PERSP_STORE); only called once, to store correct matrices

I will now check on frontbuffer drawing of vertices... it's very doubtful
if it's used still correctly, was only meant for visual speed in the
early nineties you know. :)
2003-10-16 09:39:19 +00:00
Ton Roosendaal
c7618783fb - further work on view3d panels:
- you can close them (x icon) or press ESC
- option to open panel at mouse location (try Nkey)
- using 'collapse' (triangle icon) stows header in bottom
- opening again restores at old location
- dragging panels or zooming clips nicely with window

evaluate: an 'auto close' when mouse goes outside panel

Warning: vertex selecting still broken! :) It's 2 am now, bedtime...
2003-10-16 00:17:24 +00:00
Ton Roosendaal
10333bd1d3 - removed all #include "interface.h" from files. this is a local/internal
include only (use BIF_interface.h instead)
- split up interface.c in two files: NEW: interface_panel.c
- removed the temporal text files

WARN: FIX AUTOMAKE AND MSVC!
2003-10-15 19:23:54 +00:00
Ton Roosendaal
478f61563a - fixed drawing errors in constraint panel
- join 3d window could crash... unchecked pointer in interface.c
- setting align in buttonswin caused stripes to draw in view3d-panels
- fixed events for new 'background and view settings menu'
2003-10-15 17:41:40 +00:00
Matt Ebb
bb79e92225 - Added ICON_MENU_PANEL 2003-10-15 16:28:57 +00:00
Matt Ebb
3f9b4439b1 - Added icon to indicate floating panels in menus: ICON_MENU_PANEL
- Added it plus tiny edits to view3d menus
2003-10-15 16:28:00 +00:00
Ton Roosendaal
44344b3501 - More code for handling Panels in other windows.
Added the 'Nkey' object menu as Panel now. Live updates, whoohoo!

closing them, minimizing, etc will follow. first bring back vertex
selection :)
2003-10-15 16:01:08 +00:00
Matt Ebb
669a570a73 - Various cosmetic fixes to menu buts in headers, alignment etc.
- Make text fields' text black when deselected, white when selected (editing)
2003-10-15 15:23:58 +00:00
Matt Ebb
c2c7bb6648 - Modified drawing of ICONROW controls to be clearer,
more consistent and logical. (ICONROWs haven't
scrolled left/right in years!

More detailed tweaking of headerbuttons positions can come when
more menus are finished

- added text labels to the drawtype menu in 3d view header
2003-10-15 13:47:15 +00:00
Ton Roosendaal
3bf09a5447 - fixed warnings in drawmesh.c
- with mouse in Panel, padplus/minus defines scaling of Panel... dunno if
  this is the correct key. thats for later to worry!

Forgot to mention in previous commit:

- Panels now have a uiSetPanelStyle() API call. Is under construction...
  now for test purposes mostly.
2003-10-15 12:51:01 +00:00
Ton Roosendaal
6480956c58 - expanded internal windowmanager that it allows button panels in any
window (type)
- each SpaceData struct (not the window!) can get 'block handlers'
  assigned, basically event codes that invoke drawing button panels.
- this is saved in files, and Panels behave in any window like it does now
  in buttonswindow
- it also means that a 'space window' should leave with a matrix set for
  buttons level
- try it in view3d header menu, 'view'->'backdrop'. this opens the old
  viewbuttons
- it all works non blocking! instant updates of viewbuttons visible in
  3d window now.

Not done yet:
- checking and fixing frontbuffer drawing (select a wireframe draws over)
- temporally vertices cannot be selected, is my next project
- closing or hiding Panels...
- styling stuff... i committed for others to review as well.

Have fun. this is certainly a huge improvement over the old viewbuttons!
2003-10-15 12:26:26 +00:00
Ton Roosendaal
0c1bad34c7 - another improvement in button panels align: after 'home' it puts the panels
always in the left/top corner. it did a centre first...
- fixed color print error with AA fonts in textbuttons
2003-10-14 21:01:01 +00:00
Ton Roosendaal
9b343a9f76 - cleared a flag in reading Panels back, could cause errors... 2003-10-14 20:13:51 +00:00
Matt Ebb
5466b63463 Modifications to buttons drawing code:
- colour tweaks to buttons and menus
- improved method of drawing triangles on menus and numbuts
2003-10-14 16:38:48 +00:00
Jiri Hnidek
d26e8b1a04 - Lattice as parent of Metaball affect deforming of polygonized implicit surface
- fixed compile problem at IRIX with buttons_editing.c (look at JWalton's message in mailing list) ... sorry for mixed commit :-(
2003-10-14 12:09:57 +00:00
Ton Roosendaal
4629da0ffa - fixed threshold for merging closed Panels (was not sufficient narrow)
- in 'Horizontal Align' mode, Panels now close as a vertical bar
- switching align modes, also switches how closed Panels are drawn
- opengl nor ftgl support vertical string drawing... so for now it only
  draws the capitals of the Panel title in a horizontal collapsed header
2003-10-14 10:45:35 +00:00
Ton Roosendaal
44b32134ae - converted constraint buttons, they're a Panel in Object main menu
- converted sound buttons, part of Scene
- special request Matt: headers of windows 2 pixels higher! (test)
- special request Stefano: icons instead of menu for buttons-header
- 'data browse' buttons now almost all in buttonswindow.
- almost all buttons have been panelized now.

next stage: cleaning up usage of color in Blender, to allow presests!
2003-10-13 23:46:08 +00:00
Ton Roosendaal
5caf1e6bfd - the 'activitate window' call in mainloop, which was removed to save
performance, gave display errors in some occasions.
  now its moved to the main drawing loop, which is not for each event
  luckily.
  tested at windows by ztonzy
2003-10-13 19:36:26 +00:00
Ton Roosendaal
ceb26d2a4e - experiment: changed drawing style of Panels to minimal and fully
transparant.
- converted the Texture buttons, they're nice too!
2003-10-13 14:57:43 +00:00
Alexander Ewering
5c2005cf06 Robert (DetectiveThorn) Wenzlaff's Knife subdivide tool. See previous
message on Bf-committers for description.
2003-10-12 23:43:26 +00:00
Willian Padovani Germano
1bc0f43da0 Getting rid of warnings in NMesh.c, should fix compile problems. 2003-10-12 23:41:33 +00:00
Ton Roosendaal
12236bcdfa - restored scriptlink buttons
i tried to find place for it in the other menus, like material, object,
  camera, etc. But thats hard... now it's just one nice Panel, without
  the idiot headerbuttons icons!
- changed drawing of 'tabbed' Panels. The old method takes too much space.
  hint from xype! Dragging tabbed Panels can be done with the right hand
  circle. designers are welcom to tweak this.
  main reason: dragging is not meant to be happening a lot... pressing tabs
  is more important.
2003-10-12 22:26:09 +00:00
Ton Roosendaal
f729cbdf52 - added radiobuttons
- cleaned unused calls and defines
2003-10-12 19:46:17 +00:00
Joseph Gilbert
e4d86c85c3 Added updates to reflect the vertex grouping changes in NMesh.c 2003-10-12 17:15:51 +00:00
Joseph Gilbert
c4d9d0dc30 Add vertex group support... 2003-10-12 16:23:39 +00:00
Joseph Gilbert
642e27f3e9 Added vertex grouping support 2003-10-12 16:14:03 +00:00
Joseph Gilbert
572661b9b8 Added vertex group support... 2003-10-12 16:13:12 +00:00