1 //
2 // "$Id: Fl_Help_Dialog.H 8063 2010-12-19 21:20:10Z matt $"
3 //
4 // Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK).
5 //
6 // Copyright 1998-2010 by Bill Spitzak and others.
7 //
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Library General Public
10 // License as published by the Free Software Foundation; either
11 // version 2 of the License, or (at your option) any later version.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 // Library General Public License for more details.
17 //
18 // You should have received a copy of the GNU Library General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 // USA.
22 //
23 // Please report all bugs and problems on the following page:
24 //
25 //     http://www.fltk.org/str.php
26 //
27 
28 /* \file
29    Fl_Help_Dialog widget . */
30 
31 // generated by Fast Light User Interface Designer (fluid) version 1.0108
32 
33 #ifndef Fl_Help_Dialog_H
34 #define Fl_Help_Dialog_H
35 #include <FL/Fl.H>
36 #include <FL/Fl_Double_Window.H>
37 #include <FL/Fl_Group.H>
38 #include <FL/Fl_Button.H>
39 #include <FL/Fl_Input.H>
40 #include <FL/Fl_Box.H>
41 #include <FL/Fl_Help_View.H>
42 
43 class FL_EXPORT Fl_Help_Dialog {
44   int index_;
45   int max_;
46   int line_[100];                 // FIXME: we must remove those static numbers
47   char file_[100][FL_PATH_MAX];   // FIXME: we must remove those static numbers
48   int find_pos_;
49 public:
50   Fl_Help_Dialog();
51 private:
52   Fl_Double_Window *window_;
53   Fl_Button *back_;
54   void cb_back__i(Fl_Button*, void*);
55   static void cb_back_(Fl_Button*, void*);
56   Fl_Button *forward_;
57   void cb_forward__i(Fl_Button*, void*);
58   static void cb_forward_(Fl_Button*, void*);
59   Fl_Button *smaller_;
60   void cb_smaller__i(Fl_Button*, void*);
61   static void cb_smaller_(Fl_Button*, void*);
62   Fl_Button *larger_;
63   void cb_larger__i(Fl_Button*, void*);
64   static void cb_larger_(Fl_Button*, void*);
65   Fl_Input *find_;
66   void cb_find__i(Fl_Input*, void*);
67   static void cb_find_(Fl_Input*, void*);
68   Fl_Help_View *view_;
69   void cb_view__i(Fl_Help_View*, void*);
70   static void cb_view_(Fl_Help_View*, void*);
71 public:
72   ~Fl_Help_Dialog();
73   int h();
74   void hide();
75   void load(const char *f);
76   void position(int xx, int yy);
77   void resize(int xx, int yy, int ww, int hh);
78   void show();
79   void show(int argc, char **argv);
80   void textsize(Fl_Fontsize s);
81   Fl_Fontsize textsize();
82   void topline(const char *n);
83   void topline(int n);
84   void value(const char *f);
85   const char * value() const;
86   int visible();
87   int w();
88   int x();
89   int y();
90 };
91 #endif
92 
93 //
94 // End of "$Id: Fl_Help_Dialog.H 8063 2010-12-19 21:20:10Z matt $".
95 //
96