X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fremote%2Fremote.h;h=bff56eddc21efa055c46c83ed043a908c96fe41d;hb=HEAD;hp=a4bfc428e7ed467797e90b59414ded97baf2a367;hpb=2fe7cbcb761487bc7409b93b372da6f8ab3c581e;p=r2c2.git diff --git a/source/remote/remote.h b/source/remote/remote.h index a4bfc42..bff56ed 100644 --- a/source/remote/remote.h +++ b/source/remote/remote.h @@ -1,40 +1,39 @@ -/* $Id$ - -This file is part of the MSP Märklin suite -Copyright © 2009 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef REMOTE_H_ #define REMOTE_H_ -#include -#include -#include #include +#include +#include +#include +#include +#include #include "network/client.h" +#include "statusbar.h" +#include "trainpanel.h" +#include "trainselector.h" -class TrainPanel; - -class Remote: public Msp::Application +class Remote: public Msp::RegisteredApplication { private: - Msp::IO::EventDispatcher event_disp; - Marklin::Catalogue catalogue; - Marklin::Client client; - Gtk::Main gtk; - Gtk::Window window; - Gtk::Box *train_box; - std::vector train_panels; - - static Msp::Application::RegApp reg; + Msp::Graphics::SimpleGLWindow window; + R2C2::Catalogue catalogue; + R2C2::Client client; + Msp::IO::EventDispatcher ev_disp; + Msp::GLtk::Resources ui_resources; + Msp::GLtk::Root root; + Msp::GLtk::Layout *root_layout; + TrainSelector *selectors[2]; + TrainPanel *panels[2]; + StatusBar status_bar; + Msp::Time::TimeStamp next_frame; public: - Remote(int argc, char **argv); -private: - void tick(); + Remote(int, char **); - void train_added(Marklin::NetTrain &); + virtual int main(); +private: + virtual void tick(); + void train_selected(R2C2::NetTrain *, unsigned); }; #endif