History log of /haiku/src/kits/translation/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
0d1f89e1 05-Aug-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

TranslatorRoster: avoid a deadlock when launching BeLive

If be_app is not running yet, trying to lock it may easily end up in a
deadlock.

Fixes #2105

However, as a result of this, when this situation happens, the
translator roster will not be node monitoring added/removed translators.
This was already the case if BTranslatorRoster::Default was called
before BApplication constructor, now it's also the case if called inside
the BApplication constructor or from another thread before it finished
running.

Maybe BTranslatorRoster should try to register itself later on if it
detects this. But it's acceptable to have the app not monitor
translators, because adding and removing translators isn't a very common
occurence and restarting the app to get it to notice them is probably
ok.

057b69a7 24-May-2019 Augustin Cavalier <waddlesplash@gmail.com>

Deskbar & Translation: Use assignment operator instead of memcpy.

1e60bdea 30-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

Remove all invocations of SetSubDirSupportedPlatformsBeOSCompatible.

62c7ec5c 23-Nov-2018 Augustin Cavalier <waddlesplash@gmail.com>

Fix various instances of -Wset-but-unused.

Largely no functional change; most of these are just
removing the unused variables.

05f730b0 11-Nov-2018 Augustin Cavalier <waddlesplash@gmail.com>

More WriteAttr -> WriteAttrString cleanup across the tree.

Some of these were correct as they were ... but most weren't.
There are a variety of other correct ones I didn't change over yet
that someone else probably should (GCI task?).

8a9e1e0d 31-Dec-2017 Augustin Cavalier <waddlesplash@gmail.com>

Removal of non-Haiku target platform logic from build system (part 1.)

Following recent changes to use libroot_build on Haiku also, it is now
actually impossible to build Haiku components on non-Haiku platforms
(BeOS R5, Dan0, BONE, Zeta), so we can remove any logic related to this.

This is only the first part; still to be removed are:
* SetSubDirSupportedPlatformsBeOSCompatible
* HOST_PLATFORM_BEOS_COMPATIBLE
* TARGET_PLATFORM_BEOS_COMPATIBLE

be741f6e 13-Nov-2015 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup of translator roster commit, updated copyright.

a1eccae9 08-Nov-2015 Markus Himmel <markus@himmel-villmar.de>

Make sure images containing BTranslators are not unloaded early

When a translator is uninstalled, BTranslatorPrivate::_RemoveTranslators is
called. This method used to unload the image containing the translator after
calling Release() on it resulting in several problems:

