te::qt::widgets::CharEncodingMenuWidget Class Reference

This class is widget that provides a menu for char encoding selection. More...

#include <CharEncodingMenuWidget.h>

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

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 ()
 

Detailed Description

This class is widget that provides a menu for char encoding selection.

Definition at line 54 of file CharEncodingMenuWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::CharEncodingMenuWidget::CharEncodingMenuWidget ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)
te::qt::widgets::CharEncodingMenuWidget::~CharEncodingMenuWidget ( )
default

Default Destructor

Referenced by CharEncodingMenuWidget().

Member Function Documentation

void te::qt::widgets::CharEncodingMenuWidget::checkLayerDataSourceType ( )
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().

void te::qt::widgets::CharEncodingMenuWidget::onEncodingClicked ( )
slot
void te::qt::widgets::CharEncodingMenuWidget::setLayer ( te::map::AbstractLayerPtr  layer)

Set the layer that can be used.

Parameters
layerPointer 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().

Member Data Documentation

QActionGroup* te::qt::widgets::CharEncodingMenuWidget::m_actGroup
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().


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