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