All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::qt::widgets::GlyphMarkPropertyItem Class Reference

A widget used to define a glyph object. More...

#include <GlyphMarkPropertyItem.h>

Inheritance diagram for te::qt::widgets::GlyphMarkPropertyItem:
te::qt::widgets::AbstractPropertyItem

Public Slots

void charMapSelected (const unsigned int &charCode)
 
void onFillChanged ()
 
void setDlg (QWidget *parent, QtProperty *prop)
 
void showCharMapDlg ()
 
virtual void valueChanged (QtProperty *p, int value)
 
virtual void valueChanged (QtProperty *p, double value)
 
virtual void valueChanged (QtProperty *p, const QColor &value)
 
virtual void valueChanged (QtProperty *p, const QSize &value)
 
virtual void valueChanged (QtProperty *p, const QPointF &value)
 
virtual void valueChanged (QtProperty *p, const QFont &value)
 
virtual void valueChanged (QtProperty *p, const QString &value)
 

Signals

void markChanged ()
 

Public Member Functions

te::se::MarkgetMark () 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.

 GlyphMarkPropertyItem (QtTreePropertyBrowser *pb, QColor c=QColor())
 Constructor. More...
 
 ~GlyphMarkPropertyItem ()
 Destructor. More...
 

Protected Member Functions

void addProperty (QtProperty *property, const QString &id, QColor c)
 
void setExpandedStatus (QtBrowserItem *item, bool status)
 
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...
 

Protected Attributes

te::qt::widgets::BasicFillPropertyItemm_basicFill
 
QWidget * m_charDlg
 
QtProperty * m_charProperty
 
QColor m_colorParent
 
QtProperty * m_fontProperty
 
QMap< QString, QtProperty * > m_idToProperty
 
te::se::Markm_mark
 Mark element that will be configured by this widget. More...
 
QtTreePropertyBrowser * m_propertyBrowser
 
QMap< QtProperty *, QString > m_propertyToId
 
bool m_update
 

Detailed Description

A widget used to define a glyph object.

Definition at line 54 of file GlyphMarkPropertyItem.h.

Constructor & Destructor Documentation

te::qt::widgets::GlyphMarkPropertyItem::GlyphMarkPropertyItem ( QtTreePropertyBrowser *  pb,
QColor  c = QColor() 
)
te::qt::widgets::GlyphMarkPropertyItem::~GlyphMarkPropertyItem ( )

Destructor.

Definition at line 75 of file GlyphMarkPropertyItem.cpp.

Member Function Documentation

void te::qt::widgets::GlyphMarkPropertyItem::charMapSelected ( const unsigned int &  charCode)
slot
te::se::Mark * te::qt::widgets::GlyphMarkPropertyItem::getMark ( ) const

Gets the configured mark element.

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

Definition at line 90 of file GlyphMarkPropertyItem.cpp.

References te::se::Mark::clone().

void te::qt::widgets::GlyphMarkPropertyItem::markChanged ( )
signal
void te::qt::widgets::GlyphMarkPropertyItem::onFillChanged ( )
slot

Definition at line 223 of file GlyphMarkPropertyItem.cpp.

Referenced by GlyphMarkPropertyItem().

void te::qt::widgets::GlyphMarkPropertyItem::setDlg ( QWidget *  parent,
QtProperty *  prop 
)
slot

Definition at line 156 of file GlyphMarkPropertyItem.cpp.

Referenced by GlyphMarkPropertyItem().

void te::qt::widgets::AbstractPropertyItem::setExpandedStatus ( QtBrowserItem *  item,
bool  status 
)
protectedinherited

Definition at line 70 of file AbstractPropertyItem.cpp.

void te::qt::widgets::GlyphMarkPropertyItem::setMark ( const te::se::Mark mark)

Sets a mark element to this widget.

Parameters
markA valid mark element.
Note
The widget will NOT take the ownership of the given mark.
The widget form will be update based on given mark parameters.

Definition at line 79 of file GlyphMarkPropertyItem.cpp.

References te::se::Mark::clone().

void te::qt::widgets::GlyphMarkPropertyItem::showCharMapDlg ( )
slot
void te::qt::widgets::GlyphMarkPropertyItem::updateMarkName ( )
protected
void te::qt::widgets::GlyphMarkPropertyItem::updateUi ( )
protected
void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
int  value 
)
virtualslotinherited
void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
double  value 
)
virtualslotinherited

Definition at line 86 of file AbstractPropertyItem.cpp.

void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QColor &  value 
)
virtualslotinherited

Definition at line 94 of file AbstractPropertyItem.cpp.

void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QSize &  value 
)
virtualslotinherited

Definition at line 102 of file AbstractPropertyItem.cpp.

void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
const QPointF &  value 
)
virtualslotinherited

Definition at line 106 of file AbstractPropertyItem.cpp.

void te::qt::widgets::GlyphMarkPropertyItem::valueChanged ( QtProperty *  p,
const QFont &  value 
)
virtualslot

Definition at line 144 of file GlyphMarkPropertyItem.cpp.

void te::qt::widgets::GlyphMarkPropertyItem::valueChanged ( QtProperty *  p,
const QString &  value 
)
virtualslot

Definition at line 150 of file GlyphMarkPropertyItem.cpp.

Member Data Documentation

te::qt::widgets::BasicFillPropertyItem* te::qt::widgets::GlyphMarkPropertyItem::m_basicFill
protected

Definition at line 125 of file GlyphMarkPropertyItem.h.

Referenced by GlyphMarkPropertyItem().

QWidget* te::qt::widgets::GlyphMarkPropertyItem::m_charDlg
protected

Definition at line 123 of file GlyphMarkPropertyItem.h.

QtProperty* te::qt::widgets::GlyphMarkPropertyItem::m_charProperty
protected

Definition at line 121 of file GlyphMarkPropertyItem.h.

Referenced by GlyphMarkPropertyItem().

QColor te::qt::widgets::AbstractPropertyItem::m_colorParent
protectedinherited

Definition at line 95 of file AbstractPropertyItem.h.

QtProperty* te::qt::widgets::GlyphMarkPropertyItem::m_fontProperty
protected

Definition at line 120 of file GlyphMarkPropertyItem.h.

Referenced by GlyphMarkPropertyItem().

QMap<QString, QtProperty *> te::qt::widgets::AbstractPropertyItem::m_idToProperty
protectedinherited

Definition at line 93 of file AbstractPropertyItem.h.

te::se::Mark* te::qt::widgets::GlyphMarkPropertyItem::m_mark
protected

Mark element that will be configured by this widget.

Definition at line 127 of file GlyphMarkPropertyItem.h.

Referenced by GlyphMarkPropertyItem().

QtTreePropertyBrowser* te::qt::widgets::AbstractPropertyItem::m_propertyBrowser
protectedinherited
QMap<QtProperty *, QString> te::qt::widgets::AbstractPropertyItem::m_propertyToId
protectedinherited

Definition at line 92 of file AbstractPropertyItem.h.

bool te::qt::widgets::GlyphMarkPropertyItem::m_update
protected

Definition at line 129 of file GlyphMarkPropertyItem.h.


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