]> git.tdb.fi Git - r2c2.git/blobdiff - source/remote/mainpanel.h
Add missing files
[r2c2.git] / source / remote / mainpanel.h
diff --git a/source/remote/mainpanel.h b/source/remote/mainpanel.h
new file mode 100644 (file)
index 0000000..05c0984
--- /dev/null
@@ -0,0 +1,38 @@
+/* $Id$
+
+This file is part of R²C²
+Copyright © 2011  Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
+#ifndef MAINPANEL_H_
+#define MAINPANEL_H_
+
+#include <gtkmm/box.h>
+#include <gtkmm/checkbutton.h>
+#include <gtkmm/label.h>
+#include "network/client.h"
+
+class Remote;
+
+class MainPanel: public Gtk::VBox
+{
+private:
+       Remote &remote;
+       R2C2::Client &client;
+       Gtk::CheckButton *chk_power;
+       Gtk::CheckButton *chk_halt;
+       Gtk::Label *lbl_status;
+
+public:
+       MainPanel(Remote &, R2C2::Client &);
+
+private:
+       void power_changed(bool);
+       void halt_changed(bool);
+       void emergency(const std::string &);
+       void ui_power_changed();
+       void ui_halt_changed();
+};
+
+#endif