2 /* International support for LyX
9 #include FORMS_H_LOCATION
15 #include <sigc++/signal_system.h>
20 #include "trans_mgr.h"
30 #ifdef SIGC_CXX_NAMESPACES
32 using SigC::Connection;
35 /// default character set
36 #define DEFCHSET "iso8859-1"
39 /** The gui part and the non gui part should be split into two different
40 classes. Probably should the gui class just have a pointer to the non
43 class Intl : public Object {
50 /// show key mapping dialog
53 void KeyMapOn(bool on);
59 /// turn on/off key mappings, status in keymapon
63 int SetPrimary(string const &);
66 int SetSecondary(string const &);
68 /// initialize key mapper
69 void InitKeyMapper(bool on);
72 /// Get the Translation Manager
73 TransManager * getTrans();
75 // Get the Translation Manager
76 TransManager & getTrans();
85 static void DispatchCallback(FL_OBJECT *, long);
87 /** Redraw the form (on receipt of a Signal indicating, for example,
88 that the xform colors have been re-mapped).
94 static void LCombo(int i, void *, Combox *); // callback
96 void Keymap(long code);
103 FD_KeyMap * fd_form_keymap;
114 TransManager * trans;
119 /// Redraw connection.
126 TransManager * Intl::getTrans()
132 TransManager & Intl::getTrans()