Commit Graph
100 Commits
Author SHA1 Message Date
Axel Dörfler 001103576a Accidently used its own PluginManager object instead of the global one.
Implemented BMediaDecoder::GetDecoderInfo().
Changed the documentation style to something doxygen can read.
Added some ToDo comments.
Some minor style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6249 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 09:15:47 +00:00
Axel Dörfler a0a20160cd Updated all decoders to the changed codec API (from meta_descriptions to
BMediaFormats based detection).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6248 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:55:01 +00:00
Axel Dörfler 86bafc634b Removed now unused get_format_for_description and get_description_for_format
request/reply structures.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:44:42 +00:00
Axel Dörfler 7c02339d2c Rewritten the FormatManager class.
It now implements the new format registration needed for the BMediaFormats
class.
Does not yet implement a settings file, and does not yet support removing
of existing decoders/encoders.
Also, it currently replies in FormatManager::GetFormats() in the tread of
the media server with a timeout of 5 seconds...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:43:33 +00:00
Axel Dörfler 20e3dd9dbe Almost rewritten the AddOnManager. It now works together with the new
media decoder detection code and the FormatManager.
It now stores all registered formats from a decoder, and uses this
information to implement GetDecoderForFormat().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6245 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:40:35 +00:00
Axel Dörfler 61dec6a5c7 Removed now unused GET_FORMAT_FOR_DESCRIPTION and GET_DESCRIPTION_FOR_FORMAT
stuff.
Simplified ServerApp::MessageReceived() and added MEDIA_SERVER_GET_FORMATS
to it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:34:25 +00:00
Axel Dörfler a898baf0cc Added missing AddOnManager and FormatManager.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6243 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:31:57 +00:00
Axel Dörfler 2a93bc9819 We don't need no BLocker anymore, updated _reserved[] to not change the size
of the class. Renamed fIndex to fIteratorIndex.
Some minor style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:30:51 +00:00
Axel Dörfler c38d73ee4c New meta_format structure that is used internally by BMediaFormats and
the FormatManager in the server.
Update the plugin API.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6241 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:24:51 +00:00
Axel Dörfler 6e53563dac Updated to new API, some minor changes. Added "ToDo" items in the
DestroyReader/Decoder() functions - they erroneously don't put the
plugin back.
Added license.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6240 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:23:14 +00:00
Axel Dörfler 29f1f4488e Removed now unused methods, added license.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6239 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:14:47 +00:00
Axel Dörfler 68b80bbdb9 Slightly improved error reporting for CreateDecoder (now with error code).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6238 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:11:15 +00:00
Axel Dörfler 0f34281e3e The BMediaFormats class is now completely implemented. Removed wrong old
implementation and the now unused old meta_description stuff.
Also fixed the == and < operator for media_format_description.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6237 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:09:19 +00:00
Axel Dörfler b6b1e538a7 Removed all now unused functionality.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6236 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 07:06:12 +00:00
Axel Dörfler db95389956 Added a program to test the == and < operator of media_format_description.
Revealed some bugs in our previous implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6235 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 06:41:19 +00:00
Axel Dörfler b7d3f36edc "Fixed" the write_port_etc() call: it used a hardcoded 8 instead of B_RELATIVE_TIMEOUT (ts ts ts).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 01:12:51 +00:00
Axel Dörfler 8b47303be4 Added a QueryServer() function for BMessage communication.
Added MEDIA_SERVER_GET_FORMATS for the new BMediaFormats implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 01:10:46 +00:00
Axel Dörfler 0a580bde18 Added a QueryServer() function for BMessage transfer.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 01:06:33 +00:00
Axel Dörfler 40997e1444 Added the _PACKED attribute to the BFS on-disk structures to be sure
the compiler doesn't break anything by aligning them differently.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 15:57:03 +00:00
Axel Dörfler 2ed1070506 Added structureSizes to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6214 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 15:55:15 +00:00
Axel Dörfler 0207f71894 Added a simple test program to check if the disk structure sizes change
with different compiler options - couldn't find anything, though.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-21 15:54:53 +00:00
Axel Dörfler 03df40f1df (Temporarily?) removed the private API exports that the new SoundPlay 4.8.1
uses - it does crash anyway, when we export them (and return NULL).
Asked Marco about it, we'll see what comes back :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 23:32:09 +00:00
Axel Dörfler 149a6f76aa Added missing newlines.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 14:33:28 +00:00
Axel Dörfler 73ff0e8f02 Added a small test app that prints out all BMediaFormats supported media_formats,
and some other tiny things.
Will print out a meaningful error in case there is one - tests locking behaviour
of BMediaFormats::GetNextFormat() and if GetCodeFor() works correctly.
Added to the build. Removed "root" library from the rules - that one doesn't
have to be included manually.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 14:25:08 +00:00
Axel Dörfler 57263483db Somehow, -(uint32)10 didn't do what I wanted... if there were no valid
settings, the window is now set to the intended position.
Also enlarged the default window height a big, since it was a bit too
unglossed.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 11:36:27 +00:00
Axel Dörfler 0c6beeacb4 Added some debug output in case Reader::RegisterPlugin() failed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6197 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 10:38:23 +00:00
Axel Dörfler 0df774c143 Fixed warnings (added newlines to the end of the file).
Removed extra "root" reference in the Jamfile - libroot.so is linked
against automatically by ld.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6196 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 10:36:52 +00:00
Axel Dörfler 09d31e11ec Now sets the mediaHeader->start_time in Decode() (hopefully correct).
Also fixed a crashing bug if the decoder was not setup with data from
the MusePackReader.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6172 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-20 01:06:43 +00:00
Axel Dörfler 9aa7863ddb Added some missing pieces to get the engine to work with our codec API.
It's even working a bit (you hear something that's at least similar to
what you should hear :).
Since the underlying engine doesn't differentiate between container and
contents, this looks like a hack, too.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 23:38:44 +00:00
Axel Dörfler af18100b2f Fixed class inheritance so that the decoder will be found as well.
RegisterPlugin() didn't return B_OK.
Removed unused headers.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6164 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 23:13:31 +00:00
Axel Dörfler e74116611d The MPC_decoder class now contains a pointer to the StreamInfo set by
SetStreamInfo() (because MusePackDecoder can use this data).
Removed some other unused lines.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6163 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 23:10:29 +00:00
Axel Dörfler ed8da400c3 Fixed all warnings and did some minor style updates (only those next to
the fixed warnings :).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-19 17:54:57 +00:00
Axel Dörfler 3b3284c27f Implemented some basic functionality (namely Sniff() and GetStreamInfo()).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:43:54 +00:00
Axel Dörfler 9216785b33 Missed some changes; compiled well as long as nobody tried to use it :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:42:22 +00:00
Axel Dörfler 94628dc2b9 Added MusePack reader test to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:41:09 +00:00
Axel Dörfler cb1aa65fa6 Added a simple MusePack test application based on Marcus' mp3_reader_test.
It builds fine.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:40:41 +00:00
Axel Dörfler 1cf1e4e9d2 Added MusePack media file add-on to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:21:55 +00:00
Axel Dörfler 434ee6c260 Added clean and empty decoder/reader add-on code :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:17:30 +00:00
Axel Dörfler ed8ce55582 Add the license information for the MPC package.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:11:16 +00:00
Axel Dörfler 8267ce8bbc Added the MusePack (MPC) engine to our repository - it's the one use in the
WinAMP plugin and is licensed under the LGPL. I've already ported it to BeOS,
so it does compile without warnings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 03:04:27 +00:00
Axel Dörfler d1e4dd9533 Followed Marcus' advice and added a "virtual" to the *Plugin inheritance to
allow an add-on to inherit from both, DecoderPlugin and ReaderPlugin at once.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 02:42:10 +00:00
Axel Dörfler ff3a346fc5 Imported Matt Madia's changes to the Workspaces application (changed position
calculation, new command line arguments [use --help for info]).
Put a great effort into it cleaning and fixing it. Works around a bug in BeOS
that affected the positioning algorithm - it's explained in
WorkspacesWindow::FrameMoved() for those who want to know.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-17 23:12:12 +00:00
Axel Dörfler 732e8d7a7d Removed now unused arguments from the ReplaceChange constructor.
The last change also makes sure that changes can be applied at any time,
no matter if the block is currently loaded or not.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-16 04:59:51 +00:00
Axel Dörfler 73c630c948 The DataChange constructor must no longer make any changes to the buffer.
DataChange::Apply() will now remember the string instead, so that undo/redo
will work correctly even if the underlying data has changed in the mean time.
DataEditor::AddChange() will now apply the change as well.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-16 04:57:20 +00:00
Axel Dörfler 5af91ef5cb Implemented DataEditor::Redo(), and RemoveRedos(); the latter will now be
called by AddChange().
Fixed ApplyChanges() to only apply changes up to (and incl.) the last change;
it won't apply all changes anymore.
DataEditor::Undo() and Redo() now lock themselves.
Added some more simple tests to DiskProbe.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-16 04:52:44 +00:00
Axel Dörfler 2444f60ff3 Added DiskProbe to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 17:22:00 +00:00
Axel Dörfler 1df68d1dee Started to work on a DiskProbe replacement as a side project.
Implemented the basic editor engine that has features like undo/redo
and everything else DiskProbe could possibly need - not complete yet,
though it already has everything that would be needed for a 1:1 DiskProbe
duplicate.
The DiskProbe app is currently just a small text based test for that engine.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 17:21:23 +00:00
Axel Dörfler b34d061c80 MouseSettings::Revert() reverted back to the original settings, but it
didn't changed the cached settings (and thus, neither the GUI was updated
correctly, nor the settings would have been written back correctly in
this case).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-09 04:34:54 +00:00
Axel Dörfler 2c9f63f0b8 MouseSettings::RetrieveSettings() promised that the window will filter
invalid coordinates and center the window on screen.
Now, that really happens, and the MouseSettings class will also have
a default value for the position that triggers this behaviour as well.
Thanks to voidref for reporting this.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-08 03:24:08 +00:00
Axel Dörfler 2b2b029905 Removed unneeded member variable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 09:59:37 +00:00
Axel Dörfler 26f5b48ecf Small fixes/changes:
- added destructor that deletes the mouse bitmaps
- the invalidated region in Pulse() is now large enough
- it's now completely independent from the image in MouseBitmap.h - just
  put the correct images into the resources, and update the bitmap creation
  and it'll work
