diff options
Diffstat (limited to 'tqtinterface/qt4/plugins/src/codecs/jp')
-rw-r--r-- | tqtinterface/qt4/plugins/src/codecs/jp/jp.pro | 25 | ||||
-rw-r--r-- | tqtinterface/qt4/plugins/src/codecs/jp/main.cpp | 56 |
2 files changed, 0 insertions, 81 deletions
diff --git a/tqtinterface/qt4/plugins/src/codecs/jp/jp.pro b/tqtinterface/qt4/plugins/src/codecs/jp/jp.pro deleted file mode 100644 index 98ddbaa..0000000 --- a/tqtinterface/qt4/plugins/src/codecs/jp/jp.pro +++ /dev/null @@ -1,25 +0,0 @@ -TEMPLATE = lib -TARGET = qjpcodecs - -CONFIG += qt warn_on plugin -DESTDIR = ../../../codecs - -REQUIRES = !bigcodecs - -HEADERS = ../../../../include/tqeucjpcodec.h \ - ../../../../include/tqjiscodec.h \ - ../../../../include/tqsjiscodec.h \ - ../../../../include/tqjpunicode.h \ - ../../../../include/private/tqfontcodecs_p.h - -SOURCES = ../../../../src/codecs/tqeucjpcodec.cpp \ - ../../../../src/codecs/tqjiscodec.cpp \ - ../../../../src/codecs/tqsjiscodec.cpp \ - ../../../../src/codecs/tqjpunicode.cpp \ - ../../../../src/codecs/tqfontjpcodec.cpp \ - main.cpp - - -target.path += $$plugins.path/codecs -INSTALLS += target - diff --git a/tqtinterface/qt4/plugins/src/codecs/jp/main.cpp b/tqtinterface/qt4/plugins/src/codecs/jp/main.cpp deleted file mode 100644 index 8b0f8f9..0000000 --- a/tqtinterface/qt4/plugins/src/codecs/jp/main.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include <tqtextcodecplugin.h> -#include <tqtextcodec.h> -#include <tqptrlist.h> - -#include <tqeucjpcodec.h> -#include <tqjiscodec.h> -#include <tqsjiscodec.h> -#include <private/tqfontcodecs_p.h> - - -class JPTextCodecs : public TQTextCodecPlugin -{ -public: - JPTextCodecs() {} - - TQStringList names() const { return TQStringList() << "eucJP" << "JIS7" << "SJIS" << "jisx0208.1983-0"; } - TQValueList<int> mibEnums() const { return TQValueList<int>() << 16 << 17 << 18 << 63; } - TQTextCodec *createForMib( int ); - TQTextCodec *createForName( const TQString & ); -}; - -TQTextCodec *JPTextCodecs::createForMib( int mib ) -{ - switch (mib) { - case 16: - return new TQJisCodec; - case 17: - return new TQSjisCodec; - case 18: - return new TQEucJpCodec; - case 63: - return new TQFontJis0208Codec; - default: - ; - } - - return 0; -} - - -TQTextCodec *JPTextCodecs::createForName( const TQString &name ) -{ - if (name == "JIS7") - return new TQJisCodec; - if (name == "SJIS") - return new TQSjisCodec; - if (name == "eucJP") - return new TQEucJpCodec; - if (name == "jisx0208.1983-0") - return new TQFontJis0208Codec; - - return 0; -} - - -TQ_EXPORT_PLUGIN( JPTextCodecs ); |