Commit Graph

17145 Commits

Author SHA1 Message Date
Jérôme Duval 0e8c81c72c hey is in bin/ , kept the user guide in docs/bin/hey.html
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17811 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-13 08:54:19 +00:00
Jérôme Duval da08acb8bf fix some more bugs in scripting handling, this seems to never end
Having canna input method installed shouldn't crash Haiku anymore


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 23:45:55 +00:00
Jérôme Duval 4b25c48853 BMessage::GetCurrentSpecifier returns B_OK if current specifier is negative
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 23:40:16 +00:00
Axel Dörfler 139655dd9a * New super types that are added while FileTypes is running are now displayed
correctly (without an icon).
* Fixed the incorrect __HAIKU__ only section #ifdef.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17808 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 23:36:35 +00:00
Axel Dörfler 5b741ecbfd Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17807 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 23:18:29 +00:00
Axel Dörfler d51ce54011 * Added the opportunity to add temporary debug interrupt handlers for
arch dependent code (they will be removed as soon as someone else
  asks for these interrupt lines).
* Added an interrupt driven keyboard handler to the kernel that uses
  this technique. As a result, you can now press F12 to enter the kernel
  debugger before the input_server has been started, and Control-Alt-Delete
  should reboot the system (actually I did not test the latter yet).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 22:24:53 +00:00
Axel Dörfler 099e443467 Minor cleanup and array orientation helper.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 22:16:33 +00:00
Axel Dörfler 675010ad61 Don't invalidate the listview when the focus changes - the listview does not
have any focus markers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 21:57:11 +00:00
Axel Dörfler 16b4861f05 No reason to return B_ERROR when the method doesn't have to do anything.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 21:56:06 +00:00
Axel Dörfler 66e114c429 BView::SetEventMask() had no effect when called before AttachedToWindow().
This also fixes bug #620.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17802 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 21:54:24 +00:00
Axel Dörfler d367028c04 Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17801 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 21:53:00 +00:00
Jérôme Duval 2e52b7bfac we now check the index instead of PopSpecifier() for GET_SUPPORTED_SUITES
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17800 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 17:38:55 +00:00
Jérôme Duval 2814f73c87 imported a stripped down fluidsynth 1.0.7
* a shared library is built, no audio driver is included
* implemented some platform specific functions (fluid_sys.*)
* a test app is provided in fluidsynth.c
* on target Haiku, posix mutex are used, else mutexes are implemented with simple semaphores (I could be wrong here)
well I hope it can provide a good enough backend for a softsynth
Note that needed SF2 banks would probably not be included.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 15:55:38 +00:00
Philippe Houdoin 5522045320 As reported by Fredrik Ekdahli, the GL viewport should be set by default as soon as the view is attached to a window.
But the default size is the view one, not the view's window size, which doesn't make much sense.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17798 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-12 15:50:27 +00:00
Jérôme Duval e91315aa2d scripting in BApplication is mostly fixed
BLooper had a be-handler named suite
BWindow is now exposing Active
scripting to BViews isn't working yet


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17797 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-11 23:01:33 +00:00
Axel Dörfler 269d3bd5bc Imported PoseView.cpp 1.61, OpenWithWindow.cpp 1.8, and OpenWithWindow.h 1.3
from OpenTracker CVS.
This fixes bug #354.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17796 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-11 10:19:44 +00:00
Axel Dörfler fe49a8a379 Imported DeskWindow.cpp 1.8 and ContainerWindow.cpp 1.32 from OpenTracker CVS.
This fixes bug #298.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-11 09:38:18 +00:00
DarkWyrm c310520d82 Added some tweaks as suggested by Stephan
Roughed in quite a lot of chapter 5


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-11 01:46:27 +00:00
Axel Dörfler f025617d21 Forgot to commit this header - should have been part of r17785.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-10 09:25:30 +00:00
Axel Dörfler 82584ab9c2 * Implemented AS_DIRECT_WINDOW_SET_FULLSCREEN so that it sets kWindowScreenFeel
when enabled, and B_NORMAL_WINDOW_FEEL when disabled. IOW when enabled, no
  other windows can interfere.
* Therefore, it's no longer necessary to have the screen_blanker window
  use kWindowScreenFeel - it will set its window to full screen as long
  as the blanker runs.
* Added a AS_APP_CRASHED notification in the app_server that will remove
  all kWindowScreenFeels from the windows of the crashed app.
* This is now used by the debugger to ensure that the debugger alert will
  be visible.
* Factored out a DesktopLink class out of the BRoster::_ActivateApp()
  method. This class is now also used in the new BRoster::_ApplicationCrashed()
  method as used in the debug_server (via BRoster::Private).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-09 21:46:40 +00:00
Ingo Weinhold e4f35acf7c * Added new (currently private) API class BMimeSnifferAddon,
representing the interface for, well, MIME sniffer add-ons.
* Implemented the respective add-on manager and make use of it in
  the MIME database code. Unfortunately the MIME DB code completely
  lives in libbe.so and hence I had to put my code there too.
  IMHO we should (one day) remove the direct (read-only) MIME DB
  access from libbe and move everything into the registrar.
  Currently the add-on manager supports built-in add-ons only; it
  doesn't really load anything from disk ATM.
* Added a built-in text sniffer add-on to the registrar. It's based
  upon the BSD file tool code.

This closes bug #250 (plain text files are identified as such, now).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17784 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-09 20:48:50 +00:00
Axel Dörfler 642090fdc6 * ScreenCornerSelector is now a BControl and fully keyboard navigable.
* simplified drawing a bit, and got rid of those scary scale*() stuff (which also
  results in better looks). The monitor now looks like the one in Screen; I think
  it should either be a very reduced form or a very detailed form, but anything
  in between often looks just odd.
