Commit Graph

12858 Commits

Author SHA1 Message Date
Axel Dörfler
e8fbd2527f Now checks if the window is out of the screen frame and move the window
back into it, if necessary.
Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 05:15:26 +00:00
Axel Dörfler
507ff76a65 Added empty stubs for shutdown_media_server() and launch_media_server(),
so that we could theoretically run the Media preferences app.
IMO, these belong into libmedia.so; they should be rarely needed with
the new media kit, anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 04:33:39 +00:00
Axel Dörfler
da7bead8c6 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 04:11:14 +00:00
Axel Dörfler
32d0dbbbf8 Made command line evaluation more robust, it now also accepts a "=" as separator between attribute name and value.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 03:44:18 +00:00
Axel Dörfler
ffa1bb09e9 Now creates the People indices on all mounted volumes on startup (like R5's People).
Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 03:40:21 +00:00
Axel Dörfler
33c16998cd Removed unused constants.
People is now almost font-sensitive (only the width is fixed).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 03:29:10 +00:00
Axel Dörfler
779f323d92 Big cleanup.
Now searches all volumes for people groups.
The only thing left is to make "URL:" and "E-mail:" clickable.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-15 03:18:00 +00:00
Axel Dörfler
f32d9ec555 Added some more preferences apps to the image.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 23:43:42 +00:00
Axel Dörfler
e7281ecba6 Fixed a bug in next_argument(): it could read after the terminating
null byte, and add junk as arguments. Thanks to Korli for testing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 23:40:43 +00:00
Axel Dörfler
6a27b3b363 Renamed source files for LinkReceiver and LinkSender to match their class names.
Headers will follow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 23:10:39 +00:00
Axel Dörfler
b7e162e93a We definitely don't need the FIX_FOR_4_6, whatever that was about.
Also restored the original locations of the class members I broke before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 22:12:32 +00:00
Axel Dörfler
62bb447ee0 In order to be binary compatible, one should not change the location
of private members if the class has friends (and BWindow has a lot of
them...), stupid Axel!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 22:04:29 +00:00
Axel Dörfler
0cb92588a8 Made sLocker static, as originally intended.
If there is no be_app when the AppServerLink is created, it now
falls into the debugger (maybe only for now?).
Removed some debugging cruft.

BTW I changed the standard app_server resolution to 800x600 by
intention - at least for testing this is much more appropriate,
and can be reversed later again.
FWIW I think we should use 1024x768 as a standard or whatever
is the native display resolution. Use 640x480 as a fall back
only in safemode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 21:37:03 +00:00
Axel Dörfler
f395db3740 Updated a comment I forgot before.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 21:31:30 +00:00
Axel Dörfler
dd10337fd0 Renamed BAppServerLink to AppServerLink, BPortLink to PortLink, LinkMsgReader
to LinkReceiver, LinkMsgSender to LinkSender, and put everything into the
BPrivate namespace.
Made AppServerLink a cheap object - it will use the applications receiver/sender
and not create its own buffers.
Fixed broken communication stuff here and there (mostly Font.cpp).
Put the newly introduced set|get_system_colors() into the BPrivate namespace -
please don't introduce private functions into the public namespace!!!
Also fixed their broken communication use, as Darkwyrm obviously forgot about
it again: the sequence Flush(); GetNextMessage() without error checking is
purely wrong and can make the app hang and/or crash! :-)
Other minor cleanup.
The input_server used some test mode with the haiku build target which is
probably wrong.
Hopefully I did not forget anything this time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 21:28:56 +00:00
Adi Oanca
e274da0fa5 Optimized resizing operations. They behave exactly like in R5. Abandoned HW acc for resize operations, this turned out to be quite hard to implement and would make the code a lot harder to understand.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 21:09:40 +00:00
DarkWyrm
f1fb9c6f5f Added two private functions which are for getting & setting system colors as a set.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 20:49:47 +00:00
Axel Dörfler
48d350d76e Accidently replaced lib.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 19:50:01 +00:00
Axel Dörfler
80f47570a5 Some cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 19:49:18 +00:00
DarkWyrm
57bbc53987 Moved some system colors code to be monitored by a client's ServerApp
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 19:48:30 +00:00
Jérôme Duval
d70f24a679 fix the build ...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 19:08:49 +00:00
Jérôme Duval
c2c408999a clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 17:57:20 +00:00
Adi Oanca
7faaf6ba8b fixed the viewColor bug
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 15:37:43 +00:00
Jérôme Duval
1cc148a946 added opengl to SetupInclude
StaticLibrary now accepts static libraries to include (note that jam should be rebuilt)
LibraryFromObjects doesn't FGristFiles now, but Library does


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 15:22:55 +00:00
Jérôme Duval
a1a86b0306 added error information
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 14:21:36 +00:00
Jérôme Duval
88e96a1483 Patch from [Beta], thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 14:06:10 +00:00
Jérôme Duval
aa486def43 patch from [Beta]
additionally: corner debug output removed unless DEBUG is defined


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 13:47:14 +00:00
Axel Dörfler
494301a5aa Minor cleanup, fixed warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 13:27:26 +00:00
Axel Dörfler
43ed6aa0db The "shebang" handler is supposed to parse arguments, too - we now do that.
Also, when the line is too long, E2BIG is returned.
Thanks to Korli who pointed me to this: http://homepages.cwi.nl/~aeb/std/shebang/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 12:39:06 +00:00
Axel Dörfler
be22452f3b Apparently, both load_image() and exec*() support running scripts. We do that
now as well.
Also, both functions will now test if the executable exists and is valid; that
way, load_image()/exec*() can catch many errors without having to create a new
team (or erase the current one - an exec*("my invalid app") might now return
with an error).
The runtime linker now exports a function to test executables that is aware
of the search paths, and will also check user permissions upfront.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 11:23:29 +00:00
Axel Dörfler
229b2db028 cache_node_launched() is now called later, so that the environment will
be the same for both ways (via load_image() and exec*()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 11:15:05 +00:00
Stefano Ceccherini
6deb7c6749 Documented the public methods, changed the file description
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 07:29:16 +00:00
Stephan Aßmus
75d26e104a fInitialized is also set in the copy constructor. BTW, the Haiku Logo is displayed now (forgot to commit this earlier). Thanks to Axel for finding out about this.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 00:38:21 +00:00
Axel Dörfler
6262418e6a fInitialized was never set to "true", so InitCheck() could never succeed.
Also fixed _AllocateBuffer() to handle out of memory situations gracefully.
It should probably also have upper limits with regard to the bitmap size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 00:12:45 +00:00
Jérôme Duval
adf47eb76d we mimic R5 : getgroups return 0
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-14 00:08:21 +00:00
Jérôme Duval
c931a5f892 added man docs
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 23:44:27 +00:00
Jérôme Duval
31ed13fa72 added few bin tools
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 23:35:28 +00:00
Jérôme Duval
e283d78ca9 added groups
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 23:33:44 +00:00
Jérôme Duval
431b9b0e18 Depends => LocalDepends : avoids dependency on files
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 23:00:48 +00:00
Stefano Ceccherini
3a27ae791e Added server support for activate_workspace(). Looks like it's not doing anything, though SetActiveWorkspace() returns true....
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 22:11:29 +00:00
Stefano Ceccherini
eef16dda7d implemented server support for current_workspace(), just because I had enough of the 'blablah got unknown reply' message
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 21:54:11 +00:00
Stephan Aßmus
fc5ca95d01 fixed alignment and image layout, esc exits fullscreen mode, black background for fullscreen, zooming window toggles fullscreen, can still browse even if current image has been deleted, space toggles slideshow, swapped next/previous menu items (more logical)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 20:09:46 +00:00
Axel Dörfler
fc95358474 Optimized writing by enlarging the file before the single entries are written
(that saves the file system from starting a new transaction, which is currently
expensive).
Changed output a bit: the launch line now also contains the parent team ID,
file paths are truncated from applications.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 18:44:22 +00:00
Axel Dörfler
aadb0f6bb8 The acceleration hooks are now set after a SetMode(), and get a display_mode as parameter
as required by the interface.
Unfortunately, this doesn't help the slow window moving with Rudolf's drivers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 17:42:52 +00:00
Axel Dörfler
02cc496038 Build fix, improved debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 16:04:45 +00:00
Stefano Ceccherini
d039af7469 Reverted to the previous algorithm, which is just another version of the same one: they produce slightly different results, but this one should be faster as it doesn't use divisions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 15:29:08 +00:00
Stefano Ceccherini
44bb301774 Improved some more.
Why were the components or'ed with 5 ?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 14:42:06 +00:00
Jérôme Duval
4dfe5b819b now quits gracefully when no media roster is available
cosmetic changes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 13:53:38 +00:00
Jérôme Duval
5fa7753230 signature fix
now quits gracefully when no media roster is available


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 13:51:53 +00:00
Rudolf Cornelissen
98f5c76b8f updated documentation once more.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-06-13 13:46:00 +00:00