X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fremote%2Fremote.h;h=b4c5c129b904b5e5390c4cb8150d9296f0e53dc2;hb=621c5c938d70ba0d155e0eda91a708db0a52c0dc;hp=6d6be3377aa1f1cc71ffb2b4407c88335f0ee03e;hpb=9ddcd066e37e4c72685817c042c30897786ece05;p=r2c2.git diff --git a/source/remote/remote.h b/source/remote/remote.h index 6d6be33..b4c5c12 100644 --- a/source/remote/remote.h +++ b/source/remote/remote.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of the MSP Märklin suite -Copyright © 2009-2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef REMOTE_H_ #define REMOTE_H_ @@ -14,17 +7,19 @@ Distributed under the GPL #include #include "network/client.h" +class MainPanel; class TrainPanel; class Remote: public Msp::Application { private: Msp::IO::EventDispatcher event_disp; - Marklin::Catalogue catalogue; - Marklin::Client client; + R2C2::Catalogue catalogue; + R2C2::Client client; Gtk::Main gtk; Gtk::Window window; - Gtk::Box *train_box; + Gtk::Box *panel_box; + MainPanel *main_panel; std::vector train_panels; static Msp::Application::RegApp reg; @@ -32,11 +27,11 @@ private: public: Remote(int argc, char **argv); - const Marklin::Catalogue &get_catalogue() const { return catalogue; } + const R2C2::Catalogue &get_catalogue() const { return catalogue; } private: void tick(); - void train_added(Marklin::NetTrain &); + void train_added(R2C2::NetTrain &); }; #endif