diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Dillo.txt | 2 | ||||
-rw-r--r-- | doc/dw-usage.doc | 14 | ||||
-rw-r--r-- | doc/fltk-problems.doc | 50 | ||||
-rw-r--r-- | doc/user_help.html | 20 |
4 files changed, 36 insertions, 50 deletions
diff --git a/doc/Dillo.txt b/doc/Dillo.txt index b9ef0513..a63c9588 100644 --- a/doc/Dillo.txt +++ b/doc/Dillo.txt @@ -23,7 +23,7 @@ developers. Dillo can be viewed as the sum of five main parts: - 1.- Dillo Widget: A custom widget, FLTK2 based, that holds the + 1.- Dillo Widget: A custom widget, FLTK-based, that holds the necessary data structures and mechanisms for graphical rendering. (Described in Dw*.txt, dw*.c files among the sources.) diff --git a/doc/dw-usage.doc b/doc/dw-usage.doc index 32080d74..a23920b8 100644 --- a/doc/dw-usage.doc +++ b/doc/dw-usage.doc @@ -23,8 +23,8 @@ As described in \ref dw-overview, the following objects are needed: First of all, the necessary \#include's: \code -#include <fltk/Window.h> -#include <fltk/run.h> +#include <FL/Fl_Window.H> +#include <FL/Fl.H> #include "dw/core.hh" #include "dw/fltkcore.hh" @@ -54,7 +54,7 @@ Then, the layout is created, with the platform attached: For the view, we first need a FLTK window: \code - fltk::Window *window = new fltk::Window(200, 300, "Dw Example"); + Fl_Window *window = new Fl_Window(200, 300, "Dw Example"); window->begin(); \endcode @@ -88,6 +88,8 @@ defined: fontAttrs.size = 14; fontAttrs.weight = 400; fontAttrs.style = dw::core::style::FONT_STYLE_NORMAL; + fontAttrs.letterSpacing = 0; + fontAttrs.fontVariant = dw::core::style::FONT_VARIANT_NORMAL; \endcode Now, the font can be created: @@ -101,9 +103,9 @@ defined, here dw::core::style::Color::createSimple must be called: \code styleAttrs.color = - dw::core::style::Color::createSimple (layout, 0x000000); + dw::core::style::Color::create (layout, 0x000000); styleAttrs.backgroundColor = - dw::core::style::Color::createSimple (layout, 0xffffff); + dw::core::style::Color::create (layout, 0xffffff); \endcode Finally, the style for the widget is created: @@ -193,7 +195,7 @@ Some FLTK stuff to finally show the window: \code window->resizable(viewport); window->show(); - int errorCode = fltk::run(); + int errorCode = Fl::run(); \endcode For cleaning up, it is sufficient to destroy the layout: diff --git a/doc/fltk-problems.doc b/doc/fltk-problems.doc index 6f20c44d..df4f1f14 100644 --- a/doc/fltk-problems.doc +++ b/doc/fltk-problems.doc @@ -26,10 +26,8 @@ Current problems: <li> There is the problem, that fltk::font always returns a font, the required one, or a replacements. The latter is not wanted in all cases, e.g. when several fonts are tested. Perhaps, this could be - solved by searching in the font list. - -<li> In dw::fltk::FltkFont::FltkFont, fltk::measure does not seem to work - for the calculation of dw::core::style::Font::xHeight. + solved by searching in the font list. <i>[This was true of fltk2. + What is the state of font handling now with fltk-1.3?]</i> <li> Distinction between italics and oblique would be nice (dw::fltk::FltkFont::FltkFont). @@ -38,7 +36,7 @@ Current problems: <h2>dw::fltk::ui::FltkCheckButtonResource</h2> -Groups of fltk::RadioButton must be added to one fltk::Group, which is +Groups of Fl_Radio_Button must be added to one Fl_Group, which is not possible in this context. There are two alternatives: <ol> @@ -58,7 +56,7 @@ be used. Then, it is for X necessary to use GCs with clipping masks. <h2>dw::fltk::ui::ComplexButton</h2> -Unfortunately, FLTK does not provide a button with Group as parent, so +Unfortunately, FLTK does not provide a button with Fl_Group as parent, so that children may be added to the button. dw::fltk::ui::ComplexButton does exactly this, and is, in an ugly way, a modified copy of the FLTK button. @@ -70,7 +68,7 @@ If the files do not compile, it may be useful to create a new one from the FLTK source: <ol> -<li> Copy fltk/Button.h from FLTK to dw/fltkcomplexbutton.hh and +<li> Copy Fl_Button.H from FLTK to dw/fltkcomplexbutton.hh and src/Button.cxx to dw/fltkcomplexbutton.cc. <li> In both files, rename "Button" to "ComplexButton". Automatic replacing @@ -120,17 +118,15 @@ at the beginning and at the end. Most important, the base class is changed: \code --#ifndef fltk_Widget_h --#include "Widget.h" --#endif -+#include <fltk/Group.h> +-#include "FL/Fl_Widget.H" ++#include <FL/Fl_Group.H> \endcode and \code --class FL_API ComplexButton : public Widget { -+class ComplexButton: public ::fltk::Group +-class FL_API ComplexButton : public Fl_Widget { ++class ComplexButton: public Fl_Group +{ \endcode @@ -148,12 +144,10 @@ First, \#include's: \code - #include <fltk/events.h> - #include <fltk/damage.h> --#include <fltk/ComplexButton.h> // <fltk/Button.h> formerly - #include <fltk/Group.h> - #include <fltk/Box.h> - #include <stdlib.h> + #include <FL/Fl.H> +-#include <FL/ComplexButton.h> // <FL/Fl_Button.H> formerly + #include <FL/Fl_Group.H> + #include <FL/Fl_Window.H> + +#include "fltkcomplexbutton.hh" \endcode @@ -162,33 +156,23 @@ Second, namespaces: \code +using namespace dw::fltk::ui; - using namespace fltk; \endcode -Since the base class is now Group, the constructor must be changed: +Since the base class is now Fl_Group, the constructor must be changed: \code --ComplexButton::ComplexButton(int x,int y,int w,int h, const char *l) : Widget(x,y,w,h,l) { +-ComplexButton::ComplexButton(int x,int y,int w,int h, const char *l) : Fl_Widget(x,y,w,h,l) { +ComplexButton::ComplexButton(int x,int y,int w,int h, const char *l) : -+ Group(x,y,w,h,l) ++ Fl_Group(x,y,w,h,l) +{ \endcode -At the end of the constructor, - -\code -+ type (NORMAL); - } -\endcode - -must be added (I've forgotten, what this is for). - Finally, the button must draw its children (end of dw::fltk::ui::ComplexButton::draw()): \code + -+ for (int i = 0; i < children (); i++) ++ for (int i = children () - 1; i >= 0; i--) + draw_child (*child (i)); } \endcode diff --git a/doc/user_help.html b/doc/user_help.html index 91dc748f..c0fae345 100644 --- a/doc/user_help.html +++ b/doc/user_help.html @@ -9,7 +9,7 @@ <body bgcolor='#778899' text='#000000'> <table bgcolor="#70a0c0" border="1" cellpadding="5"> - <tr><td><h1>Help for Dillo 2.2</h1> + <tr><td><h1>Help for Dillo 3.0</h1> </table> <p> <table WIDTH="100%" BORDER=1 CELLSPACING=0 CELLPADDING=5> @@ -37,7 +37,7 @@ <li> Some of the functions in Dillo are handled by independent processes. For instance, downloads come through <em>wget</em>. If Dillo exits, the download can continue (more details - below). + below). </ul> </td></tr> </table> @@ -67,9 +67,9 @@ of the page currently viewed, but it will *not* reload embedded images during this process. <li> Dialogs can be closed with the ESC key. - <li> If you want to try a different control panel, right-click over the - search button until you find one that suits your needs, then make - it the default in your <code>dillorc</code> file. + <li> You can try the different control panel size options listed in the + Tools menu, and make any changes permanent by editing your + <code>dillorc</code> file. <li> The whole window area can be used to display the page. Just hit Ctrl-Space! </ul> @@ -84,7 +84,7 @@ <tr><td BGCOLOR="#70a0c0"> <p> Downloads are made using <b><font color="#5040a0">wget</font></b> - with a FLTK2-based GUI wrapper, through the Dillo plugin (dpi) framework. + with a FLTK-based GUI wrapper, through the Dillo plugin (dpi) framework. If you close the browser window, downloads will continue. <p> </td></tr> @@ -232,7 +232,7 @@ <li>If you don't have root access, install <em>dpid</em> and the <em>dpis</em> inside your <code>~/.dillo/</code> directory as explained - in the README file. + in the README file. </ul> </td></tr> </table> @@ -273,15 +273,15 @@ <tr><td>Ctrl-R <td>Reload <td>reload current page <tr><td>Ctrl-N <td>New <td>New browser window <tr><td>Ctrl-T <td>Tab <td>New tab -<tr><td>Ctrl-Q <td>Quit <td>quit tab/window +<tr><td>Ctrl-W <td>Window <td>quit tab/window <tr><td>Ctrl-O <td>Open <td>Open file <tr><td>Ctrl-B <td>Bookmarks <td>view bookmarks -<tr><td>Ctrl-Space <td>"more space!" <td>Hide/show controls +<tr><td>Ctrl-Space or Esc <td>"more space!" <td>Hide/show controls +<tr><td>Ctrl-Q <td>Quit <td>exit Dillo <tr><td>Back or "<b>,</b>" <td>< <td>previous page <tr><td>Shift-Back or "<b>.</b>" <td>> <td>next page <tr><td>Esc <td>escape <td>close dialog <tr><td>Alt-F <td>File <td>file menu -<tr><td>Alt-X <td>eXit <td>exit Dillo <tr><td>Shift-Right <td>Right <td>Next tab <tr><td>Shift-Left <td>Left <td>Previous tab <tr><td>Ctrl-TabKey <td>TabKey <td>Next tab |