]> git.tdb.fi Git - r2c2.git/blob - source/remote/remote.h
Update Track3D to use GL::Renderer
[r2c2.git] / source / remote / remote.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2009-2010  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef REMOTE_H_
9 #define REMOTE_H_
10
11 #include <gtkmm/main.h>
12 #include <gtkmm/window.h>
13 #include <gtkmm/box.h>
14 #include <msp/core/application.h>
15 #include "network/client.h"
16
17 class TrainPanel;
18
19 class Remote: public Msp::Application
20 {
21 private:
22         Msp::IO::EventDispatcher event_disp;
23         R2C2::Catalogue catalogue;
24         R2C2::Client client;
25         Gtk::Main gtk;
26         Gtk::Window window;
27         Gtk::Box *train_box;
28         std::vector<TrainPanel *> train_panels;
29
30         static Msp::Application::RegApp<Remote> reg;
31
32 public:
33         Remote(int argc, char **argv);
34
35         const R2C2::Catalogue &get_catalogue() const { return catalogue; }
36 private:
37         void tick();
38
39         void train_added(R2C2::NetTrain &);
40 };
41
42 #endif