Commit Graph

43 Commits

Author SHA1 Message Date
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
c957bba8ab - fixed bug in aligning different sized panels vertically 2003-10-10 21:14:49 +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
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
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
ab935a5a7d - at designer request: move closed button of panel to the left. 2003-10-06 22:17:57 +00:00
2045428809 - fixed bugs with Panel.. when you merge them while they had tabs,
some calculations went wrong.
2003-10-06 21:53:03 +00:00
a14059c5f3 - fixed error (OSX only i think) that didnt make window/area active when
startup
- made nexted pulldowns easier to enter with diagonal mousemovement.
  coded a heuristic like:
  - while mouse moves in good x direction
  - while mouse motion x is bigger than y motion
  - while distance to center block diminishes
  - only for 1 second
  Works nice, but i left debug prints commented in for those who'd like
  to tweak it.
2003-10-06 14:16:31 +00:00
d5dbaf726a - pulldowns and 'BLOCK' buttons now open automatic, when mouseover
without moving for 0.25 second. Also works for sublevels in pulldowns.
- removed hacks from mainloop, which caused setting the main window and
  active subwindow for each event (including mousemove).
  WARN: test for all OS's that no events get lost, and active window focus
  is OK. For OSX it works nicely
- reduced load for uibuttons with 50%....
2003-10-06 10:33:01 +00:00
5ebb3aa7ff - fixed more menu colors
- left in patch for sgi, seems to work there....
  would like some reports from nvidia windows users though
2003-10-05 21:00:01 +00:00
336afad8d6 - added little original feature to panels: TABS! :)
while dragging you can merge panels, or while dragging on a tab you
  can unmerge them.
2003-10-05 13:19:08 +00:00
842bb449c5 huge commit, sorry!
this is part 1 of the UI makeover. It has:
- menu system from Matt integrated
- buttons drawing from Matt
- generic button panel system implemented
- converted displaybuttons (not the rest yet)
- cleaned up a lot in drawing spaces itself, to make it aligned and pixel exact.
- cleaned loads of little compiler warnings, protos...

still a lot of work needed, will all be in next week i hope!

(warn: 2 new c files! butspace.c and buttons_scene.c)
2003-10-04 20:35:50 +00:00
e2a702a7b4 - Fixed bug #440, an error resulting from work at optimizing 'glflush'
calls.

  Added a comment in the code why it happens... its about safely
  escaping from buttons/blocks loops before loading a new file!
2003-08-07 14:08:41 +00:00
932e9e8316 - new standard .b.blend file which has changes:
- the plane has a material
  - material has texture
  - scene has a world
  - default set 'draw faces' and 'draw edges'

that last one for the noobies, to prevent them complaining!

- added a note in interface.c about the new api doc

- forgot to commit blender.c, for setting the G.f from the file
  (this will save faceselect and vertexpaint mode too)
2003-07-22 19:49:47 +00:00
a851bf1b9c - fixed error message at OSX in interface.c, added a load of comments there
to understand the central loop better.
2003-07-18 18:32:57 +00:00
Chris Want
fbdc3ca860 Was doing #include "FTF_api.h" instead of #include "FTF_Api.h" 2003-07-16 04:53:15 +00:00
288f37903b Was including BMF_api.h instead of BMF_Api.h
Kent
2003-07-15 14:43:18 +00:00
0ed095bbb1 Removed the old INTERNATIONAL Drawstring constructions.
These are now handled through BIF_DrawString(...) in src/language.c,
where it chooses between the old BMF and the new FTF DrawString.
2003-07-14 13:48:44 +00:00
ad6ddb4689 * cursor now moves with arrow keys again for OSX
* this apple method to do it generates unwanted events, so it could not
  be used for the menu mouse-move trick. this is #ifdeffed
* we should re-evaluate if this mousemove should remain in blender...
  there are better ways (scrolling contents of pup)

* plus: removed warnings from drawview.c
2003-07-10 20:34:41 +00:00
5aa8ac36a1 * F11 now nicely pops/pushes a window again
* works (for OSX) only with the commit I did in Ghost 1 minute ago!
* needs to be checked for all other OS's.
2003-07-09 16:02:39 +00:00
e45e145453 * fixed two more subloops in button drawing for new optimized usage of
glFinish(). Textbut and the 'But' (render for example) didnt work proper.
2003-07-08 10:15:42 +00:00
b4b10dfff8 * removed the global uiFrontbuf from interface.c (and python, it was used
there)
* replaced with nice local (uiBlock) storage of what goes on in drawing.
  it now only calls a glDrawBuffer() and glFinish() when it is actually
  needed

