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
strokeoptionswidget.h
1#ifndef STROKEOPTIONSWIDGET_H
2#define STROKEOPTIONSWIDGET_H
3
4#include "basewidget.h"
5#include "pencildef.h"
6
7class Editor;
8class BaseTool;
9class QCheckBox;
10class SpinSlider;
11class QSpinBox;
12
13class StrokeTool;
14
15namespace Ui {
16class StrokeOptionsWidget;
17}
18
19class StrokeOptionsWidget : public BaseWidget
20{
21 Q_OBJECT
22
23public:
24 explicit StrokeOptionsWidget(Editor* editor, QWidget *parent = nullptr);
25 ~StrokeOptionsWidget();
26
27 void updateUI() override;
28 void initUI() override;
29
30private:
31 void makeConnectionFromModelToUI(StrokeTool* strokeTool);
32 void makeConnectionFromUIToModel();
33 void updateToolConnections(BaseTool* tool);
34
35 void setWidthValue(qreal);
36 void setFeatherValue(qreal);
37 void setFeatherEnabled(bool);
38 void setPenInvisibilityEnabled(bool);
39 void setPressureEnabled(bool);
40 void setAntiAliasingEnabled(bool);
41 void setStabilizerLevel(int);
42 void setFillContourEnabled(bool);
43 void setBezierPathEnabled(bool);
44 void setClosedPathEnabled(bool);
45
46 void setVisibility(BaseTool*);
47
48private:
49 Ui::StrokeOptionsWidget *ui;
50
51 StrokeTool* mCurrentTool = nullptr;
52
53 Editor* mEditor = nullptr;
54
55};
56
57#endif // STROKEOPTIONSWIDGET_H
BaseTool
Definition: basetool.h:47
BaseWidget
Definition: basewidget.h:24
Editor
Definition: editor.h:71
SpinSlider
Definition: spinslider.h:30
StrokeOptionsWidget
Definition: strokeoptionswidget.h:20
StrokeTool
Definition: stroketool.h:35
QCheckBox
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QSpinBox
QWidget
Generated on Wed Dec 24 2025 23:46:02 for Pencil2D by doxygen 1.9.6 based on revision 1be63043db1f7fc0545528fc3b6d5098a552755b