te::qt::widgets::FieldsDialog Class Reference

#include <FieldsDialog.h>

Inheritance diagram for te::qt::widgets::FieldsDialog:
QDialog

Public Member Functions

void clearInputValues ()
 Clears the input values list. More...
 
void clearOutputValues ()
 Clears the output values list. More...
 
 FieldsDialog (QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor. More...
 
te::da::FieldsgetFields ()
 Returns the selected fields. More...
 
te::da::JoinType getJoinType ()
 Returns the selected JoinType. More...
 
void setFixedOutputValues (std::vector< std::string > values, std::string iconName)
 Sets the fixed output values list. More...
 
void setInputValues (std::vector< std::string > values)
 Sets the input values list. More...
 
void setLeftLabel (const QString &value)
 Sets the label displayed above the left list widget. More...
 
void setOutputValues (std::vector< std::string > values)
 Sets the output values list. More...
 
void setRightLabel (const QString &value)
 Sets the label displayed above the right list widget. More...
 
 ~FieldsDialog ()
 Destructor. More...
 

Protected Slots

void onCancelPushButtonClicked ()
 
void onOkPushButtonClicked ()
 

Private Attributes

std::unique_ptr< DoubleListWidgetm_fieldsWidget
 The widget used to select which fields will be added to the query. More...
 
std::unique_ptr< Ui::FieldsDialogForm > m_ui
 The widget's form. More...
 

Detailed Description

Definition at line 54 of file FieldsDialog.h.

Constructor & Destructor Documentation

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

Constructor.

It constructs a FieldsWidget.

Parameters
parentthis widget's parent
fWindow flags used to configure this widget

Definition at line 39 of file FieldsDialog.cpp.

References m_fieldsWidget, m_ui, onCancelPushButtonClicked(), onOkPushButtonClicked(), and ~FieldsDialog().

te::qt::widgets::FieldsDialog::~FieldsDialog ( )
default

Destructor.

Referenced by FieldsDialog().

Member Function Documentation

void te::qt::widgets::FieldsDialog::clearInputValues ( )

Clears the input values list.

Definition at line 60 of file FieldsDialog.cpp.

References m_fieldsWidget.

void te::qt::widgets::FieldsDialog::clearOutputValues ( )

Clears the output values list.

Definition at line 65 of file FieldsDialog.cpp.

References m_fieldsWidget.

te::da::Fields * te::qt::widgets::FieldsDialog::getFields ( )

Returns the selected fields.

Note
By default, all fields will be used
The caller will take ownership of the returned pointer

Definition at line 95 of file FieldsDialog.cpp.

References m_fieldsWidget.

te::da::JoinType te::qt::widgets::FieldsDialog::getJoinType ( )

Returns the selected JoinType.

Definition at line 111 of file FieldsDialog.cpp.

References te::da::JOIN, te::da::LEFT_JOIN, m_ui, and te::da::RIGHT_JOIN.

void te::qt::widgets::FieldsDialog::onCancelPushButtonClicked ( )
protectedslot

Definition at line 126 of file FieldsDialog.cpp.

References m_fieldsWidget, and m_ui.

Referenced by FieldsDialog().

void te::qt::widgets::FieldsDialog::onOkPushButtonClicked ( )
protectedslot

Definition at line 121 of file FieldsDialog.cpp.

Referenced by FieldsDialog().

void te::qt::widgets::FieldsDialog::setFixedOutputValues ( std::vector< std::string >  values,
std::string  iconName 
)

Sets the fixed output values list.

Definition at line 80 of file FieldsDialog.cpp.

References m_fieldsWidget.

void te::qt::widgets::FieldsDialog::setInputValues ( std::vector< std::string >  values)

Sets the input values list.

Definition at line 70 of file FieldsDialog.cpp.

References m_fieldsWidget.

void te::qt::widgets::FieldsDialog::setLeftLabel ( const QString &  value)

Sets the label displayed above the left list widget.

Definition at line 85 of file FieldsDialog.cpp.

References m_fieldsWidget.

void te::qt::widgets::FieldsDialog::setOutputValues ( std::vector< std::string >  values)

Sets the output values list.

Definition at line 75 of file FieldsDialog.cpp.

References m_fieldsWidget.

void te::qt::widgets::FieldsDialog::setRightLabel ( const QString &  value)

Sets the label displayed above the right list widget.

Definition at line 90 of file FieldsDialog.cpp.

References m_fieldsWidget.

Member Data Documentation

std::unique_ptr<DoubleListWidget> te::qt::widgets::FieldsDialog::m_fieldsWidget
private

The widget used to select which fields will be added to the query.

Definition at line 134 of file FieldsDialog.h.

Referenced by clearInputValues(), clearOutputValues(), FieldsDialog(), getFields(), onCancelPushButtonClicked(), setFixedOutputValues(), setInputValues(), setLeftLabel(), setOutputValues(), and setRightLabel().

std::unique_ptr<Ui::FieldsDialogForm> te::qt::widgets::FieldsDialog::m_ui
private

The widget's form.

Definition at line 135 of file FieldsDialog.h.

Referenced by FieldsDialog(), getJoinType(), and onCancelPushButtonClicked().


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