Axel Dörfler
9acf186f65
* 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
2006-03-11 12:50:47 +00:00
Axel Dörfler
dd344f7934
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
2005-12-06 16:34:13 +00:00
Ingo Weinhold
155b583ac3
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
2005-11-09 16:17:31 +00:00
Ingo Weinhold
54bb4f57cf
Fixed build for target R5.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14689 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-04 13:41:12 +00:00
Ingo Weinhold
338b8dc301
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
2005-10-29 16:27:43 +00:00
Axel Dörfler
0f89f0ae14
Fixed warnings, minor cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-29 15:58:27 +00:00
Matthew Wilber
a4821468d6
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
2005-02-12 14:38:18 +00:00
Matthew Wilber
dfb8c585c6
Updated with new Translation Kit version macro names.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-05 18:22:17 +00:00
Matthew Wilber
969d816792
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
2005-01-05 02:14:09 +00:00
shatty
4d13b0dee0
openbeos packages become haiku packages
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-17 00:39:28 +00:00
Matthew Wilber
a689e076c3
"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
2004-10-24 19:42:05 +00:00
Jérôme Duval
bc30a8cdb5
added a link in develop/lib
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8197 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 21:53:26 +00:00
haydentech
af79a4edf2
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
2004-05-27 19:49:35 +00:00
Matthew Wilber
75b172d82d
Added SGITranslator to list of included files
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-10 19:58:09 +00:00
Matthew Wilber
d796ec827a
Updated for version macro name changes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 16:55:12 +00:00
Matthew Wilber
d5b989f7ff
Changed to use version macros
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6795 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-28 19:17:11 +00:00
Matthew Wilber
01a21f2027
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
2004-01-18 03:06:59 +00:00
Matthew Wilber
f073093624
Added README file to Translation Kit Package
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-11 15:22:08 +00:00
Matthew Wilber
7d181dbc57
Created openbeos-translationkit-cvs Package
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-11 07:15:48 +00:00
Matthew Wilber
61ac0c3523
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
2004-01-10 21:03:36 +00:00
Matthew Wilber
b6aabb5c95
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
2004-01-10 19:47:28 +00:00
Matthew Wilber
3b5dd3bc32
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
2004-01-09 04:40:52 +00:00
Matthew Wilber
c8057f9baa
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
2004-01-04 20:20:14 +00:00
Matthew Wilber
c9cccf232a
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
2003-10-30 12:32:25 +00:00
Matthew Wilber
73e65d4da8
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
2003-10-25 15:35:54 +00:00
shatty
d3fdd732fa
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
2003-08-27 01:33:17 +00:00
Ingo Weinhold
6ab18748f3
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
2003-06-23 16:53:22 +00:00
Matthew Wilber
bb87c791cb
Cleaned up a few little things
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-11 15:56:02 +00:00
Matthew Wilber
755ac1744b
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
2003-01-11 13:56:45 +00:00
Matthew Wilber
27aa9660b3
renamed R4xTranslator.cpp to FuncTranslator.cpp
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-11 13:55:35 +00:00
Matthew Wilber
9f9e1f50fb
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
2003-01-11 03:19:28 +00:00
Matthew Wilber
032ae6c6e4
added writing of "be:encoding" attribute to WriteStyledEditFile()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-28 15:41:37 +00:00
Matthew Wilber
9a18e28b6d
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
2002-12-28 04:09:38 +00:00
Matthew Wilber
5f4bf7bf85
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
2002-12-13 00:31:07 +00:00
Matthew Wilber
f4eaaa86d5
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
2002-10-18 03:27:43 +00:00
Matthew Wilber
2d17c340c7
fixed spelling issue
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-18 03:27:10 +00:00
Matthew Wilber
c48048d386
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
2002-10-18 03:26:49 +00:00
Matthew Wilber
e9651c05a1
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
2002-10-18 03:26:18 +00:00
Matthew Wilber
76bfea45a3
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
2002-09-12 00:10:23 +00:00
Matthew Wilber
11e946307a
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
2002-08-13 16:22:40 +00:00
matzon
1ee8035dab
fixed: check for null when checking in/outputFormats
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 15:57:39 +00:00
Matthew Wilber
d359a8f9ef
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
2002-08-13 03:48:56 +00:00
Matthew Wilber
ec80db22cf
added more/better error checking/handling
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-02 16:52:27 +00:00
Matthew Wilber
cbb8752877
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
2002-08-02 02:52:36 +00:00
Ingo Weinhold
7561e939f5
Added libtranslation.so to the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-13 20:38:56 +00:00
ejakowatz
52a3801208
It is accomplished ...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-09 12:24:59 +00:00