Pencil2D Animation
Download
Community
News
Docs
Contribute
API Documentation
5eeebd3c7472c3c2e6618ff9a94eca7af8af593e
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Properties
Pages
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
37
38
class
ToolOptionWidget
:
public
BaseDockWidget
39
{
40
Q_OBJECT
41
public
:
42
explicit
ToolOptionWidget
(
QWidget
*
parent
);
43
virtual
~
ToolOptionWidget
()
override
;
44
45
void
initUI()
override
;
46
void
updateUI()
override
;
47
48
void
makeConnectionToEditor(
Editor
* editor);
49
50
public
slots:
51
void
onToolPropertyChanged(ToolType, ToolPropertyType);
52
void
onToolChanged(ToolType);
53
void
setVisibility(
BaseTool
*);
54
55
private
:
56
void
setPenWidth(qreal);
57
void
setPenFeather(qreal);
58
void
setUseFeather(
bool
);
59
void
setPenInvisibility(
int
);
60
void
setPressure(
int
);
61
void
setPreserveAlpha(
int
);
62
void
setVectorMergeEnabled(
int
);
63
void
setAA(
int
);
64
void
setStabilizerLevel(
int
);
65
void
setTolerance(
int
);
66
void
setFillContour(
int
);
67
void
setBezier(
bool
);
68
69
void
disableAllOptions();
70
void
createUI();
71
72
private
:
73
Ui::ToolOptions* ui =
nullptr
;
74
};
75
76
#endif // TOOLOPTIONDOCKWIDGET_H
BaseTool
Definition:
basetool.h:60
QWidget
ToolOptionWidget
Definition:
tooloptionwidget.h:38
QDoubleSpinBox
QGroupBox
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QCheckBox
QSpinBox
QToolButton
Editor
Definition:
editor.h:51
QObject::parent
QObject * parent() const const
BaseDockWidget
Definition:
basedockwidget.h:26
SpinSlider
Definition:
spinslider.h:29
QComboBox
Generated on Sun Dec 20 2020 16:19:57 for Pencil2D by
1.8.6