X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fremote%2Fremote.h;h=bff56eddc21efa055c46c83ed043a908c96fe41d;hb=aa2c48c635ad0be4eb465a72861a8d5403647b0a;hp=4599a139af32989b2c0c4212168c8d15694cac29;hpb=010d8321e982d1684fcbff5bf6fc2bdec7cb7bae;p=r2c2.git diff --git a/source/remote/remote.h b/source/remote/remote.h index 4599a13..bff56ed 100644 --- a/source/remote/remote.h +++ b/source/remote/remote.h @@ -1,37 +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 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; - - 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