te::qt::widgets::NewPropertyWidget Class Reference

#include <NewPropertyWidget.h>

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

Public Slots

void onDataTypeComboBoxActivated (int index)
 

Public Member Functions

bool buildProperty ()
 
te::dt::SimplePropertygetProperty ()
 It returns a simple property class object. More...
 
 NewPropertyWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
void setDataSourceId (std::string id)
 Used to get all data types supported by this data source. More...
 
 ~NewPropertyWidget ()
 

Private Attributes

QGridLayout * m_layout
 Qt Layout object. More...
 
te::dt::SimplePropertym_simpleProperty
 
te::qt::widgets::SimplePropertyWidgetm_spWidget
 
std::unique_ptr< Ui::NewPropertyWidgetForm > m_ui
 

Detailed Description

Definition at line 56 of file NewPropertyWidget.h.

Constructor & Destructor Documentation

te::qt::widgets::NewPropertyWidget::NewPropertyWidget ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Definition at line 43 of file NewPropertyWidget.cpp.

References m_layout, m_ui, and onDataTypeComboBoxActivated().

te::qt::widgets::NewPropertyWidget::~NewPropertyWidget ( )

Definition at line 59 of file NewPropertyWidget.cpp.

References m_simpleProperty, and m_spWidget.

Member Function Documentation

te::dt::SimpleProperty * te::qt::widgets::NewPropertyWidget::getProperty ( )

It returns a simple property class object.

Returns
The caller of this method will TAKE the ownership of the returned SimpleProperty pointer.

Definition at line 147 of file NewPropertyWidget.cpp.

References te::dt::SimpleProperty::clone(), and m_simpleProperty.

Referenced by te::qt::widgets::PropertyConverterDialog::adapt(), te::qt::widgets::NewPropertyDialog::getProperty(), and te::qt::widgets::CreateLayerWidget::onAddPushButtonClicked().

void te::qt::widgets::NewPropertyWidget::onDataTypeComboBoxActivated ( int  index)
slot
void te::qt::widgets::NewPropertyWidget::setDataSourceId ( std::string  id)

Used to get all data types supported by this data source.

Parameters
idString used to define the data source id

Definition at line 65 of file NewPropertyWidget.cpp.

References te::dt::BOOLEAN_TYPE, capabilities, te::dt::CHAR_TYPE, dataTypeCapabilities, te::dt::DATETIME_TYPE, te::dt::DOUBLE_TYPE, ds, te::dt::FLOAT_TYPE, te::dt::GEOMETRY_TYPE, te::da::DataSourceCapabilities::getDataTypeCapabilities(), te::common::Singleton< DataSourceManager >::getInstance(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, m_ui, te::dt::NUMERIC_TYPE, onDataTypeComboBoxActivated(), te::dt::STRING_TYPE, te::da::DataTypeCapabilities::supportsBoolean(), te::da::DataTypeCapabilities::supportsChar(), te::da::DataTypeCapabilities::supportsDateTime(), te::da::DataTypeCapabilities::supportsDouble(), te::da::DataTypeCapabilities::supportsFloat(), te::da::DataTypeCapabilities::supportsGeometry(), te::da::DataTypeCapabilities::supportsInt16(), te::da::DataTypeCapabilities::supportsInt32(), te::da::DataTypeCapabilities::supportsInt64(), te::da::DataTypeCapabilities::supportsNumeric(), te::da::DataTypeCapabilities::supportsString(), te::da::DataTypeCapabilities::supportsUChar(), te::da::DataTypeCapabilities::supportsUInt16(), te::da::DataTypeCapabilities::supportsUInt32(), te::da::DataTypeCapabilities::supportsUInt64(), te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.

Referenced by te::qt::widgets::CreateLayerWidget::onAddPushButtonClicked(), te::qt::widgets::CreateLayerWidget::onTargetDatasourceToolButtonPressed(), te::qt::widgets::CreateLayerWidget::onTargetFileToolButtonPressed(), te::qt::widgets::PropertyConverterDialog::set(), te::qt::widgets::CreateLayerWidget::setDataSource(), and te::qt::widgets::NewPropertyDialog::setDataSourceId().

Member Data Documentation

QGridLayout* te::qt::widgets::NewPropertyWidget::m_layout
private

Qt Layout object.

Definition at line 94 of file NewPropertyWidget.h.

Referenced by NewPropertyWidget(), and onDataTypeComboBoxActivated().

te::dt::SimpleProperty* te::qt::widgets::NewPropertyWidget::m_simpleProperty
private

Definition at line 92 of file NewPropertyWidget.h.

Referenced by buildProperty(), getProperty(), and ~NewPropertyWidget().

te::qt::widgets::SimplePropertyWidget* te::qt::widgets::NewPropertyWidget::m_spWidget
private
std::unique_ptr<Ui::NewPropertyWidgetForm> te::qt::widgets::NewPropertyWidget::m_ui
private

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