]> git.tdb.fi Git - r2c2.git/blob - source/engineer/timetabledialog.h
a1f611d10f622461c55dc702c67f16410e64cbe8
[r2c2.git] / source / engineer / timetabledialog.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2010  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef TIMETABLEDIALOG_H_
9 #define TIMETABLEDIALOG_H_
10
11 #include <msp/gltk/dialog.h>
12 #include <msp/gltk/entry.h>
13 #include <msp/gltk/toggle.h>
14 #include "libmarklin/timetable.h"
15
16 class TimetableDialog: public Msp::GLtk::Dialog
17 {
18 private:
19         Marklin::Timetable &timetable;
20         Msp::GLtk::Entry *ent_timetable;
21         Msp::GLtk::Toggle *tgl_enabled;
22
23 public:
24         TimetableDialog(Marklin::Timetable &);
25
26 private:
27         void enabled_toggled(bool);
28
29         virtual void on_response(int);
30 };
31
32 #endif