X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fremote%2Fremote.h;h=bff56eddc21efa055c46c83ed043a908c96fe41d;hb=HEAD;hp=875f25bbbdbf803d962bdece37ee1e568f148727;hpb=d5cac397cab236ac3e1e0bbbc38204890f87d164;p=r2c2.git diff --git a/source/remote/remote.h b/source/remote/remote.h index 875f25b..bff56ed 100644 --- a/source/remote/remote.h +++ b/source/remote/remote.h @@ -1,35 +1,39 @@ #ifndef REMOTE_H_ #define REMOTE_H_ -#include -#include -#include #include +#include +#include +#include +#include +#include #include "network/client.h" - -class MainPanel; -class TrainPanel; +#include "statusbar.h" +#include "trainpanel.h" +#include "trainselector.h" class Remote: public Msp::RegisteredApplication { private: - Msp::IO::EventDispatcher event_disp; + Msp::Graphics::SimpleGLWindow window; R2C2::Catalogue catalogue; R2C2::Client client; - Gtk::Main gtk; - Gtk::Window window; - Gtk::Box *panel_box; - MainPanel *main_panel; - std::vector train_panels; + 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); + Remote(int, char **); - const R2C2::Catalogue &get_catalogue() const { return catalogue; } + virtual int main(); private: - void tick(); - - void train_added(R2C2::NetTrain &); + virtual void tick(); + void train_selected(R2C2::NetTrain *, unsigned); }; #endif