A widget used to build a mark element represented by a glyph. More...
#include <GlyphMarkWidget.h>
Signals | |
void | markChanged () |
Public Member Functions | |
te::se::Mark * | getMark () const |
Gets the configured mark element. More... | |
void | setMark (const te::se::Mark *mark) |
Sets a mark element to this widget. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
GlyphMarkWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a glyph mark widget which is a child of parent, with widget flags set to f. More... | |
~GlyphMarkWidget () | |
Destructor. More... | |
Protected Slots | |
void | onCharSelected (const unsigned int &charCode) |
void | onCurrentFontChanged (const QFont &font) |
void | onFillChanged () |
Protected Member Functions | |
void | updateMarkName () |
Updates the mark well-known name enconding selected font and selected character. More... | |
void | updateUi () |
Updates the widget form based on internal mark element. More... | |
Private Attributes | |
te::qt::widgets::CharMapWidget * | m_charMapWidget |
Character map widget. More... | |
te::qt::widgets::BasicFillWidget * | m_fillWidget |
Basic Fill Widget used to configure the mark fill element. More... | |
te::se::Mark * | m_mark |
Mark element that will be configured by this widget. More... | |
std::auto_ptr< Ui::GlyphMarkWidgetForm > | m_ui |
Widget form. More... | |
A widget used to build a mark element represented by a glyph.
Definition at line 64 of file GlyphMarkWidget.h.
te::qt::widgets::GlyphMarkWidget::GlyphMarkWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructs a glyph mark widget which is a child of parent, with widget flags set to f.
Definition at line 38 of file GlyphMarkWidget.cpp.
References te::qt::widgets::BasicFillWidget::getFill(), m_charMapWidget, m_fillWidget, m_mark, m_ui, onCharSelected(), onCurrentFontChanged(), onFillChanged(), te::se::Mark::setFill(), and updateMarkName().
te::qt::widgets::GlyphMarkWidget::~GlyphMarkWidget | ( | ) |
Destructor.
Definition at line 69 of file GlyphMarkWidget.cpp.
te::se::Mark * te::qt::widgets::GlyphMarkWidget::getMark | ( | ) | const |
Gets the configured mark element.
Definition at line 85 of file GlyphMarkWidget.cpp.
References te::se::Mark::clone().
Referenced by te::qt::widgets::GlyphGraphicWidget::GlyphGraphicWidget().
|
signal |
This signal is emitted when the internal mark element is changed.
|
protectedslot |
Definition at line 127 of file GlyphMarkWidget.cpp.
Referenced by GlyphMarkWidget().
|
protectedslot |
Definition at line 122 of file GlyphMarkWidget.cpp.
Referenced by GlyphMarkWidget().
|
protectedslot |
Definition at line 132 of file GlyphMarkWidget.cpp.
Referenced by GlyphMarkWidget().
void te::qt::widgets::GlyphMarkWidget::setMark | ( | const te::se::Mark * | mark | ) |
Sets a mark element to this widget.
mark | A valid mark element. |
Definition at line 74 of file GlyphMarkWidget.cpp.
References te::se::Mark::clone().
Referenced by te::qt::widgets::GlyphMarkDialog::getMark().
|
protected |
Updates the mark well-known name enconding selected font and selected character.
Definition at line 115 of file GlyphMarkWidget.cpp.
References te::qt::widgets::GlyphMarkRenderer::encode().
Referenced by GlyphMarkWidget().
|
protected |
Updates the widget form based on internal mark element.
Definition at line 90 of file GlyphMarkWidget.cpp.
References te::qt::widgets::GlyphMarkRenderer::decode().
|
private |
Character map widget.
Definition at line 129 of file GlyphMarkWidget.h.
Referenced by GlyphMarkWidget().
|
private |
Basic Fill Widget used to configure the mark fill element.
Definition at line 128 of file GlyphMarkWidget.h.
Referenced by GlyphMarkWidget().
|
private |
Mark element that will be configured by this widget.
Definition at line 130 of file GlyphMarkWidget.h.
Referenced by GlyphMarkWidget().
|
private |