te::qt::widgets::RuleProperty Class Reference

A widget used to define the rule properties, such as: More...

#include <RuleProperty.h>

Inheritance diagram for te::qt::widgets::RuleProperty:
QWidget

Signals

void ruleChanged ()
 

Public Member Functions

te::se::RulegetRule () const
 Gets the configured polygon symbolizer element. More...
 
void setRule (te::se::Rule *rule)
 Sets a polygon symbolizer element to this widget. More...
 
Initializer Methods

Methods related to instantiation and destruction.

 RuleProperty (QWidget *parent)
 Constructor. More...
 
 ~RuleProperty ()
 Destructor. More...
 

Protected Slots

void onScaleMaxChanged ()
 
void onScaleMinChanged ()
 

Protected Attributes

te::se::Rulem_rule
 Rule element that will be configured by this widget. More...
 
te::qt::widgets::ScalePropertyItemm_sp
 

Detailed Description

A widget used to define the rule properties, such as:

  • scale
  • description

Definition at line 61 of file RuleProperty.h.

Constructor & Destructor Documentation

te::qt::widgets::RuleProperty::RuleProperty ( QWidget parent)

Constructor.

Definition at line 44 of file RuleProperty.cpp.

References m_sp, onScaleMaxChanged(), onScaleMinChanged(), and ~RuleProperty().

te::qt::widgets::RuleProperty::~RuleProperty ( )
default

Destructor.

Referenced by RuleProperty().

Member Function Documentation

te::se::Rule * te::qt::widgets::RuleProperty::getRule ( ) const

Gets the configured polygon symbolizer element.

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

Definition at line 80 of file RuleProperty.cpp.

References m_rule.

void te::qt::widgets::RuleProperty::onScaleMaxChanged ( )
protectedslot
void te::qt::widgets::RuleProperty::onScaleMinChanged ( )
protectedslot
void te::qt::widgets::RuleProperty::ruleChanged ( )
signal

This signal is emitted when the internalrule element is changed.

void te::qt::widgets::RuleProperty::setRule ( te::se::Rule rule)

Sets a polygon symbolizer element to this widget.

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

Definition at line 71 of file RuleProperty.cpp.

References te::se::Rule::getMaxScaleDenominator(), te::se::Rule::getMinScaleDenominator(), m_rule, m_sp, te::qt::widgets::ScalePropertyItem::setMaxScaleDenominator(), and te::qt::widgets::ScalePropertyItem::setMinScaleDenominator().

Referenced by te::qt::widgets::StyleDockWidget::onRuleSelected().

Member Data Documentation

te::se::Rule* te::qt::widgets::RuleProperty::m_rule
protected

Rule element that will be configured by this widget.

Definition at line 114 of file RuleProperty.h.

Referenced by getRule(), onScaleMaxChanged(), onScaleMinChanged(), and setRule().

te::qt::widgets::ScalePropertyItem* te::qt::widgets::RuleProperty::m_sp
protected

Definition at line 112 of file RuleProperty.h.

Referenced by onScaleMaxChanged(), onScaleMinChanged(), RuleProperty(), and setRule().


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