Fl_Help_Dialog.H 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. //
  2. // "$Id: Fl_Help_Dialog.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
  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. Distribution and use rights are outlined in
  9. // the file "COPYING" which should have been included with this file. If this
  10. // file is missing or damaged, see the license at:
  11. //
  12. // http://www.fltk.org/COPYING.php
  13. //
  14. // Please report all bugs and problems on the following page:
  15. //
  16. // http://www.fltk.org/str.php
  17. //
  18. /* \file
  19. Fl_Help_Dialog widget . */
  20. // generated by Fast Light User Interface Designer (fluid) version 1.0108
  21. #ifndef Fl_Help_Dialog_H
  22. #define Fl_Help_Dialog_H
  23. #include <FL/Fl.H>
  24. #include <FL/Fl_Double_Window.H>
  25. #include <FL/Fl_Group.H>
  26. #include <FL/Fl_Button.H>
  27. #include <FL/Fl_Input.H>
  28. #include <FL/Fl_Box.H>
  29. #include <FL/Fl_Help_View.H>
  30. class FL_EXPORT Fl_Help_Dialog {
  31. int index_;
  32. int max_;
  33. int line_[100]; // FIXME: we must remove those static numbers
  34. char file_[100][FL_PATH_MAX]; // FIXME: we must remove those static numbers
  35. int find_pos_;
  36. public:
  37. Fl_Help_Dialog();
  38. private:
  39. Fl_Double_Window *window_;
  40. Fl_Button *back_;
  41. void cb_back__i(Fl_Button*, void*);
  42. static void cb_back_(Fl_Button*, void*);
  43. Fl_Button *forward_;
  44. void cb_forward__i(Fl_Button*, void*);
  45. static void cb_forward_(Fl_Button*, void*);
  46. Fl_Button *smaller_;
  47. void cb_smaller__i(Fl_Button*, void*);
  48. static void cb_smaller_(Fl_Button*, void*);
  49. Fl_Button *larger_;
  50. void cb_larger__i(Fl_Button*, void*);
  51. static void cb_larger_(Fl_Button*, void*);
  52. Fl_Input *find_;
  53. void cb_find__i(Fl_Input*, void*);
  54. static void cb_find_(Fl_Input*, void*);
  55. Fl_Help_View *view_;
  56. void cb_view__i(Fl_Help_View*, void*);
  57. static void cb_view_(Fl_Help_View*, void*);
  58. public:
  59. ~Fl_Help_Dialog();
  60. int h();
  61. void hide();
  62. void load(const char *f);
  63. void position(int xx, int yy);
  64. void resize(int xx, int yy, int ww, int hh);
  65. void show();
  66. void show(int argc, char **argv);
  67. void textsize(Fl_Fontsize s);
  68. Fl_Fontsize textsize();
  69. void topline(const char *n);
  70. void topline(int n);
  71. void value(const char *f);
  72. const char * value() const;
  73. int visible();
  74. int w();
  75. int x();
  76. int y();
  77. DECLARE_CLASS_CHEAP_RTTI_1(Fl_Help_Dialog)
  78. };
  79. #endif
  80. //
  81. // End of "$Id: Fl_Help_Dialog.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
  82. //