]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/timetabledialog.h
Add a UI for editing train timetables
[r2c2.git] / source / engineer / timetabledialog.h
diff --git a/source/engineer/timetabledialog.h b/source/engineer/timetabledialog.h
new file mode 100644 (file)
index 0000000..a75a091
--- /dev/null
@@ -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 <msp/gltk/dialog.h>
+#include <msp/gltk/entry.h>
+#include <msp/gltk/toggle.h>
+#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