27 #include "../../../se/Fill.h"
30 #include "ui_GraphicFillWidgetForm.h"
37 m_ui(new Ui::GraphicFillWidgetForm),
39 m_fill(new te::se::Fill)
68 m_fill = fill->
clone();
70 m_graphicDialog->setGraphic(g);
79 return m_fill->
clone();
84 return tr(
"Graphic Fill");
90 QSize size = m_ui->m_graphicToolButton->iconSize();
91 m_ui->m_graphicToolButton->setIcon(m_graphicDialog->getGraphicIcon(size));
96 if(m_graphicDialog->exec() == QDialog::Rejected)
100 m_fill->setGraphicFill(m_graphicDialog->getGraphic());
A Fill specifies the pattern for filling an area geometry.
std::auto_ptr< GraphicDialog > m_graphicDialog
Graphic dialog used to build the graphic element.
bool setFill(const te::se::Fill *fill)
Sets a fill element to this widget.
QString getFillType() const
Pure virtual method that should return a "user friendly" string that informs the fill type that can b...
const Graphic * getGraphicFill() const
Gets the GraphicFill element associate to this Fill.
void updateUi()
Updates the widget form based on internal fill element.
Fill * clone() const
It creates a new copy of this object.
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...
std::auto_ptr< Ui::GraphicFillWidgetForm > m_ui
Widget form.
void onGraphicToolButtonPressed()
void setGraphicFill(Graphic *g)
Sets the GraphicFill element to this Fill. GraphicFill defines that the pixels of the area will be dr...
te::se::Fill * getFill() const
Gets the configured fill element.
A dialog used to build a graphic element. If you want to use this dialog, you can use commands like: ...
~GraphicFillWidget()
Destructor.
A widget used to build a fill element associated with a graphic.
A dialog used to build a graphic element.
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size.
Abstract class that represents a widget that can be used to build a fill element. ...
te::se::Fill * m_fill
Fill element that will be configured by this widget.