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
3
Pencil2D - Traditional Animation Software
4
Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5
Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7
This program is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License
9
as published by the Free Software Foundation; version 2 of the License.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU 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
23
namespace
Ui
24
{
25
class
ToolOptions;
26
}
27
class
QToolButton
;
28
class
SpinSlider
;
29
class
QCheckBox
;
30
class
QComboBox
;
31
class
QSpinBox
;
32
class
QDoubleSpinBox
;
33
class
QGroupBox
;
34
class
Editor
;
35
class
BaseTool
;
36
class
BucketOptionsWidget
;
37
class
CameraOptionsWidget
;
38
39
40
class
ToolOptionWidget
:
public
BaseDockWidget
41
{
42
Q_OBJECT
43
public
:
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
52
public
slots:
53
void
onToolPropertyChanged(ToolType, ToolPropertyType);
54
void
onToolChanged(ToolType);
55
56
private
:
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
75
private
:
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:70
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