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
tooloptionwidget.h
1/*
2
3Pencil2D - Traditional Animation Software
4Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation; version 2 of the License.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16*/
17#ifndef TOOLOPTIONDOCKWIDGET_H
18#define TOOLOPTIONDOCKWIDGET_H
19
20#include "basedockwidget.h"
21#include "pencildef.h"
22
23namespace Ui
24{
25 class ToolOptions;
26}
27class QToolButton;
28class SpinSlider;
29class QCheckBox;
30class QComboBox;
31class QSpinBox;
32class QDoubleSpinBox;
33class QGroupBox;
34class Editor;
35class BaseTool;
36class BucketOptionsWidget;
37class CameraOptionsWidget;
38
39
40class ToolOptionWidget : public BaseDockWidget
41{
42 Q_OBJECT
43public:
44 explicit ToolOptionWidget(QWidget* parent);
45 virtual ~ToolOptionWidget() override;
46
47 void initUI() override;
48 void updateUI() override;
49
50 void makeConnectionToEditor(Editor* editor);
51
52public slots:
53 void onToolPropertyChanged(ToolType, ToolPropertyType);
54 void onToolChanged(ToolType);
55
56private:
57 void setPenWidth(qreal);
58 void setPenFeather(qreal);
59 void setUseFeather(bool);
60 void setPenInvisibility(int);
61 void setPressure(int);
62 void setPreserveAlpha(int);
63 void setVectorMergeEnabled(int);
64 void setAA(int);
65 void setStabilizerLevel(int);
66 void setFillContour(int);
67 void setBezier(bool);
68 void setClosedPath(bool);
69 void setShowSelectionInfo(bool);
70
71 void disableAllOptions();
72 void setVisibility(BaseTool*);
73 void createUI();
74
75private:
76 Ui::ToolOptions* ui = nullptr;
77
78 BucketOptionsWidget* mBucketOptionsWidget = nullptr;
79 CameraOptionsWidget* mCameraOptionsWidget = nullptr;
80};
81
82#endif // TOOLOPTIONDOCKWIDGET_H
BaseDockWidget
Definition: basedockwidget.h:27
BaseTool
Definition: basetool.h:70
BucketOptionsWidget
Definition: bucketoptionswidget.h:31
CameraOptionsWidget
Definition: cameraoptionswidget.h:33
Editor
Definition: editor.h:71
SpinSlider
Definition: spinslider.h:30
ToolOptionWidget
Definition: tooloptionwidget.h:41
QCheckBox
QComboBox
QDoubleSpinBox
QGroupBox
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QSpinBox
QToolButton
QWidget
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39