A widget used to preview a symbol as separated layers. More...
#include <SymbolTableWidget.h>
Signals | |
void | symbolizerClicked (int index) |
This signal is emitted when a symbolizer of the symbol is clicked. More... | |
Public Member Functions | |
void | selectSymbolizer (const int &index) |
Selects the given index on symbol table layer. More... | |
QSize | sizeHint () const |
Return the size hint to this widget. More... | |
void | updatePreview (Symbol *symbol) |
Preview a symbol element. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
SymbolTableWidget (const QSize &size, QWidget *parent=0) | |
Constructs a symbol table widget with fixed size, which is a child of parent, with widget flags set to f. More... | |
~SymbolTableWidget () | |
Destructor. More... | |
Protected Slots | |
void | onPreviewTableItemSelectionChanged () |
Private Attributes | |
QTableWidget * | m_previewTable |
Qt element that will be used to visualize preview results. More... | |
QSize | m_size |
Preview size. More... | |
A widget used to preview a symbol as separated layers.
Definition at line 52 of file SymbolTableWidget.h.
te::qt::widgets::SymbolTableWidget::SymbolTableWidget | ( | const QSize & | size, |
QWidget * | parent = 0 |
||
) |
Constructs a symbol table widget with fixed size, which is a child of parent, with widget flags set to f.
size | The preview size. |
parent | The widget's parent. |
Definition at line 39 of file SymbolTableWidget.cpp.
References m_previewTable, m_size, and onPreviewTableItemSelectionChanged().
te::qt::widgets::SymbolTableWidget::~SymbolTableWidget | ( | ) |
Destructor.
Definition at line 72 of file SymbolTableWidget.cpp.
|
protectedslot |
Definition at line 101 of file SymbolTableWidget.cpp.
Referenced by SymbolTableWidget().
void te::qt::widgets::SymbolTableWidget::selectSymbolizer | ( | const int & | index | ) |
Selects the given index on symbol table layer.
index | The symbolizer index of symbol. |
Definition at line 91 of file SymbolTableWidget.cpp.
QSize te::qt::widgets::SymbolTableWidget::sizeHint | ( | ) | const |
Return the size hint to this widget.
Definition at line 96 of file SymbolTableWidget.cpp.
|
signal |
This signal is emitted when a symbolizer of the symbol is clicked.
index | The symbolizer index. |
void te::qt::widgets::SymbolTableWidget::updatePreview | ( | Symbol * | symbol | ) |
Preview a symbol element.
symb | A valid symbol element. |
Definition at line 76 of file SymbolTableWidget.cpp.
References te::qt::widgets::SymbologyPreview::build(), te::qt::widgets::Symbol::getSymbolizer(), and te::qt::widgets::Symbol::getSymbolizersCount().
|
private |
Qt element that will be used to visualize preview results.
Definition at line 116 of file SymbolTableWidget.h.
Referenced by SymbolTableWidget().
|
private |
Preview size.
Definition at line 117 of file SymbolTableWidget.h.
Referenced by SymbolTableWidget().