#ifndef PROGRAMMINGNAMEPOPUP_H #define PROGRAMMINGNAMEPOPUP_H #include #include "cookprogram.h" namespace Ui { class ProgrammingNamePopup; } class ProgrammingNamePopup : public QWidget { Q_OBJECT public: explicit ProgrammingNamePopup(QWidget *parent, CookRecord record); ~ProgrammingNamePopup(); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private slots: void on_okButton_clicked(); void on_cancelButton_clicked(); private: Ui::ProgrammingNamePopup *ui; CookRecord record; QWidget *pushed = NULL; void onEncoderLeft(); void onEncoderRight(); void onEncoderClicked(QWidget *clicked); signals: void changed(); }; #endif // PROGRAMMINGNAMEPOPUP_H