2 Nov 2007 17:27
Abstract graphical user interface for TeXmacs
Joris van der Hoeven <vdhoeven <at> texmacs.org>
2007-11-02 16:27:12 GMT
2007-11-02 16:27:12 GMT
Hi all,
On the CVS version of TeXmacs, I just completed the abstraction of
the graphical user interface for TeXmacs. This should make it relatively
easy to port TeXmacs to other operating systems (Windows, MacOS)
and use standard toolkit libraries (Qt, Gtk, Aqua, etc.)
for a more native look and feel.
The code has been reorganized as follows:
1) Abstract layers in src/Graphics/Gui and src/Graphics/Renderer.
2) The old X11 interface in src/Plugins/X11.
3) The default TeXmacs widget library in src/Plugins/Widkit.
The font system in src/Graphics/Fonts and src/Graphics/Bitmap_fonts
will be reorganized later.
There are three ways in which external plug-ins can provide
functionality to TeXmacs:
1) By providing a new implementation of renderer.hpp, you can connect
your favorite graphics library (e.g. Cairo) to TeXmacs.
2) By providing implementations of gui.hpp, window.hpp and renderer.hpp,
you can port TeXmacs to another environment where you don't have X11.
3) By providing implementations of gui.hpp, renderer.hpp and widget.hpp,
you can use your own widget library instead of the native TeXmacs widgets.
It should be noticed that no implementation of window.hpp is required
for ports of type 3. However, we highly recomment to always start with step 2
before diving into step 3:
(Continue reading)
RSS Feed