te::qt::widgets::GraphicFillWidget Class Reference

A widget used to build a fill element associated with a graphic. More...

#include <GraphicFillWidget.h>

Inheritance diagram for te::qt::widgets::GraphicFillWidget:
te::qt::widgets::AbstractFillWidget

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
bool setFill (const te::se::Fill *fill)
 Sets a fill element to this widget. More...
 
te::se::FillgetFill () 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::Fillm_fill
 Fill element that will be configured by this widget. More...
 
std::auto_ptr< GraphicDialogm_graphicDialog
 Graphic dialog used to build the graphic element. More...
 
std::auto_ptr< Ui::GraphicFillWidgetForm > m_ui
 Widget form. More...
 

Detailed Description

A widget used to build a fill element associated with a graphic.

See also
AbstractFillWidget, BasicFillWidget

Definition at line 61 of file GraphicFillWidget.h.

Constructor & Destructor Documentation

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.

te::qt::widgets::GraphicFillWidget::~GraphicFillWidget ( )

Destructor.

Member Function Documentation

void te::qt::widgets::GraphicFillWidget::fillChanged ( )
signal

This signal is emitted when the internal fill element is changed.

te::se::Fill* te::qt::widgets::GraphicFillWidget::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.

QString te::qt::widgets::GraphicFillWidget::getFillType ( ) const
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.

void te::qt::widgets::GraphicFillWidget::onGraphicToolButtonPressed ( )
protectedslot
bool te::qt::widgets::GraphicFillWidget::setFill ( const te::se::Fill fill)
virtual

Sets a fill element to this widget.

Parameters
fillA 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.

void te::qt::widgets::GraphicFillWidget::updateUi ( )
protected

Updates the widget form based on internal fill element.

Member Data Documentation

te::se::Fill* te::qt::widgets::GraphicFillWidget::m_fill
private

Fill element that will be configured by this widget.

Definition at line 113 of file GraphicFillWidget.h.

std::auto_ptr<GraphicDialog> te::qt::widgets::GraphicFillWidget::m_graphicDialog
private

Graphic dialog used to build the graphic element.

Definition at line 112 of file GraphicFillWidget.h.

std::auto_ptr<Ui::GraphicFillWidgetForm> te::qt::widgets::GraphicFillWidget::m_ui
private

Widget form.

Definition at line 111 of file GraphicFillWidget.h.


The documentation for this class was generated from the following file: