]> git.mxchange.org Git - flightgear.git/blob - src/GUI/puList.hxx
Boris Koenig:
[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
13 /**
14  * A scrolling list for PUI.
15  *
16  * Believe it or not, PUI does not have one of these.
17  */
18 class puList : public puGroup
19 {
20  public:
21     puList (int x, int y, int w, int h);
22     puList (int x, int y, int w, int h, char ** contents);
23     virtual ~puList ();
24
25     virtual void newList (char ** contents);
26     // TODO: other string value funcs
27     virtual char * getStringValue ();
28
29  protected:
30     virtual void init (int w, int h);
31
32  private:
33     char ** _contents;
34     puFrame * _frame;
35     puListBox * _list_box;
36     puSlider * _slider;
37     puArrowButton * _up_arrow;
38     puArrowButton * _down_arrow;
39 };
40
41 #endif // __PULIST_HXX