]> git.mxchange.org Git - flightgear.git/blob - src/GUI/puList.hxx
Melchior: Make line wrapping in textboxes configurable, and enable it by default
[flightgear.git] / src / GUI / puList.hxx
1 // puList.hxx - a scrolling PUI list box.
2
3 #ifndef __PULIST_HXX
4 #define __PULIST_HXX 1
5
6 #ifdef HAVE_CONFIG_H
7 #  include <config.h>
8 #endif
9
10 #include <plib/pu.h>
11
12 # define PUCLASS_LIST   0x80000000  // Hopefully this value will never be used by plib
13 # define PUCLASS_LIST   0x80000000  // Hopefully this value will never be used by plib
14
15 /**
16  * A scrolling list for PUI.
17  *
18  * Believe it or not, PUI does not have one of these.
19  */
20 class puList : public puGroup
21 {
22  public:
23     puList (int x, int y, int w, int h);
24     puList (int x, int y, int w, int h, char ** contents);
25     virtual ~puList ();
26
27     virtual void newList (char ** contents);
28     // TODO: other string value funcs
29     virtual char * getListStringValue ();
30     virtual int getListIntegerValue();
31
32  protected:
33     virtual void init (int w, int h);
34
35  private:
36     char ** _contents;
37     puFrame * _frame;
38     puListBox * _list_box;
39     puSlider * _slider;
40     puArrowButton * _up_arrow;
41     puArrowButton * _down_arrow;
42 };
43
44 #endif // __PULIST_HXX