]> git.tdb.fi Git - r2c2.git/blob - source/remote/mainpanel.h
Some other minor UI tweaks
[r2c2.git] / source / remote / mainpanel.h
1 #ifndef MAINPANEL_H_
2 #define MAINPANEL_H_
3
4 #include <gtkmm/box.h>
5 #include <gtkmm/checkbutton.h>
6 #include <gtkmm/label.h>
7 #include "network/client.h"
8
9 class Remote;
10
11 class MainPanel: public Gtk::VBox
12 {
13 private:
14         Remote &remote;
15         R2C2::Client &client;
16         Gtk::CheckButton *chk_power;
17         Gtk::CheckButton *chk_halt;
18         Gtk::Label *lbl_status;
19
20 public:
21         MainPanel(Remote &, R2C2::Client &);
22
23 private:
24         void power_changed(bool);
25         void halt_changed(bool);
26         void emergency(const std::string &);
27         void ui_power_changed();
28         void ui_halt_changed();
29 };
30
31 #endif