- it's now always working correctly (even visually) if one or both bitmaps
  are missing.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 09:45:25 +00:00
Axel Dörfler ca4d42ee54 Switched to the text resource files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:42:54 +00:00
Axel Dörfler 91dc6b25c0 Switched to the text rdef files instead of the binary resources.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:40:48 +00:00
Axel Dörfler 736efd6ec4 Renamed the constants in MessageConstants.h to be style guide compliant.
Removed the useless ERROR_DETECTED message and implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:34:24 +00:00
Axel Dörfler 19a5b61308 Renamed the last member variables to be style guide compliant.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:26:51 +00:00
Axel Dörfler cb440c42c1 Have a look at the BSlider::SetValue() documentation; it already cuts
the value if necessary.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:23:07 +00:00
Axel Dörfler 8a6fd84c3e Some more style cleanups.
It's really not necessary to provide all default arguments in C++ - especially
not wrong ones...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:21:36 +00:00
Axel Dörfler 7ed41b2f46 Removed all SettingsView stuff, and almost completely rewrote the MouseView class.
The mouse view code is now much cleaner and more generic.
Fixed all known remaining bugs.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:17:02 +00:00
Axel Dörfler 87e0ec1168 Removed the duplicated settings handling - now just uses MouseSettings instead.
Removed all code that now belongs to the MouseView class.
Moved some member variables into the private section.
Removed now unused variables.
Now overloads GetPreferredSize() with something useful instead of just
resizing to these values at constructions.
Added a destructor that frees the created bitmaps.
Renamed focusMenu to fFocusMenu, and mouseTypeMenu to fTypeMenu.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:14:46 +00:00
Axel Dörfler 7116278ebd No longer accesses any SettingsView members directly. It now takes all
information it needs out of the messages it gets.
Now used MessageSettings::Defaults() instead of having an own implementation.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:10:48 +00:00
Axel Dörfler 3e92b3c74b Renamed MouseMessages.h to MouseConstants.h, added some user interface
constants.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:07:43 +00:00
Axel Dörfler 43d9314a5a Decremented kMouseHeight since its obviously not the correct height.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:05:34 +00:00
Axel Dörfler b99173690e Some more {Set}Mapping() functions.
Now has a Default() method that activates the system default settings.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 08:04:39 +00:00
Axel Dörfler e300f612df Copied the complete contents of MouseView.{cpp|h} over to the new
SettingsView.{cpp|h} - the former will only contain the view that shows
the mouse and its buttons, the latter will contain the rest.
Corrected license text and listed myself as one of the authors.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 03:02:37 +00:00
Axel Dörfler 9a2e5e9478 No reason to quit the program, just because some icons are missing.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 02:47:57 +00:00
Axel Dörfler 692da071d6 The MouseSettings class now actually does something useful.
Now maintains all mouse related settings, and also represents the current
settings (i.e. MouseSettings::SetMouseMode() will really change the mouse
mose).
Fixed bug in SaveSettings() that I missed earlier.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 02:43:02 +00:00
Axel Dörfler f9823032c7 The MouseView now get a pointer to the window's MouseSettings object.
Reverting to the original (on load time) settings is now done in the
MouseSettings class, not MouseWindow anymore (updating the MouseView
is temporarily disabled).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 02:39:01 +00:00
Axel Dörfler 915e16506a Removed now unused coords for the buttons (were already commented out).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 23:39:24 +00:00
Axel Dörfler b217c2d59d Moved the "Defaults" and "Revert" button out of the MouseView and
into the MouseWindow class. The MouseView now only contains everything
that's in the BBox (it now inherits from BBox).
Joined the BoxView and the MouseView classes together - their separation
was highly questionable done. I plan to put the mouse button view
into its own class as well.
The "Defaults" and "Revert" button are now font sensitive.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 23:15:06 +00:00
Axel Dörfler 39382ad368 The MouseWindow now take care about its position itself.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 22:57:56 +00:00
Axel Dörfler eb8423f435 Now uses MouseView::SetRevertable() instead of accessing the member
variable directly.
Broken settings no longer quit the app.
Many style fixes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 22:03:30 +00:00
Axel Dörfler e9cc36ba1a Fixed one of the reported bugs by using the default flags of the bounding
box instead of manually defining them (and forgetting about B_NAVIGABLE_JUMP).
Many style updates - more to come, though.
Moved the revert and default button variables into private. It now has an
extra SetRevertable() method to hide them.
Added newline to the end of file :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 22:01:44 +00:00
Axel Dörfler 7ad05b5060 Style updates for the application files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 21:56:56 +00:00
Axel Dörfler dae6d05bbd Cleanup of the mouse settings class:
- style guide updates
- the settings are now retrieved from the current settings, rather
  than from the (possibly) corrupt settings file
