]> git.tdb.fi Git - r2c2.git/blobdiff - source/remote/connectdialog.h
Add a new remote control program with GLtk-based UI
[r2c2.git] / source / remote / connectdialog.h
diff --git a/source/remote/connectdialog.h b/source/remote/connectdialog.h
new file mode 100644 (file)
index 0000000..68ae64b
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef CONNECTDIALOG_H_
+#define CONNECTDIALOG_H_
+
+#include <msp/gltk/dialog.h>
+#include <msp/gltk/entry.h>
+#include "network/client.h"
+
+class ConnectDialog: public Msp::GLtk::Dialog
+{
+private:
+       R2C2::Client &client;
+       Msp::GLtk::Entry *ent_host;
+       Msp::GLtk::Entry *ent_port;
+
+public:
+       ConnectDialog(R2C2::Client &);
+
+private:
+       virtual void on_response(int);
+};
+
+#endif