A widget used to select a graphic element. More...
#include <GraphicSelectorWidget.h>
Signals | |
void | graphicChanged () |
Public Member Functions | |
te::se::Graphic * | getGraphic () const |
Gets the configured graphic element. More... | |
QIcon | getGraphicIcon (const QSize &size) |
Gets the current graphic icon. More... | |
void | setGraphic (const te::se::Graphic *graphic) |
Sets the graphic element. More... | |
Initializer Methods | |
Methods related to instantiation and destruction. | |
GraphicSelectorWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
Constructs a graphic selector widget dialog which is a child of parent, with widget flags set to f. More... | |
~GraphicSelectorWidget () | |
Destructor. More... | |
Protected Slots | |
void | onGraphicChanged () |
void | onGraphicTypeComboBoxCurrentIndexChanged (int index) |
Private Attributes | |
QStackedWidget * | m_graphicWidgets |
Set of Graphic Widgets that can be used to configure the graphic element. More... | |
std::auto_ptr< Ui::GraphicSelectorWidgetForm > | m_ui |
Widget form. More... | |
A widget used to select a graphic element.
Definition at line 61 of file GraphicSelectorWidget.h.
te::qt::widgets::GraphicSelectorWidget::GraphicSelectorWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Constructs a graphic selector widget dialog which is a child of parent, with widget flags set to f.
Definition at line 35 of file GraphicSelectorWidget.cpp.
References te::qt::widgets::AbstractGraphicWidget::getGraphicType(), graphicChanged(), m_graphicWidgets, m_ui, te::common::AbstractFactory< AbstractGraphicWidget, std::string >::make(), onGraphicChanged(), onGraphicTypeComboBoxCurrentIndexChanged(), and te::qt::widgets::AbstractGraphicWidgetFactory::RegisteredWidgets().
te::qt::widgets::GraphicSelectorWidget::~GraphicSelectorWidget | ( | ) |
Destructor.
Definition at line 65 of file GraphicSelectorWidget.cpp.
te::se::Graphic * te::qt::widgets::GraphicSelectorWidget::getGraphic | ( | ) | const |
Gets the configured graphic element.
Definition at line 87 of file GraphicSelectorWidget.cpp.
References te::qt::widgets::AbstractGraphicWidget::getGraphic().
Referenced by te::qt::widgets::PointSymbolizerWidget::PointSymbolizerWidget().
QIcon te::qt::widgets::GraphicSelectorWidget::getGraphicIcon | ( | const QSize & | size | ) |
Gets the current graphic icon.
size | The icon size that will be generated. |
Definition at line 93 of file GraphicSelectorWidget.cpp.
References te::qt::widgets::AbstractGraphicWidget::getGraphicIcon().
|
signal |
This signal is emitted when the graphic element is changed.
Referenced by GraphicSelectorWidget().
|
protectedslot |
Definition at line 105 of file GraphicSelectorWidget.cpp.
Referenced by GraphicSelectorWidget().
|
protectedslot |
Definition at line 99 of file GraphicSelectorWidget.cpp.
Referenced by GraphicSelectorWidget().
void te::qt::widgets::GraphicSelectorWidget::setGraphic | ( | const te::se::Graphic * | graphic | ) |
Sets the graphic element.
Definition at line 69 of file GraphicSelectorWidget.cpp.
References te::qt::widgets::AbstractGraphicWidget::setGraphic().
Referenced by te::qt::widgets::GraphicDialog::getGraphic().
|
private |
Set of Graphic Widgets that can be used to configure the graphic element.
Definition at line 123 of file GraphicSelectorWidget.h.
Referenced by GraphicSelectorWidget().
|
private |
Widget form.
Definition at line 122 of file GraphicSelectorWidget.h.
Referenced by GraphicSelectorWidget().