- removed InitCheck() as it doesn't serve any useful purpose (if the
  settings file is corrupt, the application should not fail anyway;
  it could just issue a warning), as the settings are now retrieved
  from the current settings
- renamed WindowCorner() to WindowPosition()
- added the possibility to read/write a settings file that's incompatible
  to R5 to store all possible mouse mappings (not activated, though). We
  should probably better save all mappings at the end of the file for
  compatibility.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 21:56:21 +00:00
Axel Dörfler 86228d9f03 Applied NewOS change 1914: fixes small bug (one page off), calls
{get|put}_physical_page_tmap() directly.
Also replaced all occurrences of "addr" with "addr_t".


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 16:12:52 +00:00
Axel Dörfler 11e38cc1d9 Applied the unmount() fix from NewOS change 1906.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-05 01:03:14 +00:00
Axel Dörfler 7518dc085b Replaced direct background color values with ui_color(B_PANEL_BACKGROUND_COLOR).
Some minor style changes.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-31 04:24:46 +00:00
Axel Dörfler 3c45d8cea9 Forgot to commit SYSLOG_FACILITY_INDEX() macro.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 00:20:40 +00:00
Axel Dörfler 462e4bb4fa That restriction was superfluous.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5789 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-29 02:29:27 +00:00
Axel Dörfler caeef6fada Fixed the broken use of read_request::PutBuffer() - the team's address space
is now honoured: the shortcut is now only made if it's okay to do it. Added
a comment what we could do to further improve performance.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5788 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-29 02:27:22 +00:00
Axel Dörfler 6994475d83 Added a comment about a stupidity I did with pipefs - I seem to have completely
forgotten about different address spaces with direct (unbuffered) pipe transfer,
shame on me.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-28 15:27:24 +00:00
Axel Dörfler e9a4e838e8 Added missing vsnprintf() for BSD stdio.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-20 16:00:51 +00:00
Axel Dörfler 3c39dc6e6e Forgot to add the syslog_daemon to the build.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-01 11:49:05 +00:00
Axel Dörfler 0596f8f6a1 Removed obviously accidently added "ShowImageX" executable.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-25 22:09:12 +00:00
Axel Dörfler b4f586280a Work-around for a bug in BeOS concerning the cache - it's not a complete cure, though.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-25 18:32:41 +00:00
Axel Dörfler 29d7bb65e5 Changed the test app, so that it automatically picks up changes to the
kSettings array.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-25 01:10:45 +00:00
Axel Dörfler 65a98eb199 Hacks to get glibc's stdio-common working.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-24 19:59:26 +00:00
Axel Dörfler 348820b57c Hacks to let it compile: disabled/removed wide character stuff, disabled
floating-point output.
Unfortunately, I needed to change the identation etc. to find my way through
it. Could resist to rewrite it completely, though :)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-24 19:24:21 +00:00
Axel Dörfler 0bcee3c93c Hacks to let it compile. Disabled wide character stuff *and* all number
conversions since they rely on private glibc functions.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-24 19:20:57 +00:00
Axel Dörfler 8545b8bd8d Changed the TRACE() macro to the usual (compatible) form.
Disabled trace output.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:23:42 +00:00
Axel Dörfler 34626c6331 Added new options "--halt" and "--info". The former will temporarily halt
a device, the latter returns info about a device (i.e. which file it points
to).
Updated for changes in the underlying driver.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:16:17 +00:00
Axel Dörfler bc4f78089e Rearranged source code a bit (clear distinction between device and drive API).
Added support for halting and resuming a device; the driver will close the underlying
file as long as the device is halted, so that other applications can access the file
(files set to uncached cannot be opened anymore). A device is resumed when you install
it again - note that the device might have been closed in the mean time, so it's
not guaranteed to return the same device.
Now returns a valid icon.
Removed unnecessary comments (this is no driver writers tutorial).
VIRTUAL_DRIVE_GET_INFO now also indicates if the device is halted or not.
Made the ioctl() calls more save by adding some sanity checks (magic value and
structure size).
Minor style changes, renamed device_info.opencount to open_count, added the "s"
suffix to static global variables (virtualdrive_name -> sVirtualDriveName, ...).
Fixed a possible bug: the file is now set to uncached after it has been resized;
it might not work the other way around.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:12:38 +00:00
Axel Dörfler 8a6d6e07f0 A simple blue cabinet icon for the virtual devices.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5460 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:05:36 +00:00
Axel Dörfler 9cbc2ce719 Added license information.
Added "play save" fields for the ioctl() parameter structure.
Added indicator if the device has been halted.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-23 22:04:38 +00:00
Axel Dörfler bc659826df t[e]mpnam() stuff now works.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 18:25:02 +00:00
Axel Dörfler cc9c5de901 Small changes to let it compile.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 18:23:17 +00:00
Axel Dörfler 290ba80867 Hacks to get the libio package working:
- all wide character functions have been disabled or removed
- ftrylockfile() does not yet work
- reformatted code to be readable (sometimes needed for changes)

Note, this code is not able to be simply updated with newer glibc releases! Sorry.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 17:01:42 +00:00
Axel Dörfler 1bed4dd008 No longer needed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-21 16:45:03 +00:00
Axel Dörfler b22232f591 Implemented the missing BView::IsHidden(BView *lookingFrom), fixed
BView::IsHidden().
Commented a ToDo: item in BView::Hide().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5417 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-19 14:56:32 +00:00
Axel Dörfler 545237514a We really only allow 0x7fffffff maximum characters, so we now mask out
everything above (not even in an intelligent way).
Now accepts zero bufferSize and NULL buffer - although it should probably
not catch the latter...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-18 04:12:29 +00:00