]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/puList.hxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / GUI / puList.hxx
index c92d40a8b8b16a24ca8611cd5bdc8d351dc56e89..10d5ec52f551a5884be863f774ccea7db714fc91 100644 (file)
@@ -7,9 +7,9 @@
 #  include <config.h>
 #endif
 
-#include <plib/puAux.h>
+#include <plib/pu.h>
 
-//# define PUCLASS_LIST   0x80000000  // Hopefully this value will never be used by plib
+# define PUCLASS_LIST   0x80000000  // Hopefully this value will never be used by plib
 
 /**
  * A scrolling list for PUI.
 class puList : public puGroup
 {
  public:
-    puList (int x, int y, int w, int h);
-    puList (int x, int y, int w, int h, char ** contents);
+    puList (int x, int y, int w, int h, int sl_width = 20);
+    puList (int x, int y, int w, int h, char ** contents, int sl_width = 20);
     virtual ~puList ();
 
     virtual void newList (char ** contents);
     // TODO: other string value funcs
     virtual char * getListStringValue ();
     virtual int getListIntegerValue();
+    virtual void setColourScheme (float r, float g, float b, float a);
+    virtual void setColour (int which, float r, float g, float b, float a);
+    virtual void setSize (int w, int h);
+
 
  protected:
     virtual void init (int w, int h);
 
  private:
+    int sw;            // slider width
     char ** _contents;
     puFrame * _frame;
     puListBox * _list_box;