Commit Graph

751 Commits

Author SHA1 Message Date
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
bb79e92225 - Added ICON_MENU_PANEL 2003-10-15 16:28:57 +00:00
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
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
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
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
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
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
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
9b343a9f76 - cleared a flag in reading Panels back, could cause errors... 2003-10-14 20:13:51 +00:00
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
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
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
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
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
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
1bc0f43da0 Getting rid of warnings in NMesh.c, should fix compile problems. 2003-10-12 23:41:33 +00:00
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
f729cbdf52 - added radiobuttons
- cleaned unused calls and defines
2003-10-12 19:46:17 +00:00
e4d86c85c3 Added updates to reflect the vertex grouping changes in NMesh.c 2003-10-12 17:15:51 +00:00
c4d9d0dc30 Add vertex group support... 2003-10-12 16:23:39 +00:00
642e27f3e9 Added vertex grouping support 2003-10-12 16:14:03 +00:00
572661b9b8 Added vertex group support... 2003-10-12 16:13:12 +00:00
a7fe79a142 Removed spaces - test commit 2003-10-12 16:03:52 +00:00
5f6d8e59c4 - Converted lamp buttons and world buttons, they're pretty!
- menu auto open now is user preset, including 2 thresholds you can set
- hilites of pulldown menus were not cleared, fixed
- changed F4 key to logic. F5 will show lamp buttons, when lamp active
- in 'shader context' buttons, clicking camera will show world
- Converted lamp buttons and world buttons, they're pretty!
- menu auto open now is user preset, including 2 thresholds you can set
- hilites of pulldown menus were not cleared, fixed
- changed F4 key to logic. F5 will show lamp buttons, when lamp active
- in 'shader context' buttons, clicking camera will show world
2003-10-12 13:58:56 +00:00
a9c694d6c5 - rewrote the panel align heuristics.
leftmost/top panel now always at same location, so switching button
  'main contextes' works consistantly
- fixed some more events to make sure Panels update when editing
- preview render panel now is 320 wide, just for getting the space filled!
- error in preview render matrix, which caused unpredictable drawing errors

Bedtime!

-Ton-
2003-10-12 00:42:09 +00:00
06f29795df - error in shader buttons... when no material on object, it draws the
tabs really weird...
2003-10-11 22:32:09 +00:00
0ce9abf41d - converted full materialbuttons...
EEEK! It doesn't look well yet! Hopefully it inspires others to come
  with great solutions.
- the material buttons have 6 panels, three of them merged
- some drawing errors in preview render
- made settings for new Material that makes sense for Flares
2003-10-11 22:00:30 +00:00
e32a73f69e Fixing header*** files to use tabs instead of spaces (was my fault, sorry). 2003-10-11 20:56:26 +00:00
95ce9b93be - fixes in material buttons (still tentative design!)
- cutoff of text in menus and buttons now even better!
- size of pull-up menu buttons is corrected
- pressing at 'menu button' had a delay, fixed

General: the 'outo open' wont become default, it will be removed or
become a user option. I am experimenting with it to get it all OK.
The 'auto open' for secondary levels in pulldowns will remain there

Check the latest state of pull-up menu buttons. for example the mode
selector: you can use such buttons in three ways,

- click on it, it opens and you can select
- click-and-hold-mouse, move, release at item you want to select
- move mouse over button, wait, it opens

The 'auto open' and its time threshold both can be user settings.
2003-10-11 18:15:07 +00:00
a153a7616b - two more panels for material buttons. work in progress.... 2003-10-11 14:12:14 +00:00
b8be7337f0 - small fix, number buttons strings were cut off like sliders... 2003-10-11 11:28:24 +00:00
f437176ac2 - improved drawing of slider button
- strings for slider button are cut off correctly
2003-10-11 10:57:38 +00:00
7913a4a009 - added method to have a preview render in panel
- increased size of preview from 100 to 125 pix :)
- put back header buttons for databrowse, but they need to move to
  buttonswindow itself
