Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
  • app
  • src
repositionframesdialog.h
1#ifndef REPOSITIONFRAMESDIALOG_H
2#define REPOSITIONFRAMESDIALOG_H
3
4#include <QDialog>
5#include <QPolygonF>
6
7#include "editor.h"
8
9class ToolManager;
10
11namespace Ui {
12class RepositionFramesDialog;
13}
14
15class RepositionFramesDialog : public QDialog
16{
17 Q_OBJECT
18
19public:
20 explicit RepositionFramesDialog(QWidget* parent);
21 ~RepositionFramesDialog();
22
23 void setCore(Editor* editor);
24 void initUI();
25
26 void setCurrentPolygonF(QPolygonF polygon) { mCurrentPolygonF = polygon; }
27
28public slots:
29 void updateDialogText();
30 void updateDialogSelectedFrames();
31 void repositionFrames();
32 void updateRadioButtons();
33 void checkboxStateChanged(int i);
34 void updateLayersBox();
35
36signals:
37 void closeDialog();
38
39private:
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
Editor
Definition: editor.h:71
RepositionFramesDialog
Definition: repositionframesdialog.h:16
ToolManager
Definition: toolmanager.h:30
QDialog
QList
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QPoint
QPolygonF
QWidget
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39