te::qt::widgets::ScalePropertyItem Class Reference

A widget used to define the scale values. More...

#include <ScalePropertyItem.h>

Inheritance diagram for te::qt::widgets::ScalePropertyItem:
te::qt::widgets::AbstractPropertyItem QWidget

Public Slots

virtual void valueChanged (QtProperty *p, int value)
 
virtual void valueChanged (QtProperty *p, bool value)
 
virtual void valueChanged (QtProperty *p, const QString &value)
 
virtual void valueChanged (QtProperty *p, const QColor &value)
 
virtual void valueChanged (QtProperty *p, const QFont &value)
 
virtual void valueChanged (QtProperty *p, const QSize &value)
 
virtual void valueChanged (QtProperty *p, const QSizeF &value)
 
virtual void valueChanged (QtProperty *p, const QPointF &value)
 

Public Member Functions

Initializer Methods

Methods related to instantiation and destruction.

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

Protected Member Functions

void addProperty (QtProperty *property, const QString &id, QColor c)
 
void setExpandedStatus (QtBrowserItem *item, bool status)
 

Protected Attributes

QColor m_colorParent
 
QMap< QString, QtProperty * > m_idToProperty
 
QtTreePropertyBrowser * m_propertyBrowser
 
QMap< QtProperty *, QString > m_propertyToId
 

Re-implementation of Pure Virtual Method

AbstractPropertyItem methods.

QtProperty * m_minScaleProperty
 
QtProperty * m_maxScaleProperty
 
double m_minScale
 
double m_maxScale
 
void setMinScaleDenominator (const double &value)
 
double getMinScaleDenominator ()
 
void setMaxScaleDenominator (const double &value)
 
double getMaxScaleDenominator ()
 
virtual void valueChanged (QtProperty *p, double value)
 
void scaleMinChanged ()
 
void scaleMaxChanged ()
 

Detailed Description

A widget used to define the scale values.

Definition at line 47 of file ScalePropertyItem.h.

Constructor & Destructor Documentation

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

Destructor.

Referenced by ScalePropertyItem().

Member Function Documentation

void te::qt::widgets::AbstractPropertyItem::addProperty ( QtProperty *  property,
const QString &  id,
QColor  c 
)
protectedinherited
double te::qt::widgets::ScalePropertyItem::getMaxScaleDenominator ( )

Definition at line 85 of file ScalePropertyItem.cpp.

References m_maxScale.

Referenced by te::qt::widgets::RuleProperty::onScaleMaxChanged().

double te::qt::widgets::ScalePropertyItem::getMinScaleDenominator ( )

Definition at line 73 of file ScalePropertyItem.cpp.

References m_minScale.

Referenced by te::qt::widgets::RuleProperty::onScaleMinChanged().

void te::qt::widgets::ScalePropertyItem::scaleMaxChanged ( )
signal

Referenced by valueChanged().

void te::qt::widgets::ScalePropertyItem::scaleMinChanged ( )
signal

This signal is emitted when the internal fill element is changed.

Referenced by valueChanged().

void te::qt::widgets::AbstractPropertyItem::setExpandedStatus ( QtBrowserItem *  item,
bool  status 
)
protectedinherited
void te::qt::widgets::ScalePropertyItem::setMaxScaleDenominator ( const double &  value)
void te::qt::widgets::ScalePropertyItem::setMinScaleDenominator ( const double &  value)
void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
int  value 
)
virtualslotinherited
void te::qt::widgets::ScalePropertyItem::valueChanged ( QtProperty *  p,
double  value 
)
virtualslot
void te::qt::widgets::AbstractPropertyItem::valueChanged ( QtProperty *  p,
bool  value 
)
virtualslotinherited

Definition at line 93 of file AbstractPropertyItem.cpp.

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

Definition at line 98 of file AbstractPropertyItem.cpp.

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

Definition at line 103 of file AbstractPropertyItem.cpp.

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

Definition at line 108 of file AbstractPropertyItem.cpp.

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

Definition at line 113 of file AbstractPropertyItem.cpp.

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

Definition at line 118 of file AbstractPropertyItem.cpp.

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

Definition at line 123 of file AbstractPropertyItem.cpp.

Member Data Documentation

QColor te::qt::widgets::AbstractPropertyItem::m_colorParent
protectedinherited
QMap<QString, QtProperty *> te::qt::widgets::AbstractPropertyItem::m_idToProperty
protectedinherited
double te::qt::widgets::ScalePropertyItem::m_maxScale
protected
QtProperty* te::qt::widgets::ScalePropertyItem::m_maxScaleProperty
protected

Definition at line 94 of file ScalePropertyItem.h.

Referenced by ScalePropertyItem(), setMaxScaleDenominator(), and valueChanged().

double te::qt::widgets::ScalePropertyItem::m_minScale
protected
QtProperty* te::qt::widgets::ScalePropertyItem::m_minScaleProperty
protected

Definition at line 93 of file ScalePropertyItem.h.

Referenced by ScalePropertyItem(), setMinScaleDenominator(), and valueChanged().

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

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