FLTK 1.3.0
|
00001 // 00002 // "$Id$" 00003 // 00004 // Fl_Help_Dialog dialog for the Fast Light Tool Kit (FLTK). 00005 // 00006 // Copyright 1998-2010 by Bill Spitzak and others. 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Library General Public 00010 // License as published by the Free Software Foundation; either 00011 // version 2 of the License, or (at your option) any later version. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Library General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Library General Public 00019 // License along with this library; if not, write to the Free Software 00020 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00021 // USA. 00022 // 00023 // Please report all bugs and problems on the following page: 00024 // 00025 // http://www.fltk.org/str.php 00026 // 00027 00028 /* \file 00029 Fl_Help_Dialog widget . */ 00030 00031 // generated by Fast Light User Interface Designer (fluid) version 1.0108 00032 00033 #ifndef Fl_Help_Dialog_H 00034 #define Fl_Help_Dialog_H 00035 #include <FL/Fl.H> 00036 #include <FL/Fl_Double_Window.H> 00037 #include <FL/Fl_Group.H> 00038 #include <FL/Fl_Button.H> 00039 #include <FL/Fl_Input.H> 00040 #include <FL/Fl_Box.H> 00041 #include <FL/Fl_Help_View.H> 00042 00043 class FL_EXPORT Fl_Help_Dialog { 00044 int index_; 00045 int max_; 00046 int line_[100]; // FIXME: we must remove those static numbers 00047 char file_[100][FL_PATH_MAX]; // FIXME: we must remove those static numbers 00048 int find_pos_; 00049 public: 00050 Fl_Help_Dialog(); 00051 private: 00052 Fl_Double_Window *window_; 00053 Fl_Button *back_; 00054 void cb_back__i(Fl_Button*, void*); 00055 static void cb_back_(Fl_Button*, void*); 00056 Fl_Button *forward_; 00057 void cb_forward__i(Fl_Button*, void*); 00058 static void cb_forward_(Fl_Button*, void*); 00059 Fl_Button *smaller_; 00060 void cb_smaller__i(Fl_Button*, void*); 00061 static void cb_smaller_(Fl_Button*, void*); 00062 Fl_Button *larger_; 00063 void cb_larger__i(Fl_Button*, void*); 00064 static void cb_larger_(Fl_Button*, void*); 00065 Fl_Input *find_; 00066 void cb_find__i(Fl_Input*, void*); 00067 static void cb_find_(Fl_Input*, void*); 00068 Fl_Help_View *view_; 00069 void cb_view__i(Fl_Help_View*, void*); 00070 static void cb_view_(Fl_Help_View*, void*); 00071 public: 00072 ~Fl_Help_Dialog(); 00073 int h(); 00074 void hide(); 00075 void load(const char *f); 00076 void position(int xx, int yy); 00077 void resize(int xx, int yy, int ww, int hh); 00078 void show(); 00079 void show(int argc, char **argv); 00080 void textsize(Fl_Fontsize s); 00081 Fl_Fontsize textsize(); 00082 void topline(const char *n); 00083 void topline(int n); 00084 void value(const char *f); 00085 const char * value() const; 00086 int visible(); 00087 int w(); 00088 int x(); 00089 int y(); 00090 }; 00091 #endif 00092 00093 // 00094 // End of "$Id$". 00095 //