A widget used to build a basic fill element.
More...
#include <BasicFillWidget.h>
|
|
Methods related to instantiation and destruction.
|
| BasicFillWidget (QWidget *parent=0, Qt::WindowFlags f=0) |
| Constructs a basic fill widget which is a child of parent, with widget flags set to f. More...
|
|
| ~BasicFillWidget () |
| Destructor. More...
|
|
A widget used to build a basic fill element.
- See also
- AbstractFillWidget, GraphicFillWidget
Definition at line 61 of file BasicFillWidget.h.
◆ BasicFillWidget()
te::qt::widgets::BasicFillWidget::BasicFillWidget |
( |
QWidget * |
parent = 0 , |
|
|
Qt::WindowFlags |
f = 0 |
|
) |
| |
Constructs a basic fill widget which is a child of parent, with widget flags set to f.
◆ ~BasicFillWidget()
te::qt::widgets::BasicFillWidget::~BasicFillWidget |
( |
| ) |
|
◆ fillChanged
void te::qt::widgets::BasicFillWidget::fillChanged |
( |
| ) |
|
|
signal |
This signal is emitted when the internal fill element is changed.
◆ getFill()
te::se::Fill * te::qt::widgets::BasicFillWidget::getFill |
( |
| ) |
const |
|
virtual |
Gets the configured fill element.
- Returns
- The configured fill element.
- Note
- The caller will take the ownership of the returned fill.
Implements te::qt::widgets::AbstractFillWidget.
◆ getFillType()
QString te::qt::widgets::BasicFillWidget::getFillType |
( |
| ) |
const |
|
virtual |
◆ initialize()
void te::qt::widgets::BasicFillWidget::initialize |
( |
| ) |
|
|
protected |
Internal method to initialize the widget (e.g.: color, combos, icons, etc.)
◆ onColorChanged
void te::qt::widgets::BasicFillWidget::onColorChanged |
( |
const QColor & |
color | ) |
|
|
protectedslot |
◆ onFillOpacitySliderValueChanged
void te::qt::widgets::BasicFillWidget::onFillOpacitySliderValueChanged |
( |
int |
value | ) |
|
|
protectedslot |
◆ setFill()
bool te::qt::widgets::BasicFillWidget::setFill |
( |
const te::se::Fill * |
fill | ) |
|
|
virtual |
Sets a fill element to this widget.
- Parameters
-
fill | A valid fill element. |
- Returns
- It return true if the widget can deal with the given fill. Otherwise, it returns false.
- Note
- The widget will NOT take the ownership of the given fill.
-
The widget form will be update based on given fill parameters.
Implements te::qt::widgets::AbstractFillWidget.
◆ updateUi()
void te::qt::widgets::BasicFillWidget::updateUi |
( |
| ) |
|
|
protected |
Updates the widget form based on internal fill element.
◆ updateUiFillColor()
void te::qt::widgets::BasicFillWidget::updateUiFillColor |
( |
| ) |
|
|
protected |
Updates the widget form element used to visualize the fill color.
◆ m_color
QColor te::qt::widgets::BasicFillWidget::m_color |
|
private |
◆ m_colorPicker
◆ m_fill
Fill element that will be configured by this widget.
Definition at line 122 of file BasicFillWidget.h.
◆ m_ui
std::unique_ptr<Ui::BasicFillWidgetForm> te::qt::widgets::BasicFillWidget::m_ui |
|
private |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/qt/widgets/se/BasicFillWidget.h