Changeset 3398 for trunk/jons-gtk2-gui

Show
Ignore:
Timestamp:
03/22/03 12:25:59 (6 years ago)
Author:
bostjanlah
Message:

Add character encodings

Location:
trunk/jons-gtk2-gui/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/jons-gtk2-gui/src/utilities.cpp

    r3382 r3398  
    2020 
    2121#include <gtk/gtk.h> 
     22#include "utilities.h" 
     23 
    2224#include <cstring> 
    2325#include <string> 
     
    114116  return h_box; 
    115117} 
     118 
     119encoding encodings[] = { 
     120  {"Unicode", "UTF-8"}, 
     121  {"Arabic", "ISO8859-6"}, 
     122  {"Arabic", "CP1256"}, 
     123  {"Baltic", "ISO8859-13"}, 
     124  {"Baltic", "CP1257"}, 
     125  {"Central European", "ISO8859-2"}, 
     126  {"Central European", "CP1250"}, 
     127  {"Chinese", "GBK"}, 
     128  {"Chinese Traditional", "Big5"}, 
     129  {"Cyrillic", "ISO8859-5"}, 
     130  {"Cyrillic", "KOI8-R"}, 
     131  {"Cyrillic", "CP1251"}, 
     132  {"Esperanto", "ISO8859-3"}, 
     133  {"Greek", "ISO8859-7"}, 
     134  {"Greek", "CP1253"}, 
     135  {"Hebrew", "ISO8859-8-I"}, 
     136  {"Hebrew", "CP1255"}, 
     137  {"Japanese", "Shift-JIS"}, 
     138  {"Japanese", "JIS7"}, 
     139  {"Japanese", "eucJP"}, 
     140  {"Korean", "eucKR"}, 
     141  {"Western European", "ISO8859-1"}, 
     142  {"Western European", "ISO8859-15"}, 
     143  {"Western European", "CP1252"}, 
     144  {"Tamil", "TSCII"}, 
     145  {"Thai", "TIS-620"}, 
     146  {"Turkish", "ISO8859-9"}, 
     147  {"Turkish", "CP1254"}, 
     148  {"Ukrainian", "KOI8-U"}, 
     149  {0, 0}}; // end marker 
  • trunk/jons-gtk2-gui/src/utilities.h

    r3382 r3398  
    2222hbutton_box_new(int spacing = 5,  
    2323    GtkButtonBoxStyle layout_style = GTK_BUTTONBOX_END); 
     24 
     25struct encoding { 
     26    char *name; 
     27    char *enc; 
     28}; 
     29 
     30extern encoding encodings[]; 
    2431#endif