1 #pragma once 2 3 #ifndef DUPLICATEPOPUP_H 4 #define DUPLICATEPOPUP_H 5 6 #include "tgeometry.h" 7 8 #include "toonzqt/dvdialog.h" 9 #include "toonzqt/intfield.h" 10 11 // forward declaration 12 class QPushButton; 13 14 //============================================================================= 15 // DuplicatePopup 16 //----------------------------------------------------------------------------- 17 18 class DuplicatePopup final : public QDialog { 19 Q_OBJECT 20 21 QPushButton *m_okBtn; 22 QPushButton *m_cancelBtn; 23 QPushButton *m_applyBtn; 24 25 DVGui::IntLineEdit *m_countFld, *m_upToFld; 26 27 int m_count, m_upTo; 28 29 public: 30 DuplicatePopup(); 31 void getValues(int &start, int &step); 32 33 public slots: 34 void updateValues(); 35 void onApplyPressed(); 36 void onOKPressed(); 37 void onSelectionChanged(); 38 39 protected: 40 void showEvent(QShowEvent *) override; 41 }; 42 43 #endif // DUPLICATEPOPUP_H 44