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
bucketoptionswidget.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 BUCKETOPTIONSWIDGET_H
18#define BUCKETOPTIONSWIDGET_H
19
20
21#include "basewidget.h"
22#include "pencildef.h"
23
24class Editor;
25class Layer;
26class BucketTool;
27
28#include "toolproperties.h"
29
30namespace Ui {
31class BucketOptionsWidget;
32}
33
34class BucketOptionsWidget : public BaseWidget
35{
36 Q_OBJECT
37
38public:
39 explicit BucketOptionsWidget(Editor* editor, QWidget* parent);
40 ~BucketOptionsWidget();
41
42 void initUI() override;
43 void updateUI() override;
44
45 void setStrokeWidth(qreal value);
46 void setColorToleranceEnabled(bool enabled);
47 void setFillExpandEnabled(bool enabled);
48 void setFillExpand(int value);
49 void setColorTolerance(int tolerance);
50 void setFillReferenceMode(int referenceMode);
51 void setFillMode(int mode);
52 void onLayerChanged(int);
53
54private:
55 void makeConnectionsFromUIToModel();
56 void makeConnectionsFromModelToUI();
57 void updatePropertyVisibility();
58
59 BucketTool* mBucketTool = nullptr;
60 Ui::BucketOptionsWidget *ui;
61 Editor* mEditor = nullptr;
62};
63
64#endif // BUCKETOPTIONSWIDGET_H
BaseWidget
Definition: basewidget.h:24
BucketOptionsWidget
Definition: bucketoptionswidget.h:35
BucketTool
Definition: buckettool.h:30
Editor
Definition: editor.h:71
Layer
Definition: layer.h:33
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QWidget
QWidget::enabled
enabled
Generated on Tue Jan 6 2026 11:38:51 for Pencil2D by doxygen 1.9.6 based on revision f91a96748ec6712509b9b0ff47979db9c34d556f