Updated with new Translation Kit version macro names.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11257 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3bd1b732eb
commit
dfb8c585c6
@ -42,7 +42,7 @@
|
||||
#define BMP_RLE8_COMPRESS 1
|
||||
#define BMP_RLE4_COMPRESS 2
|
||||
|
||||
#define BMP_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VER(1,0,0)
|
||||
#define BMP_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(1,0,0)
|
||||
#define BMP_IN_QUALITY 0.4
|
||||
#define BMP_IN_CAPABILITY 0.8
|
||||
#define BMP_OUT_QUALITY 0.4
|
||||
|
@ -105,9 +105,9 @@ BMPView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(BMP_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(BMP_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(BMP_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(BMP_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(BMP_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(BMP_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
// TIFF Translator Settings
|
||||
#define TIFF_SETTING_COMPRESSION "tiff /compression"
|
||||
|
||||
#define TIFF_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VER(1,0,0)
|
||||
#define TIFF_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(1,0,0)
|
||||
|
||||
#define TIFF_IN_QUALITY 0.7
|
||||
#define TIFF_IN_CAPABILITY 0.6
|
||||
|
@ -204,9 +204,9 @@ TIFFView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(TIFF_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(TIFF_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(TIFF_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(TIFF_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(TIFF_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(TIFF_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
// PNG Translator Settings
|
||||
#define PNG_SETTING_INTERLACE "png /interlace"
|
||||
|
||||
#define PNG_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VER(1,0,0)
|
||||
#define PNG_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(1,0,0)
|
||||
|
||||
#define PNG_IN_QUALITY 0.8
|
||||
#define PNG_IN_CAPABILITY 0.8
|
||||
|
@ -152,9 +152,9 @@ PNGView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(PNG_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(PNG_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(PNG_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(PNG_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(PNG_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(PNG_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
|
||||
|
@ -31,9 +31,9 @@ ConfigView::ConfigView(const BRect &frame, uint32 resize, uint32 flags)
|
||||
rect.OffsetBy(0, height + 10);
|
||||
char version[256];
|
||||
sprintf(version, "Version %d.%d.%d, %s",
|
||||
int(B_TRANSLATION_MAJOR_VER(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_MINOR_VER(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_REVSN_VER(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_MAJOR_VERSION(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_MINOR_VERSION(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_REVISION_VERSION(RTF_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
stringView = new BStringView(rect, "version", version);
|
||||
stringView->ResizeToPreferred();
|
||||
|
@ -55,9 +55,9 @@ RTFTranslator::RTFTranslator()
|
||||
{
|
||||
char info[256];
|
||||
sprintf(info, "Rich Text Format Translator v%d.%d.%d %s",
|
||||
int(B_TRANSLATION_MAJOR_VER(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_MINOR_VER(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_REVSN_VER(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_MAJOR_VERSION(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_MINOR_VERSION(RTF_TRANSLATOR_VERSION)),
|
||||
int(B_TRANSLATION_REVISION_VERSION(RTF_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
|
||||
fInfo = strdup(info);
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <fs_attr.h>
|
||||
|
||||
|
||||
#define RTF_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VER(0, 6, 0)
|
||||
#define RTF_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(0, 6, 0)
|
||||
#define RTF_TEXT_FORMAT 'RTF '
|
||||
#define RTF_IN_QUALITY 0.7
|
||||
#define RTF_IN_CAPABILITY 0.9
|
||||
|
@ -45,7 +45,7 @@
|
||||
#include <fs_attr.h>
|
||||
#include "BaseTranslator.h"
|
||||
|
||||
#define SGI_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VER(1,0,0)
|
||||
#define SGI_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(1,0,0)
|
||||
|
||||
#define SGI_IN_QUALITY 0.5
|
||||
#define SGI_IN_CAPABILITY 0.6
|
||||
|
@ -278,9 +278,9 @@ SGIView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(SGI_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(SGI_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(SGI_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(SGI_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(SGI_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(SGI_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
|
||||
|
@ -64,9 +64,9 @@ BaseTranslator::BaseTranslator(const char *name, const char *info,
|
||||
strcpy(fName, name);
|
||||
fInfo = new char[strlen(info) + 41];
|
||||
sprintf(fInfo, "%s v%d.%d.%d %s", info,
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(fVersion)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(fVersion)),
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(fVersion)),
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(fVersion)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(fVersion)),
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(fVersion)),
|
||||
__DATE__);
|
||||
|
||||
fInputFormats = inFormats;
|
||||
|
@ -43,7 +43,7 @@
|
||||
#include <fs_attr.h>
|
||||
#include "BaseTranslator.h"
|
||||
|
||||
#define STXT_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VER(1,0,0)
|
||||
#define STXT_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(1,0,0)
|
||||
#define STXT_IN_QUALITY 0.5
|
||||
#define STXT_IN_CAPABILITY 0.5
|
||||
#define STXT_OUT_QUALITY 0.5
|
||||
|
@ -107,9 +107,9 @@ STXTView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(STXT_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(STXT_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(STXT_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(STXT_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(STXT_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(STXT_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
/* char copyright[] = "© 2002 OpenBeOS Project";
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include <ByteOrder.h>
|
||||
#include "BaseTranslator.h"
|
||||
|
||||
#define TGA_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VER(1,0,0)
|
||||
#define TGA_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(1,0,0)
|
||||
#define TGA_IN_QUALITY 0.7
|
||||
#define TGA_IN_CAPABILITY 0.8
|
||||
#define TGA_OUT_QUALITY 0.7
|
||||
|
@ -191,9 +191,9 @@ TGAView::Draw(BRect area)
|
||||
|
||||
char detail[100];
|
||||
sprintf(detail, "Version %d.%d.%d %s",
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(TGA_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(TGA_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(TGA_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(TGA_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(TGA_TRANSLATOR_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(TGA_TRANSLATOR_VERSION)),
|
||||
__DATE__);
|
||||
DrawString(detail, BPoint(xbold, yplain + ybold));
|
||||
/* char copyright[] = "© 2002 OpenBeOS Project";
|
||||
|
@ -329,9 +329,9 @@ BTranslatorRoster::Version(int32 *outCurVersion, int32 *outMinVersion,
|
||||
static char vDate[] = __DATE__;
|
||||
if (!vString[0]) {
|
||||
sprintf(vString, "Translation Kit v%d.%d.%d %s\n",
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(B_TRANSLATION_CURRENT_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(B_TRANSLATION_CURRENT_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(B_TRANSLATION_CURRENT_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(B_TRANSLATION_CURRENT_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(B_TRANSLATION_CURRENT_VERSION)),
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(B_TRANSLATION_CURRENT_VERSION)),
|
||||
vDate);
|
||||
}
|
||||
*outCurVersion = B_TRANSLATION_CURRENT_VERSION;
|
||||
|
@ -264,9 +264,9 @@ DataTranslationsWindow::MessageReceived(BMessage *message)
|
||||
else {
|
||||
// Convert the version number into a readable format
|
||||
strInfoMsg <<
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VER(tranVersion)) << '.' <<
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VER(tranVersion)) << '.' <<
|
||||
static_cast<int>(B_TRANSLATION_REVSN_VER(tranVersion));
|
||||
static_cast<int>(B_TRANSLATION_MAJOR_VERSION(tranVersion)) << '.' <<
|
||||
static_cast<int>(B_TRANSLATION_MINOR_VERSION(tranVersion)) << '.' <<
|
||||
static_cast<int>(B_TRANSLATION_REVISION_VERSION(tranVersion));
|
||||
}
|
||||
strInfoMsg << "\nInfo: " << tranInfo <<
|
||||
"\nPath: " << tranPath.Path() << "\n";
|
||||
|
@ -1159,7 +1159,7 @@ BMPTranslatorTest::LoadAddOnTest()
|
||||
this,
|
||||
gBMPInputFormats, sizeof(gBMPInputFormats) / sizeof(translation_format),
|
||||
gBMPOutputFormats, sizeof(gBMPOutputFormats) / sizeof(translation_format),
|
||||
B_TRANSLATION_MAKE_VER(1,0,0));
|
||||
B_TRANSLATION_MAKE_VERSION(1,0,0));
|
||||
}
|
||||
|
||||
#endif // #if !TEST_R5
|
||||
|
@ -26,7 +26,7 @@
|
||||
// PNG Translator Settings
|
||||
#define PNG_SETTING_INTERLACE "png /interlace"
|
||||
|
||||
#define PNG_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VER(1,0,0)
|
||||
#define PNG_TRANSLATOR_VERSION B_TRANSLATION_MAKE_VERSION(1,0,0)
|
||||
|
||||
#define PNG_IN_QUALITY 0.8
|
||||
#define PNG_IN_CAPABILITY 0.8
|
||||
@ -458,7 +458,7 @@ PNGTranslatorTest::LoadAddOnTest()
|
||||
this,
|
||||
gPNGInputFormats, sizeof(gPNGInputFormats) / sizeof(translation_format),
|
||||
gPNGOutputFormats, sizeof(gPNGOutputFormats) / sizeof(translation_format),
|
||||
B_TRANSLATION_MAKE_VER(1,0,0));
|
||||
PNG_TRANSLATOR_VERSION);
|
||||
}
|
||||
|
||||
#endif // #if !TEST_R5
|
||||
|
@ -472,7 +472,7 @@ STXTTranslatorTest::LoadAddOnTest()
|
||||
this,
|
||||
gSTXTInputFormats, sizeof(gSTXTInputFormats) / sizeof(translation_format),
|
||||
gSTXTOutputFormats, sizeof(gSTXTOutputFormats) / sizeof(translation_format),
|
||||
B_TRANSLATION_MAKE_VER(1,0,0));
|
||||
B_TRANSLATION_MAKE_VERSION(1,0,0));
|
||||
}
|
||||
|
||||
#endif // #if !TEST_R5
|
||||
|
@ -612,7 +612,7 @@ TGATranslatorTest::LoadAddOnTest()
|
||||
this,
|
||||
gTGAInputFormats, sizeof(gTGAInputFormats) / sizeof(translation_format),
|
||||
gTGAOutputFormats, sizeof(gTGAOutputFormats) / sizeof(translation_format),
|
||||
B_TRANSLATION_MAKE_VER(1,0,0));
|
||||
B_TRANSLATION_MAKE_VERSION(1,0,0));
|
||||
}
|
||||
|
||||
#endif // #if !TEST_R5
|
||||
|
@ -468,7 +468,7 @@ TIFFTranslatorTest::LoadAddOnTest()
|
||||
this,
|
||||
gTIFFInputFormats, sizeof(gTIFFInputFormats) / sizeof(translation_format),
|
||||
gTIFFOutputFormats, sizeof(gTIFFOutputFormats) / sizeof(translation_format),
|
||||
B_TRANSLATION_MAKE_VER(1,0,0));
|
||||
B_TRANSLATION_MAKE_VERSION(1,0,0));
|
||||
}
|
||||
|
||||
#endif // #if !TEST_R5
|
||||
|
Loading…
Reference in New Issue
Block a user