This class is widget that provides a menu for char encoding selection. More...
#include <CharEncodingMenuWidget.h>
Public Slots | |
| void | onEncodingClicked () |
Public Member Functions | |
| CharEncodingMenuWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| QMenu * | getMenu () |
| void | setLayer (te::map::AbstractLayerPtr layer) |
| Set the layer that can be used. More... | |
| ~CharEncodingMenuWidget () | |
Public Attributes | |
| QActionGroup * | m_actGroup |
| te::map::AbstractLayerPtr | m_layer |
| Selected Layer. More... | |
| QMenu * | m_menu |
Protected Member Functions | |
| void | checkLayerDataSourceType () |
This class is widget that provides a menu for char encoding selection.
Definition at line 54 of file CharEncodingMenuWidget.h.
| te::qt::widgets::CharEncodingMenuWidget::CharEncodingMenuWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Default Constructor
Definition at line 33 of file CharEncodingMenuWidget.cpp.
References te::core::CharEncoding::getEncodingList(), m_actGroup, m_menu, onEncodingClicked(), and ~CharEncodingMenuWidget().
|
default |
Default Destructor
Referenced by CharEncodingMenuWidget().
|
protected |
Definition at line 93 of file CharEncodingMenuWidget.cpp.
References ds, te::da::GetDataSource(), m_actGroup, and m_layer.
Referenced by setLayer().
| QMenu * te::qt::widgets::CharEncodingMenuWidget::getMenu | ( | ) |
Definition at line 88 of file CharEncodingMenuWidget.cpp.
References m_menu.
Referenced by te::qt::af::BaseApplication::makeDialog().
|
slot |
Definition at line 111 of file CharEncodingMenuWidget.cpp.
References te::core::CharEncoding::getEncodingList(), te::core::CharEncoding::getEncodingType(), and m_layer.
Referenced by CharEncodingMenuWidget().
| void te::qt::widgets::CharEncodingMenuWidget::setLayer | ( | te::map::AbstractLayerPtr | layer | ) |
Set the layer that can be used.
| layer | Pointer to the selected layer. |
Definition at line 62 of file CharEncodingMenuWidget.cpp.
References checkLayerDataSourceType(), te::core::CharEncoding::getEncodingName(), m_actGroup, and m_layer.
Referenced by te::qt::af::BaseApplication::onLayerCharEncodingHovered().
| QActionGroup* te::qt::widgets::CharEncodingMenuWidget::m_actGroup |
Definition at line 90 of file CharEncodingMenuWidget.h.
Referenced by CharEncodingMenuWidget(), checkLayerDataSourceType(), and setLayer().
| te::map::AbstractLayerPtr te::qt::widgets::CharEncodingMenuWidget::m_layer |
Selected Layer.
Definition at line 86 of file CharEncodingMenuWidget.h.
Referenced by checkLayerDataSourceType(), onEncodingClicked(), and setLayer().
| QMenu* te::qt::widgets::CharEncodingMenuWidget::m_menu |
Definition at line 88 of file CharEncodingMenuWidget.h.
Referenced by CharEncodingMenuWidget(), and getMenu().