#ifndef TIMESTAMPTRIPLET_H #define TIMESTAMPTRIPLET_H #include #include #include #include #include #include #include "Field.h" class TimeStampTriplet : public Field { Q_OBJECT public: TimeStampTriplet(QWidget *parent, int db_id, int PropId, QString label = QString(), QGridLayout *layout = NULL, int row = 0, int col = 0); TimeStampTriplet(QWidget *parent, int db_id, int PropId, QString value, QString label = QString(), QGridLayout *layout = NULL, int row = 0, int col = 0); void SetValue(QVariant value); protected: int calculateLength() { return 2; } // 0 = time, 1 = int (?), 2 = datetime, according to ASHRAE private slots: void reserialize(); private: void Render(); QDateTimeEdit *inputs[3]; QLabel *labels[3]; QGroupBox *box; QGridLayout *boxLayout; QString serial; }; #endif