A widget used to build a graphic associate with a well-known mark element. More...
#include <WellKnownGraphicWidget.h>
Signals | |
void | graphicChanged () |
Public Member Functions | |
te::se::Graphic * | getGraphic () const |
Gets the configured graphic element. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
WellKnownGraphicWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a well known graphic widget which is a child of parent, with widget flags set to f. More... | |
~WellKnownGraphicWidget () | |
Destructor. More... | |
Re-implementation of Pure Virtual Method | |
AbstractGraphicWidget methods. | |
bool | setGraphic (const te::se::Graphic *graphic) |
Sets a graphic element to this widget. More... | |
QString | getGraphicType () const |
Pure virtual method that should return a "user friendly" string that informs the graphic type that can be built by the widget. More... | |
QIcon | getGraphicIcon (const QSize &size) const |
Pure virtual method that should return a QIcon that represents the graphic. i.e. a simple preview. More... | |
Protected Slots | |
void | onGraphicAnchorPointChanged (const QString &text) |
void | onGraphicDisplacementChanged (const QString &text) |
void | onMarkChanged () |
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... | |
Private Member Functions | |
void | updateUi () |
Updates the widget form based on internal graphic element. More... | |
Private Attributes | |
te::qt::widgets::WellKnownMarkWidget * | m_markWidget |
Well known mark Widget used to configure the mark element. More... | |
std::auto_ptr < Ui::WellKnownGraphicWidgetForm > | m_ui |
Widget form. More... | |
A widget used to build a graphic associate with a well-known mark element.
Definition at line 53 of file WellKnownGraphicWidget.h.
te::qt::widgets::WellKnownGraphicWidget::WellKnownGraphicWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructs a well known graphic widget which is a child of parent, with widget flags set to f.
Definition at line 45 of file WellKnownGraphicWidget.cpp.
References te::se::Graphic::add(), te::qt::widgets::WellKnownMarkWidget::getMark(), te::qt::widgets::AbstractGraphicWidget::m_graphic, m_markWidget, m_ui, onGraphicAnchorPointChanged(), onGraphicDisplacementChanged(), onMarkChanged(), te::qt::widgets::AbstractGraphicWidget::setGraphicAngle(), te::qt::widgets::AbstractGraphicWidget::setGraphicOpacity(), and te::qt::widgets::AbstractGraphicWidget::setGraphicSize().
te::qt::widgets::WellKnownGraphicWidget::~WellKnownGraphicWidget | ( | ) |
Destructor.
Definition at line 72 of file WellKnownGraphicWidget.cpp.
|
inherited |
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().
|
virtual |
Pure virtual method that should return a QIcon that represents the graphic. i.e. a simple preview.
Implements te::qt::widgets::AbstractGraphicWidget.
Definition at line 114 of file WellKnownGraphicWidget.cpp.
References te::common::Free(), te::qt::widgets::GetImage(), and te::common::Singleton< MarkRendererManager >::getInstance().
|
virtual |
Pure virtual method that should return a "user friendly" string that informs the graphic type that can be built by the widget.
Implements te::qt::widgets::AbstractGraphicWidget.
Definition at line 109 of file WellKnownGraphicWidget.cpp.
|
signalinherited |
This signal is emitted when the internal graphic element is changed.
|
protectedslot |
Definition at line 142 of file WellKnownGraphicWidget.cpp.
Referenced by WellKnownGraphicWidget().
|
protectedslot |
Definition at line 137 of file WellKnownGraphicWidget.cpp.
Referenced by WellKnownGraphicWidget().
|
protectedslot |
Definition at line 131 of file WellKnownGraphicWidget.cpp.
Referenced by WellKnownGraphicWidget().
|
virtual |
Sets a graphic element to this widget.
graphic | A valid graphic element. |
Implements te::qt::widgets::AbstractGraphicWidget.
Definition at line 76 of file WellKnownGraphicWidget.cpp.
References te::se::Graphic::clone(), te::se::Graphic::getMarks(), and te::se::Mark::getWellKnownName().
|
protectedslotinherited |
Definition at line 77 of file AbstractGraphicWidget.cpp.
References te::se::AnchorPoint::setAnchorPointX(), and te::se::AnchorPoint::setAnchorPointY().
|
protectedslotinherited |
Definition at line 55 of file AbstractGraphicWidget.cpp.
Referenced by te::qt::widgets::GlyphGraphicWidget::GlyphGraphicWidget(), te::qt::widgets::LocalGraphicWidget::LocalGraphicWidget(), and WellKnownGraphicWidget().
|
protectedslotinherited |
Definition at line 68 of file AbstractGraphicWidget.cpp.
References te::se::Displacement::setDisplacementX(), and te::se::Displacement::setDisplacementY().
|
protectedslotinherited |
Definition at line 61 of file AbstractGraphicWidget.cpp.
Referenced by te::qt::widgets::LocalGraphicWidget::LocalGraphicWidget(), and WellKnownGraphicWidget().
|
protectedslotinherited |
Definition at line 49 of file AbstractGraphicWidget.cpp.
Referenced by te::qt::widgets::GlyphGraphicWidget::GlyphGraphicWidget(), te::qt::widgets::LocalGraphicWidget::LocalGraphicWidget(), and WellKnownGraphicWidget().
|
private |
Updates the widget form based on internal graphic element.
Definition at line 147 of file WellKnownGraphicWidget.cpp.
References te::se::AnchorPoint::getAnchorPointX(), te::se::AnchorPoint::getAnchorPointY(), te::se::Displacement::getDisplacementX(), te::se::Displacement::getDisplacementY(), and te::se::GetDouble().
|
protectedinherited |
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 WellKnownGraphicWidget().
|
private |
Well known mark Widget used to configure the mark element.
Definition at line 103 of file WellKnownGraphicWidget.h.
Referenced by WellKnownGraphicWidget().
|
private |
Widget form.
Definition at line 102 of file WellKnownGraphicWidget.h.
Referenced by WellKnownGraphicWidget().