Result: interface drawing in general is speedy again, especially for gfx
cards that dont allow frontbuffer drawing, and copy stuff to the frontbuf
with a glFinish() call.

Needs to be tested on all platforms... report to me when you see problems
like menus not drawing correctly, tooltips not drawing or not disappearing,
etc.
2003-07-07 15:50:44 +00:00
e4bbc590a4 - added (old supposed) option for uiDefBut to define the amount of digits
in NUM or NUMSLI buttons. It's the last but one argument...

  i really have to put the interface.c API doc back!!! :-)

  (get probably killed for the fact that i have it)
2003-06-21 20:24:42 +00:00
7c0712fb7f - removed 'gldrawbuffer()' and 'glflush()' calls from main buttons loop.
these calls were done without anything actually happening, for each
  mouse move, and caused quite some slowdown at OSX.
  Might help the other platforms as well. Check it by just moving your mouse
  around, over window edges, buttons, etc. Especially Radiosity buttons
  were horrible slow in a large window

  Please be aware that the above calls cause a swapbuffer at OSX!
2003-06-20 12:49:36 +00:00
8ffd18a56c - fixed timer-wait for tooltips. this annoyed me such a long time!
now the tooltip waits 0.3 seconds before popping up.
2003-06-11 19:38:35 +00:00
d40cb3da9f fixed minor text color issue. 2003-05-13 10:34:33 +00:00
950504c016 added Matt Ebb's new windowtype button 2003-05-10 10:36:14 +00:00
1e7e0633cf modified tooltip heights 2003-05-09 11:39:37 +00:00
d53ca699c9 fixed ui_draw_but_TOG3 for correct coloring non-ftgl texts. 2003-05-08 13:44:16 +00:00
d279fc6c45 pulldown menus now scale according to textwidths 2003-05-07 03:00:11 +00:00
079e41fe10 fixed some interface font issues. 2003-05-06 12:51:04 +00:00
b43473e425 Multilingual interface support added.
All modifications are behind compileflag INTERNATIONAL,
and affect these two directories; source/blender/src and
source/blender/ftfont.

Thanks to philipp, a new utf8towchar() function is added
to Shizu's work, which fixes the international support for
OSX. It also makes the iconv library obsolete. This means
all translation files (blender.mo) need to be 'recoded' to
UTF-8, and language support in the fileselect window and
the text editor is not possible. Iconv might be added in
the future to enable these features.
2003-05-03 12:17:11 +00:00
9174db096b LAST of the c code comment translations... hooray!
Might be possible I mised an .h or so, just notify me in that case.
2003-04-30 13:22:26 +00:00
702880df55 Update things to use blender_test_break() vs MISC_test_break() and
remove use of blendertimer.h
2003-03-24 16:37:08 +00:00
Chris Want
8956af99ab gcc 3.2.1 seems to have problems casting a double like 32772.0 to
a short, so we cast to an int first, then to a short when a button that
modifies a short value is pressed. (Allieviates the bug where the
Unified Renderer button modifies the values of a bunch of other buttons).
2003-02-15 04:18:22 +00:00
768603383e added iff, lbm and bmp filetypes to the fileselect. added loading of bmp images,
modified drawing of the imageselect, and a bugfix for popups.
2003-01-29 11:28:15 +00:00
3bc9dda799 added the DELKEY stuff...
else if(dev==DELKEY) {
                                if(but->pos>=0 && but->pos<strlen(str)) {
                                        for(x=but->pos; x<=strlen(str); x++)
                                                str[x]= str[x+1];
                                        str[--len]='\0';
                                        dodraw= 1;
                                }
                        }

Kent
2002-12-21 10:14:03 +00:00
d0e346d544 updated .c files to include:
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

Just need to finish cpp files now :)

Kent
--
mein@cs.umn.edu
2002-11-25 12:02:15 +00:00
Hans Lambermont
12315f4d0e Initial revision 2002-10-12 11:37:38 +00:00