Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Help_Dialog.h

00001 /*
00002  * $Id: Fl_Help_Dialog.h,v 1.4 2003/03/15 16:09:55 laza2000 Exp $
00003  *
00004  * Extended Fast Light Toolkit (EFLTK)
00005  * Copyright (C) 2002-2003 by EDE-Team
00006  * WWW: http://www.sourceforge.net/projects/ede
00007  *
00008  * Fast Light Toolkit (FLTK)
00009  * Copyright (C) 1998-2003 by Bill Spitzak and others.
00010  * WWW: http://www.fltk.org
00011  *
00012  * This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00013  * version 2. See COPYING for details.
00014  *
00015  * Author : Mikko Lahteenmaki
00016  * Email  : mikko@fltk.net
00017  *
00018  * Please report all bugs and problems to "efltk-bugs@fltk.net"
00019  *
00020  */
00021 
00022 #ifndef _FL_HELP_DIALOG_H_
00023 #define _FL_HELP_DIALOG_H_
00024 
00025 #include "Fl.h"
00026 #include "Fl_Main_Window.h"
00027 #include "Fl_Menu_Bar.h"
00028 #include "Fl_Item_Group.h"
00029 #include "Fl_Item.h"
00030 #include "Fl_Group.h"
00031 #include "Fl_Button.h"
00032 #include "Fl_File_Dialog.h"
00033 #include "Fl_Simple_Html.h"
00034 
00036 class Fl_Help_Dialog : public Fl_Main_Window
00037 {
00038 public:
00039     Fl_Help_Dialog(int x, int y, int w, int h, const char *l);
00040     Fl_Help_Dialog(int w, int h, const char *l);
00041     virtual ~Fl_Help_Dialog();
00042 
00043     void init();
00044     void make_group(int w, int h);
00045 
00046     void load(const char *f) { load_file(f); }
00047     void load_file(const char *f);
00048     void previous_url();
00049     void next_url();
00050     void open_file();
00051 
00052     // Method add/remove from history
00053     void push_prev(const char *url);
00054     char *pop_prev();
00055 
00056     void push_next(const char *url);
00057     char *pop_next();
00058 
00059 private:
00060     Fl_Simple_Html *htmlWidget;
00061 
00062     static void cb_close(Fl_Widget*, void*);
00063     static void cb_back(Fl_Button*, void*);
00064     static void cb_next(Fl_Button*, void*);
00065     static void cb_open(Fl_Button*, void*);
00066     static void cb_html_link(Fl_Widget *w, void *d);
00067 
00068     char *prev_hist[10];
00069     char *next_hist[10];
00070 
00071     Fl_Button *back, *next;
00072 };
00073 
00074 #endif

Generated on Thu Jul 31 15:33:43 2003 for eFLTK by doxygen1.2.15