#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(); bool eventFilter(QObject *watched, QEvent *event); protected: void keyPressEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event); private slots: void revert(); 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); QString lastLine; signals: void changed(); }; #endif // PROGRAMMINGNAMEPOPUP_H