te::qt::widgets::AbstractFillWidget Class Referenceabstract

Abstract class that represents a widget that can be used to build a fill element. More...

#include <AbstractFillWidget.h>

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

Public Member Functions

virtual te::se::FillgetFill () const =0
 Gets the configured fill element. More...
 
virtual QString getFillType () const =0
 Pure virtual method that should return a "user friendly" string that informs the fill type that can be built by the widget. More...
 
virtual bool setFill (const te::se::Fill *fill)=0
 Sets a fill element to this widget. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 AbstractFillWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructs a widget which is a child of parent, with widget flags set to f. More...
 
virtual ~AbstractFillWidget ()
 Virtual destructor. More...
 

Detailed Description

Abstract class that represents a widget that can be used to build a fill element.

See also
BasicFillWidget, GraphicFillWidget

Definition at line 51 of file AbstractFillWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::AbstractFillWidget::AbstractFillWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)
inline

Constructs a widget which is a child of parent, with widget flags set to f.

Definition at line 61 of file AbstractFillWidget.h.

virtual te::qt::widgets::AbstractFillWidget::~AbstractFillWidget ( )
inlinevirtual

Virtual destructor.

Definition at line 64 of file AbstractFillWidget.h.

Member Function Documentation

virtual te::se::Fill* te::qt::widgets::AbstractFillWidget::getFill ( ) const
pure virtual

Gets the configured fill element.

Returns
The configured fill element.
Note
The caller will take the ownership of the returned fill.

Implemented in te::qt::widgets::BasicFillWidget, and te::qt::widgets::GraphicFillWidget.

virtual QString te::qt::widgets::AbstractFillWidget::getFillType ( ) const
pure virtual

Pure virtual method that should return a "user friendly" string that informs the fill type that can be built by the widget.

Implemented in te::qt::widgets::BasicFillWidget, and te::qt::widgets::GraphicFillWidget.

virtual bool te::qt::widgets::AbstractFillWidget::setFill ( const te::se::Fill fill)
pure 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.

Implemented in te::qt::widgets::BasicFillWidget, and te::qt::widgets::GraphicFillWidget.


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