]> git.tdb.fi Git - libs/gltk.git/blobdiff - examples/widgetdemo/dialogdemo.h
Add an example of dialogs in the widget demo program
[libs/gltk.git] / examples / widgetdemo / dialogdemo.h
diff --git a/examples/widgetdemo/dialogdemo.h b/examples/widgetdemo/dialogdemo.h
new file mode 100644 (file)
index 0000000..4e5f770
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef DIALOGDEMO_H_
+#define DIALOGDEMO_H_
+
+#include <msp/gltk/label.h>
+#include <msp/gltk/panel.h>
+
+class DialogDemo: public Msp::GLtk::Panel
+{
+private:
+       Msp::GLtk::Label lbl_text;
+
+public:
+       DialogDemo();
+
+private:
+       void button_clicked();
+       void got_response(const std::string &);
+};
+
+#endif