You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.8KB

  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. /* \file
  28. Fl_Help_Dialog widget . */
  29. // generated by Fast Light User Interface Designer (fluid) version 1.0108
  30. #ifndef Fl_Help_Dialog_H
  31. #define Fl_Help_Dialog_H
  32. #include <FL/Fl.H>
  33. #include <FL/Fl_Double_Window.H>
  34. #include <FL/Fl_Group.H>
  35. #include <FL/Fl_Button.H>
  36. #include <FL/Fl_Input.H>
  37. #include <FL/Fl_Box.H>
  38. #include <FL/Fl_Help_View.H>
  39. class FL_EXPORT Fl_Help_Dialog {
  40. int index_;
  41. int max_;
  42. int line_[100]; // FIXME: we must remove those static numbers
  43. char file_[100][FL_PATH_MAX]; // FIXME: we must remove those static numbers
  44. int find_pos_;
  45. public:
  46. Fl_Help_Dialog();
  47. private:
  48. Fl_Double_Window *window_;
  49. Fl_Button *back_;
  50. void cb_back__i(Fl_Button*, void*);
  51. static void cb_back_(Fl_Button*, void*);
  52. Fl_Button *forward_;
  53. void cb_forward__i(Fl_Button*, void*);
  54. static void cb_forward_(Fl_Button*, void*);
  55. Fl_Button *smaller_;
  56. void cb_smaller__i(Fl_Button*, void*);
  57. static void cb_smaller_(Fl_Button*, void*);
  58. Fl_Button *larger_;
  59. void cb_larger__i(Fl_Button*, void*);
  60. static void cb_larger_(Fl_Button*, void*);
  61. Fl_Input *find_;
  62. void cb_find__i(Fl_Input*, void*);
  63. static void cb_find_(Fl_Input*, void*);
  64. Fl_Help_View *view_;
  65. void cb_view__i(Fl_Help_View*, void*);
  66. static void cb_view_(Fl_Help_View*, void*);
  67. public:
  68. ~Fl_Help_Dialog();
  69. int h();
  70. void hide();
  71. void load(const char *f);
  72. void position(int xx, int yy);
  73. void resize(int xx, int yy, int ww, int hh);
  74. void show();
  75. void show(int argc, char **argv);
  76. void textsize(Fl_Fontsize s);
  77. Fl_Fontsize textsize();
  78. void topline(const char *n);
  79. void topline(int n);
  80. void value(const char *f);
  81. const char * value() const;
  82. int visible();
  83. int w();
  84. int x();
  85. int y();
  86. };
  87. #endif
  88. //
  89. // End of "$Id: Fl_Help_Dialog.H 8063 2010-12-19 21:20:10Z matt $".
  90. //