Commit Graph

11221 Commits

Author SHA1 Message Date
Ton Roosendaal c4a2022fe1 Fix for makefile to enter interface dir 2008-01-07 19:06:15 +00:00
Ton Roosendaal 0729ba9646 New linking order for the 2.5 editor/wm libs 2008-01-07 18:35:06 +00:00
Ton Roosendaal 1363134dee Whole lot of changes.... here a shortlist:
- removed editors/area and put this all in screen
- added first python calls (note, a new c file for scriptlinks)
- added view3d editor callbacks (no drawing yet)
- added files in editors/interface

(Cmake and Scons has to be fixed, help welcome!)

- now areas/headers are being converted on file read
- note: previously saved 2.50 files will crash!!! (.B.blend)
- area regions are being drawn, first handler for cursor added (on edge)
- window duplicate and scale works correct for screen subdiv

Todos for me:

- need to fix things in syntax (function names) a bit still
- more operators for screen
- define how Context will work... still unresolved when it gets set
- docs!

Reviews of code structure is welcome!
There are also more todos now for others, but it can wait a couple of days
2008-01-07 18:03:41 +00:00
Nathan Letwory 1005d99ea5 * GHOST win32: make sure window gets repositioned to 0,0 when setting state to fullscreen (maximised, borderless) (Patch by Gladstone) 2008-01-05 13:56:40 +00:00
Nathan Letwory 30310a530a * make sure blender2.5 still compiles when WITH_BF_VERSE=1 2008-01-05 13:55:30 +00:00
Diego Borghetti c5488b943d Use XInternAtom by default.
I don't know the name of the "SGI Fast" atom, but this is only request
when blender start so i don't think that this make some "big" difference.

So just use plain X11 calls (thanks GSR for the info).
2008-01-04 23:17:08 +00:00
Chris Want a2b8986d1d Support for CMake 2008-01-03 22:20:45 +00:00
Diego Borghetti 350d754b16 Add support for GHOST_kWindowState* to Linux.
This add support for the different window state in Linux/X11.
Two think to take care:
	1) m_post_*
	2) motifFullScreen

1) This is only need if we want start a window in FullScreen or Maximized
state. The basic problem is that we can't set this property to a window
until it's really map, so i add a "post init" proccess for this two
special case (check the code for more info).

2) The Motif Hint isn't really a "FullScreen" mode, it's only a
"NO DECORATIONS" options, so if the window manager don't support WM-spec
this function only remove the border of the window, don't make it
FullScreen. A simple fix (hack) is check if the Window Manager support
WM-spec, in case that not, remove the decorations and move/resize the
window.

Test in different WM (gnome, kde, etc) and comment are welcome :)
2008-01-03 21:04:16 +00:00
Nathan Letwory c87785671c * make sure we have still a compiling GE with scons/mingw
* assist ideasman also for scons/mingw with ffmpeg enabled
2008-01-02 12:35:30 +00:00
Nathan Letwory 3c4f424fc8 * making sure removal of headers still has successful compile on win32 2008-01-01 22:10:39 +00:00
Campbell Barton a42e548e81 removed some more header files, made the game engine compile with removed header files, added includes to SConstruct files. 2008-01-01 19:20:49 +00:00
Ton Roosendaal 372ee054c0 Some notes for those who try to follow this :)
- first work on getting area/screen handling back
- added structure for where to put stuff, is still under
  review, wait a bit for docs?

Campbell is working on removing every bad level include from
sources, so we can safely rebuild the src/ directory.
2008-01-01 18:29:19 +00:00
Campbell Barton 58bf29e389 removed blenderdef.h, BIF_*, BDR_* and BSE_* header files (except for BIF_gl.h and BIF_glutil.h) 2008-01-01 18:16:10 +00:00
Ton Roosendaal 2df4ef711a More work on restoring Blender;
- brining back subwindow management
- removing more bad level stuff
2008-01-01 15:53:38 +00:00
Nathan Letwory 881fd0cb3a * make sure desktop is redrawn when coming out of GHOST_kWindowStateFullScreen 2008-01-01 14:04:09 +00:00
Nathan Letwory a11c4cd041 * silence more warnings 2008-01-01 11:14:25 +00:00
Nathan Letwory 7052576344 * some cleanup of warnings 2008-01-01 10:45:48 +00:00
Nathan Letwory af4678d421 * kill a warning 2008-01-01 09:28:29 +00:00
Nathan Letwory bcb14c2a0f * add fullscreen toggle operator (for testing fullscreen states in win32). hotkey is FKEY. Do test on other platforms, too. 2008-01-01 09:07:02 +00:00
Diego Borghetti 2d3bbe480c I got confused screenToClient with clientToScreen.
Sorry, i get the wrong value because a print the
wrong variable :/
2007-12-31 14:28:10 +00:00
Nathan Letwory 63d2208319 * fix include path (found by jensverwiebe) 2007-12-31 10:18:26 +00:00
Diego Borghetti 59751edadd Fix bad argument order to XTranslateCoordinates.
Take me a long time catch this :/ and i really don't know how this
work before, because clientToScreen always return bad values.
2007-12-31 06:19:04 +00:00
Nathan Letwory 8814476714 * make sure decoration is there when toggling away from GHOST_kWindowStateFullScreen to GHOST_kWindowStateNormal (win32) 2007-12-30 23:58:59 +00:00
Nathan Letwory 0f1e7db0b7 * also distinguish between maximised and fullscreen on GHOST win32.
* clean up some warnings (unused vars).
2007-12-30 23:09:33 +00:00
Nathan Letwory 1fec64a402 * revert my change to windowmanager move/size handling.
* made win32 ghost getClientBounds so that it returns area compatible with osx getClientBounds
  - if a window is non-fullscreen, substract decoration, since that'll be added by GHOST_WindowWin32()
