Show
Ignore:
Timestamp:
01/22/10 19:44:34 (2 years ago)
Author:
sven-win
Message:

Umfangreiche Weiterentwicklung (letzte Entwicklung am Netbook). Driver fuer M200 erstmals testweise implementiert; funktioniert(e mit Netbook).

-- Sven @ netboo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • punch-card-project/trunk/punch-card-editor/src/text/codec.cc

    r58 r59  
    5454} 
    5555 
    56 CharArrayCodec::CharArrayCodec(const int* table, char illegal) : Codec(illegal) { 
     56CharArrayCodec::CharArrayCodec(const int* table, char illegal, const QString& name) : Codec(illegal,name) { 
    5757        d = new Data; 
    5858        d->table = table; 
     
    7777QList<QString> CodecFactory::availableCodecs() { 
    7878        QList<QString> list; 
    79         list << "o29_code" << "o29_ftn_code" << "o26_comm_code"; 
     79        list << "o29_code" << "o29_ftn_code" << "o26_comm_code" << "ebcdic_code"; 
    8080        return list; 
    8181} 
     
    8484        if(!CodecFactory::codec_cache.contains(name)) { 
    8585                if("o29_code" == name) 
    86                         CodecFactory::codec_cache[name] = new CharArrayCodec(o29_code, illegal); 
     86                        CodecFactory::codec_cache[name] = new CharArrayCodec(o29_code, illegal, 
     87                                "IBM 029 keypunch encoding (DEC's version)"); 
    8788                else if("o26_ftn_code" == name) 
    88                         CodecFactory::codec_cache[name] = new CharArrayCodec(o26_ftn_code, illegal); 
     89                        CodecFactory::codec_cache[name] = new CharArrayCodec(o26_ftn_code, illegal, 
     90                                "IBM 026 keypunch encoding (subset)"); 
    8991                else if("o26_comm_code" == name) 
    90                         CodecFactory::codec_cache[name] = new CharArrayCodec(o26_comm_code, illegal); 
     92                        CodecFactory::codec_cache[name] = new CharArrayCodec(o26_comm_code, illegal, 
     93                                "IBM 026 Common Code"); 
     94                else if("ebcdic_code" == name) 
     95                        CodecFactory::codec_cache[name] = new CharArrayCodec(EBCDIC_code, illegal, 
     96                                "FULL EBCDIC"); 
    9197                else { 
    9298                        qDebug() << QString("Codec '%s' not supported!").arg(name); 
© 2008 - 2010 Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License