Pencil2D Animation
Download
Community
News
Docs
Contribute
app/src/toolbox.h Source File
Main Page
Related Pages
Classes
Files
File List
Loading...
Searching...
No Matches
app
src
toolbox.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 TOOLBOXWIDGET_H
18
#define TOOLBOXWIDGET_H
19
20
#include "pencildef.h"
21
#include "basedockwidget.h"
22
23
class
QToolButton
;
24
class
QGridLayout
;
25
class
QIcon
;
26
class
SpinSlider
;
27
class
DisplayOptionWidget;
28
class
ToolOptionWidget
;
29
class
Editor
;
30
31
namespace
Ui {
32
class
ToolBoxWidget
;
33
}
34
35
class
ToolBoxWidget
:
public
BaseDockWidget
36
{
37
Q_OBJECT
38
39
public
:
40
ToolBoxWidget
(
QWidget
*
parent
);
41
~ToolBoxWidget
()
override
;
42
43
void
initUI()
override
;
44
void
updateUI()
override
;
45
46
public
slots:
47
void
onToolSetActive(ToolType toolType);
48
void
onLayerDidChange(
int
index);
49
void
pencilOn();
50
void
eraserOn();
51
void
selectOn();
52
void
moveOn();
53
void
penOn();
54
void
handOn();
55
void
polylineOn();
56
void
bucketOn();
57
void
eyedropperOn();
58
void
brushOn();
59
void
smudgeOn();
60
61
protected
:
62
int
getMinHeightForWidth(
int
width
)
override
;
63
64
private
:
65
void
deselectAllTools();
66
bool
toolOn(ToolType toolType,
QToolButton
* toolButton);
67
68
Ui::ToolBoxWidget* ui =
nullptr
;
69
};
70
71
#endif
BaseDockWidget
Definition:
basedockwidget.h:27
Editor
Definition:
editor.h:68
SpinSlider
Definition:
spinslider.h:30
ToolBoxWidget
Definition:
toolbox.h:36
ToolOptionWidget
Definition:
tooloptionwidget.h:41
QGridLayout
QIcon
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QToolButton
QWidget
QWidget::width
width