- If the translator was still busy, e.g. translating something while being
installed, it crashed since the image was unloaded even though its refcount
was larger than 0.
- Applications using code from one of the translators (e.g. its config view)
would crash when the translator is uninstalled (this is bug #12005).

This problem is now fixed. The roster keeps track of all translators whose
image it manages (even if the translator was already removed from the roster).
It also keeps a refcount to all images. When a translator's refcount drops to
zero and it belonged to a roster at some point, it does not delete itself, but
notifies the roster that it is ready to destruct, which then removes it from
the roster if the translator is still in it, destroys the translator, decrements
the refcount of the image and if the new refcount is zero, unloads the image.
All of this is done in a message handler, since if the translator called
TranslatorDeleted like before, the unloaded image would be referenced when
the stack is walked up.

Finally, the DataTranslations preflet is required to Acquire() the translator
whose config view it is showing, because otherwise its refcount could be reduced
to 0 and the image unloaded. BTranslatorRoster now enables users to acquire a
translator by ID. By the time the translator has to be released, it might not
be part of the roster anymore though. Since BTranslatorRoster tries not to give
out raw pointers to the translators it manages, users who acquire a translator
through a roster now are given a BTranslatorReleaseDelegate, which allows for
releasing the BTranslator exactly once and then self-destructs.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>

827f11e9 11-Apr-2015 Michael Lotz <mmlr@mlotz.ch>

Whitespace cleanup only.

87e8603d 13-Aug-2014 Oliver Tappe <zooey@hirschkaefer.de>

Merge branch 'gcc_syslibs'

* From now on, the gcc-specific system libraries (libgcc, libsupc++ and
libstdc++) are provided by separate packages built along with gcc:
- gcc_syslibs contains the shared libraries (libgcc_s.so, libsupc++.so and
libstdc++.so)
- gcc_syslibs_devel contains the static libraries and both c++ and gcc
headers
The shared libraries now make proper use of symbol versioning and there
are version-specific symlinks
* The buildsystem has been adjusted to no longer use the libraries and
headers from the cross-compiler, but use the ones provided by the
above-mentioned packages. The only exception is that the 32-bit libraries
required for the bootloader of the x86_64 architecture are still taken
from the cross-compiler.


220d0402 31-Jul-2014 Oliver Tappe <zooey@hirschkaefer.de>

Use libstdc++, libsupc++ and libgcc from gcc_syslibs.

* Instead of faking libstdc++.so from libstdc++.a, use libstdc++.so
from the gcc_syslibs build feature for everything except x86_gcc2.
* Use libgcc_s.so from the gcc_syslibs build feature for everything but
x86_gcc2 (which still carries libgcc as part of libroot.so).
* Drop filtering of libgcc objects for libroot, as that is no longer
necessary since we're only using libgcc-as-single-object for libroot
with x86_gcc2, where the filtered object file doesn't exist. Should
the objects that used to be filtered cause any problems as part of
libgcc_s.so, we can always filter them as part of the gcc build.
* Use libsupc++.so from the gcc_syslibs build feature for everything but
x86_gcc2.
* Adjust all Jamfiles accordingly.
* Deactivate building of faked libstdc++.so for non-x86-gcc2. For
x86_gcc2, we still build libstdc++.so from the sources in the Haiku
source tree as part of the Haiku build .
* Put gcc_syslibs package onto the image, when needed.

3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949

4b7e2196 03-Oct-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove /boot/common for good

* Remove support for the "common" installation location from packagefs,
package kit, package daemon, package managers.
* Rename the B_COMMON_*_DIRECTORY constants referring to writable
directories to B_SYSTEM_*_DIRECTORY.
* Remove/adjust the use of various B_COMMON_*_DIRECTORY constants.
I'm sure some occurrence still remain. They can be adjusted when the
remaining B_COMMON_*_DIRECTORY constants are removed.

225b6382 05-Aug-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Support building most system libraries for secondary arch

Also adjust the HaikuImageGet[Private]SystemLibs rules to support to
return the library targets matching the current architecture.

ff2e5209 30-Jun-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove the old "CVS" package rules

... and all their invocations.

25a7b01d 05-May-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Merge branch 'master' into package-management

Additional changes:
* Add src/system/kernel/lib/zlib, which builds a kernel version of zlib,
needed by packagefs.
* BuildFeatures: Add a build feature "gcc2" to allow for easier checks.
* Referenceable.cpp: Include <OS.h> instead of <debugger.h>. The latter
is not needed and prevents building for the build platform.
* zlib/zutil.h: Fix gcc 2 build. We really should use the external
package instead.

Conflicts:
.gitignore
build/jam/BuildSetup
build/jam/FileRules
build/jam/FloppyBootImage
build/jam/HaikuImage
build/jam/ImageRules
build/jam/KernelRules
build/jam/NetBootArchive
build/jam/OptionalBuildFeatures
build/jam/OptionalLibPackages
build/jam/OptionalPackageDependencies
build/jam/OptionalPackages
build/scripts/build_haiku_image
configure
data/bin/installoptionalpackage
data/system/boot/Bootscript
headers/os/app/Message.h
headers/os/package/PackageInfo.h
headers/os/package/PackageInfoAttributes.h
headers/os/package/PackageInfoSet.h
headers/os/package/PackageRoster.h
headers/os/package/PackageVersion.h
headers/os/package/hpkg/PackageInfoAttributeValue.h
headers/os/storage/FindDirectory.h
headers/os/storage/Node.h
headers/os/support/StringList.h
headers/private/system/directories.h
src/add-ons/kernel/drivers/audio/ac97/es1370/Jamfile
src/add-ons/kernel/file_systems/packagefs/AttributeIndex.cpp
src/add-ons/kernel/file_systems/packagefs/Jamfile
src/add-ons/kernel/file_systems/packagefs/Package.cpp
src/add-ons/kernel/file_systems/packagefs/Package.h
src/add-ons/kernel/file_systems/packagefs/PackageDomain.cpp
src/add-ons/kernel/file_systems/packagefs/PackageDomain.h
src/add-ons/kernel/file_systems/packagefs/PackageFSRoot.cpp
src/add-ons/kernel/file_systems/packagefs/PackageLinkDirectory.cpp
src/add-ons/kernel/file_systems/packagefs/PackageLinkDirectory.h
src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.cpp
src/add-ons/kernel/file_systems/packagefs/PackageLinkSymlink.h
src/add-ons/kernel/file_systems/packagefs/PackageLinksDirectory.cpp
src/add-ons/kernel/file_systems/packagefs/PackageNode.h
src/add-ons/kernel/file_systems/packagefs/ResolvableFamily.cpp
src/add-ons/kernel/file_systems/packagefs/Version.cpp
src/add-ons/kernel/file_systems/packagefs/Version.h
src/add-ons/kernel/file_systems/packagefs/Volume.cpp
src/add-ons/kernel/file_systems/packagefs/Volume.h
src/add-ons/kernel/file_systems/packagefs/kernel_interface.cpp
src/add-ons/kernel/file_systems/userlandfs/shared/driver_settings.c
src/apps/deskbar/BarApp.cpp
src/apps/deskbar/BarMenuBar.cpp
src/apps/deskbar/BarMenuBar.h
src/apps/deskbar/BarView.cpp
src/apps/deskbar/BarView.h
src/apps/deskbar/BarWindow.cpp
src/apps/deskbar/BarWindow.h
src/apps/deskbar/DeskbarMenu.cpp
src/apps/deskbar/DeskbarMenu.h
src/apps/deskbar/DeskbarUtils.cpp
src/apps/deskbar/DeskbarUtils.h
src/apps/deskbar/ExpandoMenuBar.cpp
src/apps/deskbar/ExpandoMenuBar.h
src/apps/deskbar/TeamMenu.cpp
src/apps/processcontroller/ProcessController.cpp
src/apps/remotedesktop/RemoteDesktop.cpp
src/bin/bash/config-top.h
src/bin/finddir.c
src/bin/package/Jamfile
src/bin/package/command_add.cpp
src/bin/package/command_create.cpp
src/bin/package/command_list.cpp
src/bin/package_repo/command_list.cpp
src/bin/pkgman/command_refresh.cpp
src/build/libbe/support/Jamfile
src/build/libpackage/Jamfile
src/build/libroot/Jamfile
src/build/libroot/fs.cpp
src/build/libroot/remapped_functions.h
src/kits/locale/MutableLocaleRoster.cpp
src/kits/opengl/GLRendererRoster.cpp
src/kits/package/PackageInfo.cpp
src/kits/package/PackageInfoSet.cpp
src/kits/package/PackageRoster.cpp
src/kits/package/PackageVersion.cpp
src/kits/package/RepositoryCache.cpp
src/kits/package/hpkg/PackageWriterImpl.cpp
src/kits/package/hpkg/ReaderImplBase.cpp
src/kits/package/hpkg/WriterImplBase.cpp
src/kits/print/PrintTransport.cpp
src/kits/print/Printer.cpp
src/kits/screensaver/ScreenSaverRunner.cpp
src/kits/support/StringList.cpp
src/kits/tracker/ContainerWindow.cpp
src/kits/tracker/DeskWindow.cpp
src/kits/tracker/PoseView.cpp
src/libs/print/libprint/Transport.cpp
src/preferences/printers/AddPrinterDialog.cpp
src/preferences/screensaver/ScreenSaverWindow.cpp
src/servers/debug/DebugServer.cpp
src/servers/input/AddOnManager.cpp
src/servers/media_addon/MediaAddonServer.cpp
src/system/boot/Jamfile
src/system/boot/loader/Jamfile
src/system/boot/loader/loader.cpp
src/system/boot/loader/vfs.cpp
src/system/kernel/fs/vfs.cpp
src/system/kernel/fs/vfs_boot.cpp
src/system/libroot/os/find_directory.cpp
src/system/runtime_loader/runtime_loader.cpp
src/tools/package/Jamfile


278bcb57 19-Jan-2013 John Scipione <jscipione@gmail.com>

Remove docs from BitmapStream.cpp

a5e96a30 09-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Merge branch 'master' into x86_64


e7730456 06-Aug-2012 Ryan Leavengood <leavengood@gmail.com>

Actually sort the translator menu used in ShowImage.

There were two problems with the last commit:

* the list needed to be outside of the top-level loop.
* BList was just broken for sorting translation_format pointers.

I fixed this by moving the loop outside and converting the translation_formats
to translator_info, which has the translator_id, since that is needed to create
the menu item, and would otherwise be unavailable outside the loop.

I tried to get this working with BList, but the sorting was completely broken,
and converting to BObjectList made the code much, much better and worked great.
Screw BList and casting, hurray templated BObjectList.

Really fixes #6782.

c802257b 05-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Merge branch 'master' into x86_64


adfe152e 06-Aug-2012 Ryan Leavengood <leavengood@gmail.com>

Sort the translation formats in AddTranslationItems by name.

This is used by ShowImage and CodyCam to create a list of image formats which a
file can be saved as. Tracker sorts the image MIME types used in the Find
window by name, so this makes these Save As menus match that (minus the icons
which I think are superfluous.)

Fixes #6782.

If the use of BList is no longer recommended, I welcome better suggestions
for sorting which will work in both GCC2 and GCC4. But this works ;)

