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 64 of file SymbolTableWidget.cpp.
|
protectedslot |
Definition at line 93 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 83 of file SymbolTableWidget.cpp.
| QSize te::qt::widgets::SymbolTableWidget::sizeHint | ( | ) | const |
Return the size hint to this widget.
Definition at line 88 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 68 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().