2003-10-11 00:21:05 +00:00
e799e39e7f - Added all the stuff of the last week to the MSVC 6.0 project file.
- Added include BIF_gl.h to  header_imasel.c (I think it needs that :)
2003-10-10 23:20:01 +00:00
c957bba8ab - fixed bug in aligning different sized panels vertically 2003-10-10 21:14:49 +00:00
c536fe934f - another fix, now for unix systems with 'sloppy focus'.
the mainwindow is set active again after rendering, without
  destroying the (optional) dispview image
2003-10-10 20:50:21 +00:00
de5566313c - fixed error in making main window active again after rendering, it didnt
work...
2003-10-10 20:15:11 +00:00
ee70acd287 - small little unitialized variable error... 2003-10-10 17:47:54 +00:00
0d03929b9b Another huge commit!!!
First, check on the new files, which are listed below.
The new butspace.h is a local include, only to be used for the buttons
drawn in the buttonswindow.

- editbuts, animbuts, gamebuts, displaybuts, paintbuts,  work now
- i quite completely reorganized it, it's now nicely telling you what
  context it is in
- sorting error in panel align fixed (tabs were flipping)
- align works correctly automatic when you click around in Blender
- editsca.c renamed to buttons_logic.h
- button names are truncated from the right for allmost all buttons
  (except text buttons and number buttons)
- while dragging panels, you cannot move them outside window anymore

And of course fixed loads of little bugs I encountered while testing
it all. This is a version I really need good test & feedback for.

Next step: restoring material/lamp/texture/world
2003-10-10 17:29:01 +00:00
952cd8260e - adapted startsize for osx version to match powerbook (768 high)
- add patch in prevsize routine (editscreen.c) to subtract apple
  top header, this allows 'fullscreen' with windowbar behind topbar.
2003-10-10 13:36:38 +00:00
a044f0bb2e Splitting source/blender/src/headerbuttons.c in smaller header_***.c files.
The original headerbuttons.c is for now kept as headerbuttons.txt

The included .h files were updated to only include needed ones in each file.

Makefile.am (for the autotools build) was updated.  Didn't test with original makefiles.
Other build systems will of course need to be updated.
2003-10-10 03:16:32 +00:00
6f34249924 - increased default windowsize for OSX a bit, to match better a good
layout. Old size was 800x600, just not too nice
  New size is 900x768. this default small size is for older macs that
  dont allow full size 32 bits opengl windows... silly er! :)
2003-10-09 12:20:14 +00:00
416b110f90 - brought back hilites in buttons when mouse-over
- automatic pulldown opening can now be controlled ( user setting?)
  it has two thresholds:
  - when no menu was opened before, it waits A milliseconds
  - when (in the same block a menu was opened, it waits B millisec.
  Currently A= 0.4 sec, B= 0.1 (or so)
- 3d window header; brought back old drawtype menu (test, compare!)
- another test: the old menubutton doesnt work anymore with hold-mouse
  only, you can also use it as the other popups (old method still works)
- proposal; all buttons that pop up a block, get special drawtype (arrows)
2003-10-07 22:55:16 +00:00
e889b375bd - forgot one event code in render...
- fixed the () in the && || code, typo... <blush>
2003-10-07 19:21:37 +00:00
dcf9213a48 - if( a || b && c) is (a || (b && c))
and not the other way! thats what you get with cleaning warnings. :)
2003-10-07 18:42:37 +00:00
f234b44d47 - another huge commit! read this!
- removed src/buttons.c and include/BIF_buttons.h
- added src/buttons.txt, which is the old buttons.c for review and adding
  code to new panels structure

- changed internal events to match new buttonspace structure
- added tabs for new shading group of buttons
- removed loads of little warnings, -Wall now compiles src/ almost without
  error (hint: setenv NAN_QUIET to see it all better)

Now I'm ready to do actual buttons -> panels conversion. I will do the raw
versions first, others then can cleanup
2003-10-07 18:24:02 +00:00
39b1ceb669 - changed header from buttonwindow into new type
- changed meaning of F4-F10 keys (as compatible as possible, but we need
  something!) check UI design doc for proposal
- made new call for switching direction of buttons in Y, for when pulldown
  moves direction
- cleaned up all redundant manual switching code from headerbuttons.c
2003-10-07 12:49:39 +00:00
c2af7afe58 - removed debug variable from 'automatic check of view2d'... so now it
keeps zooming within limits by default
2003-10-07 11:24:48 +00:00