]> git.tdb.fi Git - libs/gltk.git/blobdiff - examples/widgetdemo/dropdowndemo.h
Add another example application to demonstrate various widgets
[libs/gltk.git] / examples / widgetdemo / dropdowndemo.h
diff --git a/examples/widgetdemo/dropdowndemo.h b/examples/widgetdemo/dropdowndemo.h
new file mode 100644 (file)
index 0000000..afa7e7c
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef DROPDOWNDEMO_H_
+#define DROPDOWNDEMO_H_
+
+#include <msp/gltk/listdata.h>
+#include <msp/gltk/panel.h>
+
+class DropdownDemo: public Msp::GLtk::Panel
+{
+private:
+       Msp::GLtk::BasicListData<std::string> categories;
+       Msp::GLtk::BasicListData<std::string> values;
+
+public:
+       DropdownDemo();
+
+private:
+       void category_selected(unsigned);
+};
+
+#endif