* use SetWindowLongPtr/GetWindowLongPtr (instead of SetWindowLong) as it is compatible with 64bit windows.
2007-12-30 22:52:00 +00:00
Ton Roosendaal f25ce8d0ff Removed silly Global windowstate variable.
Result: windows open default with decoration (or as your default WM
defines). 

Todo: platform maintainers re-implement a cogent way for giving 
commandline options for defaults, and test how this can be stored even
2007-12-30 17:29:13 +00:00
Nathan Letwory a80b8352c6 * request by kaito - we're debugging 2.5 now more than using it anyway... BF_DEBUG = 'true' set by default. 2007-12-30 17:17:02 +00:00
Nathan Letwory 93058ac3b3 * handle WM_MOVE on win32 in GHOST
* change window move/size handling so that getWindowBounds gets x,y for window and getClientBounds gets w,h
2007-12-30 17:13:36 +00:00
Ton Roosendaal 1039bc26fb Windowmanager, ghost side:
- Added GHOST_kEventWindowMove event, for sending event that the
  window has moved
- Fixed GHOST_GetClientBounds() for OSX (get window rect)

Todos:
- add same event for X11 and Windows
- solve why ghost doesn't call client event-proc while scaling window
  (at least, not in osx)
2007-12-30 13:30:31 +00:00
Nathan Letwory 81035f6e21 * remove unneeded include (msvc barfs on it), now current tree builds with scons/mingw, scons/msvc and scons/gcc (linux) (and afaik also cross-compiles on linux for windows, with thanks to Debolaz) 2007-12-30 00:22:39 +00:00
Nathan Letwory 47f9c1fa5f * some additions and a removal in stubs.c (by elubie)
* mingw config update to link properly with ffmpeg
2007-12-29 20:47:39 +00:00
Ton Roosendaal dc98efaaa0 Accidentally removed a bit too many badlevel calls. 2007-12-29 19:16:04 +00:00
Nathan Letwory de039a899a * fix include paths in SConscripts for GE. 2007-12-29 19:04:45 +00:00
Ton Roosendaal 5307c07832 Badlevel call amount reduced to 21!
(worst was radio module)
2007-12-29 18:44:31 +00:00
Martin Poirier d870029748 Adding stubs for audiostream 2007-12-29 18:35:24 +00:00
Nathan Letwory 4c4abb0624 * add also SConscripts for editors.
I totally forgot those. Anyway, now all compiles and links (scons/mingw)
2007-12-29 18:05:24 +00:00
Ton Roosendaal da7208eab5 Ported over the bad-level cleanup from Chris for Sculpt. 2007-12-29 17:07:55 +00:00
Ton Roosendaal c27b65a255 Eh, comment should be on line above :) 2007-12-29 16:43:45 +00:00
Ton Roosendaal b2b5bb55a3 Crash on startup fix 2007-12-29 16:42:39 +00:00
Ton Roosendaal 97f144b5ff And now blender will link again! However, with a bad stub.c
That's going to be tackled.
2007-12-29 16:12:35 +00:00
Ton Roosendaal 878e09396e Now Makefiles should be uptodate.
Also fixed old error in make for nodes, it didn't enter subdirs
correctly?

Left: 63 unresolved symbols on linking...
2007-12-29 14:56:16 +00:00
Ton Roosendaal 6407b5f703 Cleanup work for 2.5 branch. Target is to get it compile and link
still!
2007-12-29 14:31:26 +00:00
Nathan Letwory 1f78baa0f7 * remove obsolete include/ 2007-12-29 10:47:16 +00:00
Nathan Letwory c2acbef851 * added SConscript for windowmanager
* tweak other SConscripts for editors/include
* commented BKE_bad_level_calls.h in writeframeserver.c - please check it doesn't break make builds

This compiles until final linking, which still fails.
2007-12-27 22:16:54 +00:00
Kent Mein 6c7b60668b (this is for blender2.5 again)
Modified these three to include blender/editors/include instead of 
blender/include maybe not needed at this stage but I'm guessing its good
to do this.

Kent
2007-12-27 21:35:25 +00:00
Nathan Letwory e735a6b4c9 * remove src and python SConscript references 2007-12-27 20:29:29 +00:00
Kent Mein 1be207fe08 Small tweaks to blender2.5 Makefiles...
commented out srclib and pythonlib since its not there
added new include dir for window stuff so things could find headers..

Kent
2007-12-27 19:49:22 +00:00
Ton Roosendaal 25135a201b - removing conflicts in svn merge (didnt notice)
- adding more Makefiles
2007-12-24 19:13:04 +00:00
Ton Roosendaal 8c91939824 Last commit to get things on level I ended with during code holidays
(which was not even a working blender yet!)

Todo for dec 26th: finish the task:
- remove entire src/ and python/ dirs, and get blender to compile and
link again, using a new stubs.c temporary

(note; bad level calls stubs.c was also removed, this was a MESS!)

Then there's the task
- solve the bad level calls (can use help with that!)

So then I can do:
- move the screen code and subwindow code from old src/ to new editors
module and windowmanager

More will follow on mailing list, and wiki.
Merry xmas!
2007-12-24 18:58:12 +00:00
Ton Roosendaal 463cf8e332 Part 4 of the event refactor branch: all changes in existing files,
Makefiles especially, and of course the windowmanager DNA!
2007-12-24 18:53:37 +00:00