All Classes Namespaces Functions Variables Enumerations Properties Pages
repositionframesdialog.h
1 #ifndef REPOSITIONFRAMESDIALOG_H
2 #define REPOSITIONFRAMESDIALOG_H
3 
4 #include <QDialog>
5 #include <QPolygonF>
6 
7 #include "editor.h"
8 
9 class ToolManager;
10 
11 namespace Ui {
13 }
14 
16 {
17  Q_OBJECT
18 
19 public:
22 
23  void setCore(Editor* editor);
24  void initUI();
25 
26  void setCurrentPolygonF(QPolygonF polygon) { mCurrentPolygonF = polygon; }
27 
28 public slots:
29  void updateDialogText();
30  void updateDialogSelectedFrames();
31  void repositionFrames();
32  void updateRadioButtons();
33  void checkboxStateChanged(int i);
34  void updateLayersBox();
35 
36 signals:
37  void closeDialog();
38 
39 private:
40  Ui::RepositionFramesDialog *ui;
41 
42  void closeClicked();
43  void updateLayersToSelect();
44  QPoint getRepositionPoint();
45  void prepareRepositionSelectedImages(int repositionFrame);
46 
47  int mRepositionFrame = 0;
48  QList<int> mLayerIndexes;
49 
50  QPolygonF mCurrentPolygonF;
51  QPolygonF mOriginalPolygonF;
52  QPoint mStartPoint = QPoint(0,0);
53  QPoint mEndPoint = QPoint(0,0);
54  Editor* mEditor = nullptr;
55 };
56 
57 #endif // REPOSITIONFRAMESDIALOG_H
Q_OBJECTQ_OBJECT
Definition: editor.h:55
QObject * parent() const const