Fl_Multi_Browser.H 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // "$Id: Fl_Multi_Browser.H 10882 2015-11-05 17:54:16Z manolo $"
  3. //
  4. // Multi browser header file 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_Multi_Browser widget . */
  20. #ifndef Fl_Multi_Browser_H
  21. #define Fl_Multi_Browser_H
  22. #include "Fl_Browser.H"
  23. /**
  24. The Fl_Multi_Browser class is a subclass of Fl_Browser
  25. which lets the user select any set of the lines. The user interface
  26. is Macintosh style: clicking an item turns off all the others and
  27. selects that one, dragging selects all the items the mouse moves over,
  28. and ctrl + click (Cmd+click on the Mac OS platform) toggles the items.
  29. Shift + click extends the selection until the clicked item.
  30. This is different from how forms did it.
  31. Normally the callback is done when the user releases the
  32. mouse, but you can change this with when().
  33. <P>See Fl_Browser for methods to add and remove lines from the browser.
  34. */
  35. class FL_EXPORT Fl_Multi_Browser : public Fl_Browser {
  36. public:
  37. /**
  38. Creates a new Fl_Multi_Browser widget using the given
  39. position, size, and label string. The default boxtype is FL_DOWN_BOX.
  40. The constructor specializes Fl_Browser() by setting the type to FL_MULTI_BROWSER.
  41. The destructor destroys the widget and frees all memory that has been allocated.
  42. */
  43. Fl_Multi_Browser(int X,int Y,int W,int H,const char *L=0);
  44. DECLARE_CLASS_CHEAP_RTTI_2(Fl_Multi_Browser, Fl_Browser)
  45. };
  46. #endif
  47. //
  48. // End of "$Id: Fl_Multi_Browser.H 10882 2015-11-05 17:54:16Z manolo $".
  49. //