Swiftray  1.0
transform-panel.h
Go to the documentation of this file.
1 #ifndef TRANSFORM_WIDGET_H
2 #define TRANSFORM_WIDGET_H
3 
4 #include <QFrame>
5 #include <QDebug>
6 #include <shape/shape.h>
9 
10 class MainWindow;
11 
12 namespace Ui {
13  class TransformPanel;
14 }
15 
16 class TransformPanel : public QFrame, BaseContainer {
17 Q_OBJECT
18 
19 public:
20  explicit TransformPanel(QWidget *parent, MainWindow *main_window);
21 
23 
24  bool isScaleLock() const;
25 
26  void setScaleLock(bool scaleLock);
27 
28  void updateControl();
29 
30 private:
31  void loadStyles() override;
32 
33  void registerEvents() override;
34 
35  Ui::TransformPanel *ui;
36  double x_;
37  double y_;
38  double r_;
39  double w_;
40  double h_;
41  bool scale_locked_;
42  MainWindow *main_window_;
43 };
44 
45 #endif // TRANSFORM_WIDGET_H
A class template for widget containers.
Definition: base-container.h:7
Definition: mainwindow.h:25
Definition: transform-panel.h:16
void updateControl()
Definition: transform-panel.cpp:83
TransformPanel(QWidget *parent, MainWindow *main_window)
Definition: transform-panel.cpp:5
void setScaleLock(bool scaleLock)
Definition: transform-panel.cpp:79
bool isScaleLock() const
Definition: transform-panel.cpp:75
~TransformPanel()
Definition: transform-panel.cpp:15
Definition: layer-list-item.h:7