]> git.tdb.fi Git - r2c2.git/blob - source/engineer/telemetrydialog.h
Persist most dialogs across runs
[r2c2.git] / source / engineer / telemetrydialog.h
1 #ifndef TELEMETRYDIALOG_H_
2 #define TELEMETRYDIALOG_H_
3
4 #include <msp/gltk/dialog.h>
5 #include <msp/gltk/label.h>
6 #include "libr2c2/driver.h"
7 #include "dynamicdialog.h"
8
9 class TelemetryDialog: public DynamicDialog
10 {
11 private:
12         struct TelemetryLabel
13         {
14                 const R2C2::Driver::TelemetryInfo *info;
15                 Msp::GLtk::Label *label;
16         };
17
18         R2C2::Driver &driver;
19         std::list<TelemetryLabel> values;
20
21 public:
22         TelemetryDialog(Engineer &);
23
24         virtual void update();
25         virtual bool save_state(Msp::DataFile::Statement &) const;
26 };
27
28 #endif