X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftimetabledialog.h;fp=source%2Fengineer%2Ftimetabledialog.h;h=a75a091547ceb11a6e74d3ac419a062bc2634beb;hb=cf52013784607dc4d307bd1244c5346ee88336a4;hp=0000000000000000000000000000000000000000;hpb=4d33c389881ebdf0b3926343d53e7d1ece654e20;p=r2c2.git diff --git a/source/engineer/timetabledialog.h b/source/engineer/timetabledialog.h new file mode 100644 index 0000000..a75a091 --- /dev/null +++ b/source/engineer/timetabledialog.h @@ -0,0 +1,32 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2010 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + +#ifndef TIMETABLEDIALOG_H_ +#define TIMETABLEDIALOG_H_ + +#include +#include +#include +#include "libmarklin/timetable.h" + +class TimetableDialog: public Msp::GLtk::Dialog +{ +private: + Marklin::Timetable &timetable; + Msp::GLtk::Entry *ent_timetable; + Msp::GLtk::Toggle *tgl_enabled; + +public: + TimetableDialog(const Msp::GLtk::Resources &, Marklin::Timetable &); + +private: + void enabled_toggled(bool); + + virtual void on_response(int); +}; + +#endif