]> git.tdb.fi Git - r2c2.git/blob - source/remote/mainpanel.h
Add missing files
[r2c2.git] / source / remote / mainpanel.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2011  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef MAINPANEL_H_
9 #define MAINPANEL_H_
10
11 #include <gtkmm/box.h>
12 #include <gtkmm/checkbutton.h>
13 #include <gtkmm/label.h>
14 #include "network/client.h"
15
16 class Remote;
17
18 class MainPanel: public Gtk::VBox
19 {
20 private:
21         Remote &remote;
22         R2C2::Client &client;
23         Gtk::CheckButton *chk_power;
24         Gtk::CheckButton *chk_halt;
25         Gtk::Label *lbl_status;
26
27 public:
28         MainPanel(Remote &, R2C2::Client &);
29
30 private:
31         void power_changed(bool);
32         void halt_changed(bool);
33         void emergency(const std::string &);
34         void ui_power_changed();
35         void ui_halt_changed();
36 };
37
38 #endif