3fed1a15 05-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Get app_server working on x86_64.

With this commit, app_server now compiles and runs at boot! Nothing
particularly interesting happens, just the blue background and a mouse
pointer. Remote backends are broken and not compiled in, see #8834.
Note that it won't be possible to build this quite yet, need to get
the FreeType package uploaded.

323b6546 21-Nov-2011 Oliver Tappe <zooey@hirschkaefer.de>

Filtered flat import of Oliver's svn package management branch

Bring the changes that aren't package management related and the ones
that are but don't take effect as long as they are ignored by the build
system into the master.

Summary of changes:
* Introduce private header <directories.h> with constants for a good
deal of paths that should usually be retrieved via find_directory().
* Replace hard-coded paths by using find_directory() or the
<directories.h> constants (e.g. in drivers and the kernel).
* Add find_directory() constants needed for package management.
* Add __HAIKU_ABI_NAME and B_HAIKU_ABI_NAME macros.
* src/apps/deskbar: BeMenu.* -> DeskbarMenu.*,
DeskBarUtils.* -> DeskbarUtils.*
* Change deskbar menu settings directory from ~/config/be to
~/config/settings/deskbar.
* Other smaller cleanups, changes, and fixes.

3dfd9cb9 16-Jun-2011 Oliver Tappe <zooey@hirschkaefer.de>