* It now also listens to B_MOUSE_DOWN incl. mouse tracking, not only to B_MOUSE_UP.
* Less flickering on state changes (and focus change).
* Loading settings no longer overwrites defaults missing from the settings.
* Renamed ScreenSaverSettings::GetBlankCorner() to BlankCorner(),
  LoadSettings() to Load(), GetState() to GetModuleState(), ....
* Some more cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-09 16:03:16 +00:00
Ingo Weinhold 78f3c7e6f5 Fixed the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-08 19:27:57 +00:00
Jérôme Duval 99e2816c13 begin of implementation for ScriptReceived
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17781 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-08 16:25:18 +00:00
Jérôme Duval 1f8172a474 implemented ResolveSpecifier()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-08 15:14:03 +00:00
Jérôme Duval 75509db03a finally implemented correctly MessageReceived() and ResolveSpecifier()
fixed unique ID generation


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-08 14:14:15 +00:00
Jérôme Duval f16aff25e3 fix the build (sorry for this)
better output for NAME and ID


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17778 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-08 07:48:11 +00:00
Stephan Aßmus 1f84dba758 the finishing touches...
* now displays the calculator icon besides the text entry
when the keypad is off, also draws a frame around the text
entry and uses standard black on white...
* fixed a few other issues
* should hopefully be complete now
* on R5, there are sometimes rendering bugs with the 
  app_server (sometimes it doesn't invalidate views that
  are transparent and have been resized before the window is
  shown)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-08 00:34:02 +00:00
Stephan Aßmus d2176a2d86 * fix leading spaces after evaluating
* increase to 13 digits after decimal point
* load and save the expression history


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 22:42:00 +00:00
Jérôme Duval 1c7004e4e7 more handling of scripting messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 22:40:28 +00:00
Stephan Aßmus 19f75b98e6 I hope Daniel is not upset, but Ingo and I have written a new parser:
* it supports white spaces
* it supports , and . for the decimal point
* it gives parse errors and where the error occured
* it supports more functions
I also added evaluating an expression given on the command line, it doesn't
show the UI then.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 22:05:03 +00:00
Axel Dörfler 1fa515a650 * Fixed use of ScreenSaverSettings::TimeFlags() - it's a flags field after
all, so it should be used like one.
* Fixed a memory leak because of incorrect BMessageRunner usage.
* Some corner rects were computed incorrectly (I did that earlier).
* Since either a file or a directory is watched, but never both at the same
  time, we only need to store one ref.
* Don't update the settings as long as there is no settings file.
* Fixed strange usage of watch_node() - not specifying a handler means that
  the message is sent to the preferred handler, a BLooper is also always a
  handler, and the message only should go there.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 21:29:04 +00:00
Axel Dörfler 58c7d50a41 Fixed the Dano message reader:
* The size returned was too big, as the size in the flattened message included
  the message format.
* Made it a bit more robust, too (bail out if the section header size is smaller
  than zero).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 20:39:32 +00:00
Axel Dörfler 4274405a4c Even though Ingo broke the build of this tool (and mkbfs as well), this fixes a
stupid bug that will generally remove the last byte of any attribute.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 20:15:19 +00:00
Jérôme Duval 6a32527a14 fix for dano and added bshelf
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 19:32:43 +00:00
Jérôme Duval 353aa88d57 fix for dano target
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17769 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 19:28:07 +00:00
Stephan Aßmus 3866a1f6d2 Oops, I commited the destroyed version... but restoring the header
is not half as bad...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17768 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 18:24:54 +00:00
Stephan Aßmus b4d21c8325 Quite a bunch of changes... but it doesn't work perfectly yet.
I ran into an obscure Pe bug which resulted in me overwriting
the wrong file... but then the machine KDLd, which it almost
never does... and I got lucky and the file was there again...
But this teaches me to commit more often.
* replaced expression area with a custom text view
* added expression string history (a bit dumb yet)
* added option to hide the keypad


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 18:14:55 +00:00
Axel Dörfler c13a4ddf0f Unflattening R5/Dano messages are both using the TReadHelper class which throws
exceptions in case of an error. Therefore, whenever those methods are called,
we need to surround them with a try/catch block.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17766 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 17:15:45 +00:00
Axel Dörfler 2d0c5e0adc * Made updating the MIME info more safe, this was just one source the registrar
could use as an excuse to die.
* Minor cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 17:13:18 +00:00
Jérôme Duval 9041bc71e3 added a test app for BShelf, it's the Container sample code from Be
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 16:53:06 +00:00
Jérôme Duval 7f0858ae68 Selection => selection
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 16:08:38 +00:00
Jérôme Duval 7d1e1e9f07 fixed view names to match R5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 15:36:46 +00:00
Jérôme Duval 3723db5e3b added hey to the image
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17761 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 15:17:28 +00:00
Axel Dörfler 2da9a41214 When calling debugger(), it will now (temporarily) dump a message to serial output
as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17760 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 15:11:39 +00:00
Jérôme Duval 36e6f6a19b adapted ResolveSpecifier to handle the subspecifier replicant
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 15:02:09 +00:00
Axel Dörfler 7c434cc5a0 Some more work on the font sensitivity - not yet complete by any means, though,
but it's shaping up.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17758 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 14:04:03 +00:00
Jérôme Duval 3d4dfe403c implemented BShelf::ResolveSpecifier
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 13:56:42 +00:00
Axel Dörfler d0e9fa680e * Fixed some memory leaks when using the BMessageRunners.
* Now quits the window directly, instead of letting the application destructor do that.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17756 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 13:51:33 +00:00
Axel Dörfler 41158aaf91 * Renamed the ScreenSaverPrefs class to the more Be-like ScreenSaverSettings.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17755 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-07 12:43:31 +00:00