]> git.mxchange.org Git - flightgear.git/blob - src/GUI/puList.hxx
Fix the nmea and garmin output to a) fake a GSA sentence, b) fix a y2k bug
[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 #include <plib/pu.h>
7
8
9 /**
10  * A scrolling list for PUI.
11  *
12  * Believe it or not, PUI does not have one of these.
13  */
14 class puList : public puGroup
15 {
16  public:
17     puList (int x, int y, int w, int h);
18     puList (int x, int y, int w, int h, char ** contents);
19     virtual ~puList ();
20
21     virtual void newList (char ** contents);
22     // TODO: other string value funcs
23     virtual char * getStringValue ();
24
25  protected:
26     virtual void init (int w, int h);
27
28  private:
29     char ** _contents;
30     puFrame * _frame;
31     puListBox * _list_box;
32     puSlider * _slider;
33     puArrowButton * _up_arrow;
34     puArrowButton * _down_arrow;
35 };
36
37 #endif // __PULIST_HXX