Flat commit of all changes from package-management branch in svn

6ee17ffb 24-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed incorrect usage of "new" - thanks korli!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42305 a95241bf-73f2-0310-859d-f6bbb57e9c96

ee918f63 24-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* This fixes the BitmapStream issues identified by #7740; the actual problem
persists to be debugged further.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42297 a95241bf-73f2-0310-859d-f6bbb57e9c96

8780d207 27-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Rewrote header.
* Cleaned up sources.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32752 a95241bf-73f2-0310-859d-f6bbb57e9c96

f99c6783 15-Aug-2009 Rene Gollent <anevilyak@gmail.com>

Skip directories when trying to find translators. This prevents the syslog from showing runtime_loader errors about trouble reading ELF headers on a hybrid build, as it would try to call load_add_on() on the subdir entry itself too.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32428 a95241bf-73f2-0310-859d-f6bbb57e9c96

6f2961ff 25-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added awareness for running with a non-native ABI (hybrid build). In this case
we test for a respective subdirectory for any translators path added and use
that instead, if existing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30859 a95241bf-73f2-0310-859d-f6bbb57e9c96

d69c4f6a 25-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed BeOS support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30857 a95241bf-73f2-0310-859d-f6bbb57e9c96

bd8ff8aa 25-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Yummy, more style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30856 a95241bf-73f2-0310-859d-f6bbb57e9c96

a9cfff5f 25-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30855 a95241bf-73f2-0310-859d-f6bbb57e9c96

8c7bf264 25-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

The 'extern "C"' was missing for the C function replacement of the Version()
method. Rather reintroduced the method (private) instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30854 a95241bf-73f2-0310-859d-f6bbb57e9c96

5fac7960 02-May-2009 Oliver Tappe <zooey@hirschkaefer.de>

* fix gcc4 warning
* automatic whitespace cleanup

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30584 a95241bf-73f2-0310-859d-f6bbb57e9c96

18cd67c7 22-Jan-2009 Michael Lotz <mmlr@mlotz.ch>

Add missing headers (malloc/free, string functions, memcpy, etc. undeclared).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28982 a95241bf-73f2-0310-859d-f6bbb57e9c96

63d618ee 16-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

* Fixed wrong usage of Seek(). The return type is off_t, not status_t. It only
worked because (status_t)B_OK == (off_t)0.
* The translator_id version of Translate() does a (probably unnecessary?)
Identify(), but then forgets to seek the source BPositionIO back to 0
before calling translator's Translate(). This was the reason for none of
the WonderBrush Translation Kit export formats to work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28676 a95241bf-73f2-0310-859d-f6bbb57e9c96

708f792e 22-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

In r16700 the name and meaning of that loop condition variable was flipped
around, but the condition itself wasn't which resulted in the code never being
executed. Fixes CID 88.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27692 a95241bf-73f2-0310-859d-f6bbb57e9c96

