te::qt::widgets::StyleControllerWidget Class Reference

A widget used to controll the style se element. More...

#include <StyleControllerWidget.h>

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

Signals

void mapRefresh ()
 
void updateLayer ()
 

Public Member Functions

void clear ()
 
StyleExplorergetStyleExplorer () const
 
void readStyle (std::string path)
 
void setLayer (te::map::AbstractLayer *layer, std::string selColor, te::se::Rule *currentRule)
 
void setStyle (te::se::Style *style)
 Sets a style element to this widget. More...
 
void writeStyle (const te::se::Style *style, std::string path)
 
Initializer Methods

Methods related to instantiation and destruction.

 StyleControllerWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructs a StyleControllerWidget which is a child of parent, with widget flags set to f. More...
 
 ~StyleControllerWidget ()
 Destructor. More...
 

Protected Slots

void changeLegendIconSize (int size)
 
void onAddRuleClicked ()
 
void onAddSymbolizerClicked ()
 
void onAddTextSymbolizerClicked ()
 
void onDownSymbolizerClicked ()
 
void onExportClicked ()
 
void onImportClicked ()
 
void onLibraryManagerClicked ()
 
void onMapRefreshClicked ()
 
void onRemoveRuleClicked ()
 
void onRemoveSymbolizerClicked ()
 
void onSelectionStyleChecked (bool state)
 
void onUpSymbolizerClicked ()
 
void onVisualStyleChecked (bool state)
 

Private Member Functions

bool checkSymbolizer (std::string file)
 

Private Attributes

te::map::AbstractLayerm_currentLayer
 Current Layer pointer (used for raster symbolizer information) More...
 
te::se::Stylem_currentStyle
 current style. More...
 
std::unique_ptr< Ui::StyleControllerWidgetForm > m_ui
 Widget form. More...
 

Detailed Description

A widget used to controll the style se element.

Definition at line 68 of file StyleControllerWidget.h.

Constructor & Destructor Documentation

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

Destructor.

Referenced by StyleControllerWidget().

Member Function Documentation

void te::qt::widgets::StyleControllerWidget::changeLegendIconSize ( int  size)
protectedslot

Definition at line 425 of file StyleControllerWidget.cpp.

References m_ui.

Referenced by StyleControllerWidget().

bool te::qt::widgets::StyleControllerWidget::checkSymbolizer ( std::string  file)
private

Definition at line 565 of file StyleControllerWidget.cpp.

References m_ui.

Referenced by readStyle().

void te::qt::widgets::StyleControllerWidget::clear ( )
te::qt::widgets::StyleExplorer * te::qt::widgets::StyleControllerWidget::getStyleExplorer ( ) const

Definition at line 162 of file StyleControllerWidget.cpp.

References m_ui.

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

void te::qt::widgets::StyleControllerWidget::mapRefresh ( )
signal

Referenced by onMapRefreshClicked().

void te::qt::widgets::StyleControllerWidget::onAddRuleClicked ( )
protectedslot
void te::qt::widgets::StyleControllerWidget::onAddSymbolizerClicked ( )
protectedslot
void te::qt::widgets::StyleControllerWidget::onAddTextSymbolizerClicked ( )
protectedslot
void te::qt::widgets::StyleControllerWidget::onDownSymbolizerClicked ( )
protectedslot

Definition at line 341 of file StyleControllerWidget.cpp.

References m_ui.

Referenced by StyleControllerWidget().

void te::qt::widgets::StyleControllerWidget::onExportClicked ( )
protectedslot
void te::qt::widgets::StyleControllerWidget::onImportClicked ( )
protectedslot
void te::qt::widgets::StyleControllerWidget::onMapRefreshClicked ( )
protectedslot

Definition at line 420 of file StyleControllerWidget.cpp.

References mapRefresh().

Referenced by StyleControllerWidget().

void te::qt::widgets::StyleControllerWidget::onRemoveRuleClicked ( )
protectedslot
void te::qt::widgets::StyleControllerWidget::onRemoveSymbolizerClicked ( )
protectedslot
void te::qt::widgets::StyleControllerWidget::onSelectionStyleChecked ( bool  state)
protectedslot
void te::qt::widgets::StyleControllerWidget::onUpSymbolizerClicked ( )
protectedslot

Definition at line 328 of file StyleControllerWidget.cpp.

References m_ui.

Referenced by StyleControllerWidget().

void te::qt::widgets::StyleControllerWidget::onVisualStyleChecked ( bool  state)
protectedslot
void te::qt::widgets::StyleControllerWidget::setStyle ( te::se::Style style)

Sets a style element to this widget.

Parameters
styleA valid style element.
Note
The widget will NOT take the ownership of the given style.
The widget will be update based on given style parameters.

Definition at line 97 of file StyleControllerWidget.cpp.

References m_currentLayer, m_currentStyle, and m_ui.

void te::qt::widgets::StyleControllerWidget::updateLayer ( )
signal
void te::qt::widgets::StyleControllerWidget::writeStyle ( const te::se::Style style,
std::string  path 
)

Member Data Documentation

te::map::AbstractLayer* te::qt::widgets::StyleControllerWidget::m_currentLayer
private

Current Layer pointer (used for raster symbolizer information)

Definition at line 154 of file StyleControllerWidget.h.

Referenced by clear(), onAddRuleClicked(), onImportClicked(), onSelectionStyleChecked(), onVisualStyleChecked(), setLayer(), and setStyle().

te::se::Style* te::qt::widgets::StyleControllerWidget::m_currentStyle
private

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