Abstract class that represents a widget that can be used to build a graphic element. More...
#include <AbstractGraphicWidget.h>
  
 Signals | |
| void | graphicChanged () | 
Public Member Functions | |
| te::se::Graphic * | getGraphic () const | 
| Gets the configured graphic element.  More... | |
| virtual QIcon | getGraphicIcon (const QSize &size) const =0 | 
| Pure virtual method that should return a QIcon that represents the graphic. i.e. a simple preview.  More... | |
| virtual QString | getGraphicType () const =0 | 
| Pure virtual method that should return a "user friendly" string that informs the graphic type that can be built by the widget.  More... | |
| virtual bool | setGraphic (const te::se::Graphic *graphic)=0 | 
| Sets a graphic element to this widget.  More... | |
Initializer Methods  | |
Methods related to instantiation and destruction.  | |
| AbstractGraphicWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructs a graphic widget which is a child of parent, with widget flags set to f.  More... | |
| virtual | ~AbstractGraphicWidget () | 
| Destructor.  More... | |
Protected Slots | |
| void | setGraphicAnchorPoint (const QString &ax, const QString &ay) | 
| void | setGraphicAngle (const QString &angle) | 
| void | setGraphicDisplacement (const QString &dx, const QString &dy) | 
| void | setGraphicOpacity (int value) | 
| void | setGraphicSize (const QString &size) | 
Protected Attributes | |
| te::se::Graphic * | m_graphic | 
| Graphic element that will be configured by this widget.  More... | |
Abstract class that represents a widget that can be used to build a graphic element.
Definition at line 54 of file AbstractGraphicWidget.h.
| te::qt::widgets::AbstractGraphicWidget::AbstractGraphicWidget | ( | QWidget * | parent = 0,  | 
        
| Qt::WindowFlags | f = 0  | 
        ||
| ) | 
Constructs a graphic widget which is a child of parent, with widget flags set to f.
Definition at line 33 of file AbstractGraphicWidget.cpp.
      
  | 
  virtual | 
Destructor.
Definition at line 39 of file AbstractGraphicWidget.cpp.
| te::se::Graphic * te::qt::widgets::AbstractGraphicWidget::getGraphic | ( | ) | const | 
Gets the configured graphic element.
Definition at line 44 of file AbstractGraphicWidget.cpp.
References te::se::Graphic::clone().
Referenced by te::qt::widgets::GraphicSelectorWidget::getGraphic().
      
  | 
  pure virtual | 
Pure virtual method that should return a QIcon that represents the graphic. i.e. a simple preview.
Implemented in te::qt::widgets::GlyphGraphicWidget, te::qt::widgets::LocalGraphicWidget, and te::qt::widgets::WellKnownGraphicWidget.
Referenced by te::qt::widgets::GraphicSelectorWidget::getGraphicIcon().
      
  | 
  pure virtual | 
Pure virtual method that should return a "user friendly" string that informs the graphic type that can be built by the widget.
Implemented in te::qt::widgets::GlyphGraphicWidget, te::qt::widgets::LocalGraphicWidget, and te::qt::widgets::WellKnownGraphicWidget.
Referenced by te::qt::widgets::GraphicSelectorWidget::GraphicSelectorWidget().
      
  | 
  signal | 
This signal is emitted when the internal graphic element is changed.
      
  | 
  pure virtual | 
Sets a graphic element to this widget.
| graphic | A valid graphic element. | 
Implemented in te::qt::widgets::GlyphGraphicWidget, te::qt::widgets::LocalGraphicWidget, and te::qt::widgets::WellKnownGraphicWidget.
Referenced by te::qt::widgets::GraphicSelectorWidget::setGraphic().
      
  | 
  protectedslot | 
Definition at line 77 of file AbstractGraphicWidget.cpp.
References te::se::AnchorPoint::setAnchorPointX(), and te::se::AnchorPoint::setAnchorPointY().
      
  | 
  protectedslot | 
Definition at line 55 of file AbstractGraphicWidget.cpp.
Referenced by te::qt::widgets::GlyphGraphicWidget::GlyphGraphicWidget(), te::qt::widgets::LocalGraphicWidget::LocalGraphicWidget(), and te::qt::widgets::WellKnownGraphicWidget::WellKnownGraphicWidget().
      
  | 
  protectedslot | 
Definition at line 68 of file AbstractGraphicWidget.cpp.
References te::se::Displacement::setDisplacementX(), and te::se::Displacement::setDisplacementY().
      
  | 
  protectedslot | 
Definition at line 61 of file AbstractGraphicWidget.cpp.
Referenced by te::qt::widgets::LocalGraphicWidget::LocalGraphicWidget(), and te::qt::widgets::WellKnownGraphicWidget::WellKnownGraphicWidget().
      
  | 
  protectedslot | 
Definition at line 49 of file AbstractGraphicWidget.cpp.
Referenced by te::qt::widgets::GlyphGraphicWidget::GlyphGraphicWidget(), te::qt::widgets::LocalGraphicWidget::LocalGraphicWidget(), and te::qt::widgets::WellKnownGraphicWidget::WellKnownGraphicWidget().
      
  | 
  protected | 
Graphic element that will be configured by this widget.
Definition at line 121 of file AbstractGraphicWidget.h.
Referenced by te::qt::widgets::GlyphGraphicWidget::GlyphGraphicWidget(), te::qt::widgets::LocalGraphicWidget::LocalGraphicWidget(), and te::qt::widgets::WellKnownGraphicWidget::WellKnownGraphicWidget().