A widget used to build a fill element associated with a graphic. More...
#include <GraphicFillWidget.h>
Signals | |
void | fillChanged () |
Public Member Functions | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
GraphicFillWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a graphic fill widget which is a child of parent, with widget flags set to f. More... | |
~GraphicFillWidget () | |
Destructor. More... | |
Re-implementation of Pure Virtual Method | |
AbstractFillWidget methods. | |
bool | setFill (const te::se::Fill *fill) |
Sets a fill element to this widget. More... | |
te::se::Fill * | getFill () const |
Gets the configured fill element. More... | |
QString | getFillType () const |
Pure virtual method that should return a "user friendly" string that informs the fill type that can be built by the widget. More... | |
Protected Slots | |
void | onGraphicToolButtonPressed () |
Protected Member Functions | |
void | updateUi () |
Updates the widget form based on internal fill element. More... | |
Private Attributes | |
te::se::Fill * | m_fill |
Fill element that will be configured by this widget. More... | |
std::auto_ptr< GraphicDialog > | m_graphicDialog |
Graphic dialog used to build the graphic element. More... | |
std::auto_ptr< Ui::GraphicFillWidgetForm > | m_ui |
Widget form. More... | |
A widget used to build a fill element associated with a graphic.
Definition at line 61 of file GraphicFillWidget.h.
te::qt::widgets::GraphicFillWidget::GraphicFillWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructs a graphic fill widget which is a child of parent, with widget flags set to f.
Definition at line 35 of file GraphicFillWidget.cpp.
References m_fill, m_graphicDialog, m_ui, onGraphicToolButtonPressed(), te::se::Fill::setGraphicFill(), and updateUi().
te::qt::widgets::GraphicFillWidget::~GraphicFillWidget | ( | ) |
Destructor.
Definition at line 52 of file GraphicFillWidget.cpp.
|
signal |
This signal is emitted when the internal fill element is changed.
|
virtual |
Gets the configured fill element.
Implements te::qt::widgets::AbstractFillWidget.
Definition at line 77 of file GraphicFillWidget.cpp.
References te::se::Fill::clone().
|
virtual |
Pure virtual method that should return a "user friendly" string that informs the fill type that can be built by the widget.
Implements te::qt::widgets::AbstractFillWidget.
Definition at line 82 of file GraphicFillWidget.cpp.
|
protectedslot |
Definition at line 94 of file GraphicFillWidget.cpp.
Referenced by GraphicFillWidget().
|
virtual |
Sets a fill element to this widget.
fill | A valid fill element. |
Implements te::qt::widgets::AbstractFillWidget.
Definition at line 57 of file GraphicFillWidget.cpp.
References te::se::Fill::clone(), and te::se::Fill::getGraphicFill().
|
protected |
Updates the widget form based on internal fill element.
Definition at line 87 of file GraphicFillWidget.cpp.
Referenced by GraphicFillWidget().
|
private |
Fill element that will be configured by this widget.
Definition at line 113 of file GraphicFillWidget.h.
Referenced by GraphicFillWidget().
|
private |
Graphic dialog used to build the graphic element.
Definition at line 112 of file GraphicFillWidget.h.
Referenced by GraphicFillWidget().
|
private |