6b202f4e 13-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Introduced new header directory headers/private/system which is supposed
to contain headers shared by kernel and userland (mainly libroot).
* Moved quite a few private kernel headers to the new location. Split
several kernel headers into a shared part and one that is still kernel
private. Adjusted all affected Jamfiles and source in the standard x86
build accordingly. The build for other architectures and for test code
may be broken.
* Quite a bit of userland code still includes private kernel headers.
Mostly those are <util/*> headers. The ones that aren't strictly
kernel-only should be moved to some other place (maybe
headers/private/shared/util).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25486 a95241bf-73f2-0310-859d-f6bbb57e9c96

5abf416f 06-May-2008 Jérôme Duval <korli@users.berlios.de>

B_SAFEMODE_DISABLE_USER_ADD_ONS is also a safe mode we now honor in translation kit


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25332 a95241bf-73f2-0310-859d-f6bbb57e9c96

fc1ca2da 25-Apr-2008 Jérôme Duval <korli@users.berlios.de>

style cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25177 a95241bf-73f2-0310-859d-f6bbb57e9c96

fe1885f2 01-Jul-2007 Axel Dörfler <axeld@pinc-software.de>

Fixed a stupid copy&paste bug; one version of Translate() did not lock the private
translator handle - and therefore ran into a debugger call. Was triggered by
WonderBrush's export function.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21538 a95241bf-73f2-0310-859d-f6bbb57e9c96

618b37dc 05-Jun-2007 Axel Dörfler <axeld@pinc-software.de>

Fixed various incorrect uses of the erase() method of several STL containers I introduced before. Thanks to Stefano for the hint!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21332 a95241bf-73f2-0310-859d-f6bbb57e9c96

df004988 05-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

ioExtension can of course be NULL...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20579 a95241bf-73f2-0310-859d-f6bbb57e9c96

580d7b04 05-Apr-2007 Axel Dörfler <axeld@pinc-software.de>

No longer let translators overwrite the ioExtension message when they aren't
the chosen one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20577 a95241bf-73f2-0310-859d-f6bbb57e9c96

849de6ef 16-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Added another GetStyledText() function to force a specific encoding.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19847 a95241bf-73f2-0310-859d-f6bbb57e9c96

8acdd17f 17-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Added WriteStyledEditFile() variant that gets an encoding argument; it will automatically
encode the text in the BTextView accordingly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19841 a95241bf-73f2-0310-859d-f6bbb57e9c96

450a5aea 16-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* GetStyledText() is now much more forgiving when it comes to corrupted data
(ie. if the text file is cut off, it will no longer return an error, but
load as much as possible).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19831 a95241bf-73f2-0310-859d-f6bbb57e9c96

252f4767 12-Dec-2006 Ryan Leavengood <leavengood@gmail.com>

Added some needed stdio.h includes. I don't know what magic was used to compile
these for other people, but they wouldn't compile for me when building the
app_server test environment.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19479 a95241bf-73f2-0310-859d-f6bbb57e9c96

3347e0c6 20-Sep-2006 Jérôme Duval <korli@users.berlios.de>

links against stdc++ as it could be needed depending of the cpp headers implementation
found by eNGIMa on gcc4


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18892 a95241bf-73f2-0310-859d-f6bbb57e9c96

d75df30b 12-Sep-2006 Jérôme Duval <korli@users.berlios.de>

fix R5 build as suggested by Stefano (please check :))


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18820 a95241bf-73f2-0310-859d-f6bbb57e9c96

225a60f1 12-Sep-2006 Jérôme Duval <korli@users.berlios.de>

only load user addons when not in safe mode
fixes bug #842


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18817 a95241bf-73f2-0310-859d-f6bbb57e9c96

6e184da0 10-Sep-2006 Marcus Overhagen <marcusoverhagen@gmail.com>

use copy operator instead of memcpy


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18793 a95241bf-73f2-0310-859d-f6bbb57e9c96

00363f80 27-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

Can now be compiled again under BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17934 a95241bf-73f2-0310-859d-f6bbb57e9c96

b0bc48fb 19-May-2006 Axel Dörfler <axeld@pinc-software.de>

Some more GCC 4 and PPC fixes.
* Mesa doesn't compile yet, as some PPC specific stuff seems to be
missing, Philippe?
* Cortex and some other stuff has been marked x86-only, although
it's more of a "GCC 2.95.3"-only.
* I'm not sure if it's a bug in GCC 4, or if that's what the C
standard demands, but sizeof(some_type::some_field) is not
valid anymore :-/


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17515 a95241bf-73f2-0310-859d-f6bbb57e9c96

1826d5c8 01-May-2006 Axel Dörfler <axeld@pinc-software.de>

* Node monitoring didn't work correctly, as the directories were not remembered
accidently.
* Additionally, B_ENTRY_MOVED worked not correctly, as the entry_ref for the
new entry was built upon the wrong node_ref.
* The default translator now also makes sure that the default system paths
exist. This helps node monitoring as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17291 a95241bf-73f2-0310-859d-f6bbb57e9c96

29dfc8d3 30-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

The BTranslatorRoster now locks the looper before it adds/removes it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17281 a95241bf-73f2-0310-859d-f6bbb57e9c96

783f7f20 29-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

* Implemented support for node monitoring - you can now be notified when new
translators are installed via BTranslatorRoster::StartWatching().
* Fixed GetTranslatorData() - some hooks are only optional (this puts the
JPEG, GIF, and some other translators back into the game).
* Made BTranslatorRoster::Default() thread-safe.
* Improved documentation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17267 a95241bf-73f2-0310-859d-f6bbb57e9c96

50823fe5 28-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed a couple of bugs that prevented it from working as it should - dunno
how this didn't show up earlier.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17256 a95241bf-73f2-0310-859d-f6bbb57e9c96

d7424bc7 28-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed build of the test environment as reported by Stephan.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17253 a95241bf-73f2-0310-859d-f6bbb57e9c96

f90e4543 27-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

* More or less rewrote BTranslatorRoster - it now has a private implementation
class, and only wraps around that one.
* Translating is no longer serialized, you can translate more than one object
at a time now.
* A BTranslator that is released (ie. deleted) will no longer let its BTranslatorRoster
crash.
* Removed BTranslatorRoster::Version() - this kind of call definitely makes no
sense at all. It's still exported from the sources, though, for backwards
compatibility.
* Simplified and improved code.
* Images are now unloaded only once.
* Added new method IsTranslator() that will be used by the DataTranslations preferences
application.
* Began implementing new methods StartWatching()/StopWatching() that will notify
you if new translators are installed or old ones removed (this will also be used
by DataTranslations once it's ready).
* The private BTranslatorRoster class will now add itself to the existing BApplication,
in order to provide automatic updating of the translators if needed (not yet implemented
though).
* Not heavily tested yet, there might be some regressions.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17247 a95241bf-73f2-0310-859d-f6bbb57e9c96

9acf186f 10-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

* Made GetStyledText() and WriteStyledEditFile() more robust against errors.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16700 a95241bf-73f2-0310-859d-f6bbb57e9c96

dd344f79 06-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

libtranslation.so was built for the libbe_test target, but wasn't part of the
test environment (the install-test-apps target).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15371 a95241bf-73f2-0310-859d-f6bbb57e9c96

155b583a 09-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed unit tests build for platforms libbe_test and r5. Only randomly tested
a few whether they actually work.
New pseudo target "unittests", which builds all unit tests for the currently
set TARGET_PLATFORM. They are placed in generated/tests/<platform>/unittests.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14791 a95241bf-73f2-0310-859d-f6bbb57e9c96

54bb4f57 04-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed build for target R5.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14689 a95241bf-73f2-0310-859d-f6bbb57e9c96

338b8dc3 29-Oct-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged changes from branch build_system_redesign at revision 14573.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96

0f89f0ae 29-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed warnings, minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12120 a95241bf-73f2-0310-859d-f6bbb57e9c96

a4821468 12-Feb-2005 Matthew Wilber <mwilber@nowhere.fake>

Moved FuncTranslator.h to private headers, moved #include <FuncTranslator.h> from TranslatorRoster.h to TranslatorRoster.cpp.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11359 a95241bf-73f2-0310-859d-f6bbb57e9c96

dfb8c585 05-Feb-2005 Matthew Wilber <mwilber@nowhere.fake>

Updated with new Translation Kit version macro names.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11257 a95241bf-73f2-0310-859d-f6bbb57e9c96

969d8167 04-Jan-2005 Matthew Wilber <mwilber@nowhere.fake>

Removed silly PPMTranslator hack because it caused issues with the Haiku RTF-Translator and it really never should have been added in the first place.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10586 a95241bf-73f2-0310-859d-f6bbb57e9c96

4d13b0de 16-Nov-2004 shatty <shatty@nowhere.fake>

openbeos packages become haiku packages


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9979 a95241bf-73f2-0310-859d-f6bbb57e9c96

a689e076 24-Oct-2004 Matthew Wilber <mwilber@nowhere.fake>

"Fixed" BTranslatorRoster so that it no longer stores the list of translators backwards. This is the order that applications assume, so this must be done to prevent inconsistent behavior between the R5 translation kit and the Haiku version.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9490 a95241bf-73f2-0310-859d-f6bbb57e9c96

bc30a8cd 27-Jun-2004 Jérôme Duval <korli@users.berlios.de>

added a link in develop/lib


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8197 a95241bf-73f2-0310-859d-f6bbb57e9c96

af79a4ed 27-May-2004 haydentech <haydentech@nowhere.fake>

Fixed BBitmapStream return types that didn't match the class definition


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7667 a95241bf-73f2-0310-859d-f6bbb57e9c96

75b172d8 10-Apr-2004 Matthew Wilber <mwilber@nowhere.fake>

Added SGITranslator to list of included files


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7191 a95241bf-73f2-0310-859d-f6bbb57e9c96

d796ec82 29-Feb-2004 Matthew Wilber <mwilber@nowhere.fake>

Updated for version macro name changes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6799 a95241bf-73f2-0310-859d-f6bbb57e9c96

d5b989f7 28-Feb-2004 Matthew Wilber <mwilber@nowhere.fake>

Changed to use version macros


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6795 a95241bf-73f2-0310-859d-f6bbb57e9c96

01a21f20 17-Jan-2004 Matthew Wilber <mwilber@nowhere.fake>

Fixed GetTranslators to return the list of output formats in the order of most capable to least capable instead of before, where the list's order was the reverse of the order in which the translators were loaded.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6125 a95241bf-73f2-0310-859d-f6bbb57e9c96

f0730936 11-Jan-2004 Matthew Wilber <mwilber@nowhere.fake>

Added README file to Translation Kit Package


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6018 a95241bf-73f2-0310-859d-f6bbb57e9c96

7d181dbc 11-Jan-2004 Matthew Wilber <mwilber@nowhere.fake>

Created openbeos-translationkit-cvs Package


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6014 a95241bf-73f2-0310-859d-f6bbb57e9c96

61ac0c35 10-Jan-2004 Matthew Wilber <mwilber@nowhere.fake>

Changed GetAllTranslators to generate the list of Translators in the same order they were read in (instead of the reverse). This should cause the list of Translators in the DataTranslations pref and in Save As submenus to be in the same order as when using Be's version of the Translation Kit. Also changed the Translation Kit version string calculations to match those for the Translators. So, for R5, the version string becomes "Translation Kit v5.0.0" instead of "Translation Kit v12.8.0", which is what Be's version does, but doesn't appear right because it doesn't match the calculations the Translators use.. Note that the version number is still the same, only how it appears in the string is different.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6007 a95241bf-73f2-0310-859d-f6bbb57e9c96

b6aabb5c 10-Jan-2004 Matthew Wilber <mwilber@nowhere.fake>

Fixed AddTranslator to behave like Be's version: Translators passed to the function are added even if they are already in the list.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6006 a95241bf-73f2-0310-859d-f6bbb57e9c96

3b5dd3bc 08-Jan-2004 Matthew Wilber <mwilber@nowhere.fake>

Fixed LoadTranslator so that Translators won't be added to the roster if there is already a Translator loaded that has the same filename. Now Translators in /system/add-ons/Translators will not be loaded if there are Translators with the same names in /home/config/add-ons/Translators.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5997 a95241bf-73f2-0310-859d-f6bbb57e9c96

c8057f9b 04-Jan-2004 Matthew Wilber <mwilber@nowhere.fake>

Changed WriteStyledEditFile to be able to write plain text files on volumes that don't support attributes. Contributed by Andrew Bachmann


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5904 a95241bf-73f2-0310-859d-f6bbb57e9c96

c9cccf23 29-Oct-2003 Matthew Wilber <mwilber@nowhere.fake>

Changed BBitmapStream to behave more like Be's implementation while still checking for bad input.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5211 a95241bf-73f2-0310-859d-f6bbb57e9c96

73e65d4d 25-Oct-2003 Matthew Wilber <mwilber@nowhere.fake>

Changed TranslationUtils' manor of handling relative paths to match how Be's TranslationUtils handles them. Before, relative paths had the current directory as the base, now, relative paths use the folder containing the running application as the base. This issue prevented programs like Eden from loading properly with the OpenBeOS Translation Kit.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5162 a95241bf-73f2-0310-859d-f6bbb57e9c96

d3fdd732 26-Aug-2003 shatty <shatty@nowhere.fake>

fix the "extra bytes at the end" bug that happens when the existing file has more bytes than the new file. I chose to SetSize(textLength) after Write instead of SetSize(0) before the Write because there is less of a chance of complete data loss if the Write fails somehow. right? (write?) :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4385 a95241bf-73f2-0310-859d-f6bbb57e9c96

6ab18748 23-Jun-2003 Ingo Weinhold <ingo_weinhold@gmx.de>

Removed invocations of UsePublicHeaders, which was a no-op anyway.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3628 a95241bf-73f2-0310-859d-f6bbb57e9c96

bb87c791 11-Jan-2003 Matthew Wilber <mwilber@nowhere.fake>

Cleaned up a few little things


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2411 a95241bf-73f2-0310-859d-f6bbb57e9c96

755ac174 11-Jan-2003 Matthew Wilber <mwilber@nowhere.fake>

Changes made due to renaming of R4xTranslator to FuncTranslator


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2410 a95241bf-73f2-0310-859d-f6bbb57e9c96

27aa9660 11-Jan-2003 Matthew Wilber <mwilber@nowhere.fake>

renamed R4xTranslator.cpp to FuncTranslator.cpp


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2409 a95241bf-73f2-0310-859d-f6bbb57e9c96

9f9e1f50 10-Jan-2003 Matthew Wilber <mwilber@nowhere.fake>

A beta tester reported that PackageBuilder failed to load when the OBOS libtranslation.so was used. This was because the OBOS BBitmapStream was missing a protected function. I implemented the protected function (SwapHeader) and changed the class to use it instead of the previous functions that I wrote to provide similar behavior.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2405 a95241bf-73f2-0310-859d-f6bbb57e9c96

032ae6c6 28-Dec-2002 Matthew Wilber <mwilber@nowhere.fake>

added writing of "be:encoding" attribute to WriteStyledEditFile()


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2313 a95241bf-73f2-0310-859d-f6bbb57e9c96

9a18e28b 27-Dec-2002 Matthew Wilber <mwilber@nowhere.fake>

added more attribute writing to BTranslationUtils::WriteStyledEditFile() to better match what Be's StyledEdit writes for attributes. The code is still missing "be:encoding" but I want to make sure that I understand it fully before I add it.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2312 a95241bf-73f2-0310-859d-f6bbb57e9c96

5f4bf7bf 12-Dec-2002 Matthew Wilber <mwilber@nowhere.fake>

moved the logic from an unnessecary function to a nessecary function, and eliminated the unnessecary function


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2232 a95241bf-73f2-0310-859d-f6bbb57e9c96

f4eaaa86 17-Oct-2002 Matthew Wilber <mwilber@nowhere.fake>

fixed spelling issue and changed casting from C-style to new C++ style


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1572 a95241bf-73f2-0310-859d-f6bbb57e9c96

2d17c340 17-Oct-2002 Matthew Wilber <mwilber@nowhere.fake>

fixed spelling issue


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1571 a95241bf-73f2-0310-859d-f6bbb57e9c96

c48048d3 17-Oct-2002 Matthew Wilber <mwilber@nowhere.fake>

fixed spelling and changed casting from C-style to new C++ style


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1570 a95241bf-73f2-0310-859d-f6bbb57e9c96

e9651c05 17-Oct-2002 Matthew Wilber <mwilber@nowhere.fake>

fixed spelling and changed casting from C-Style to new C++ style


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1569 a95241bf-73f2-0310-859d-f6bbb57e9c96

76bfea45 11-Sep-2002 Matthew Wilber <mwilber@nowhere.fake>

Fixed bug that caused programs to crash when the default BTranslatorRoster is deleted, then the default BTranslatorRoster is used again


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1015 a95241bf-73f2-0310-859d-f6bbb57e9c96

11e94630 13-Aug-2002 Matthew Wilber <mwilber@nowhere.fake>

made sure that when Translator add-on symbols are missing from the add-on they default to a NULL value


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@747 a95241bf-73f2-0310-859d-f6bbb57e9c96

1ee8035d 13-Aug-2002 matzon <matzon@nowhere.fake>

fixed: check for null when checking in/outputFormats


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@746 a95241bf-73f2-0310-859d-f6bbb57e9c96

d359a8f9 12-Aug-2002 Matthew Wilber <mwilber@nowhere.fake>

Changed ReadAt() return codes so that when ReadAt() is called with pos >= the size of the BBitmap, it returns B_ERROR instead of B_BAD_VALUE. The BBitmapTranslator expects B_ERROR to be returned in this case and will return an error code as the result to the Translate call if B_ERROR is not returned.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@732 a95241bf-73f2-0310-859d-f6bbb57e9c96

ec80db22 02-Aug-2002 Matthew Wilber <mwilber@nowhere.fake>

added more/better error checking/handling


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@556 a95241bf-73f2-0310-859d-f6bbb57e9c96

cbb87528 01-Aug-2002 Matthew Wilber <mwilber@nowhere.fake>

added more/better error checking/handling, changed variables to more appropriate types, updated comments, changed some return codes


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@553 a95241bf-73f2-0310-859d-f6bbb57e9c96

7561e939 13-Jul-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

Added libtranslation.so to the build.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@182 a95241bf-73f2-0310-859d-f6bbb57e9c96

52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96