This class is used to list the constraints and indexes of a datasetype. More...
#include <ConstraintsIndexesListWidget.h>
Public Slots | |
| void | onAddToolButtonClicked () |
| void | onCellClicked (int row, int col) |
| void | onEditToolButtonClicked () |
| void | onRemoveToolButtonClicked () |
Signals | |
| void | constraintsChanged () |
Public Member Functions | |
| ConstraintsIndexesListWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Ui::ConstraintsIndexesListWidgetForm * | getForm () const |
| void | setDataSetType (te::da::DataSetType *dsType) |
| ~ConstraintsIndexesListWidget () | |
Protected Member Functions | |
| void | addConstraint (te::da::Constraint *c) |
| void | addIndex (te::da::Index *i) |
| void | addTableItem (std::string name, std::string type, std::string properties) |
| std::string | getPropertiesStr (std::vector< te::dt::Property * > vec) |
| void | listDataSetProperties () |
| void | removeIndex (const std::string &name) |
| void | removePrimaryKey (const std::string &name) |
| void | removeUniqueKey (const std::string &name) |
Private Attributes | |
| te::da::DataSetType * | m_dsType |
| std::unique_ptr< Ui::ConstraintsIndexesListWidgetForm > | m_ui |
This class is used to list the constraints and indexes of a datasetype.
Definition at line 59 of file ConstraintsIndexesListWidget.h.
| te::qt::widgets::ConstraintsIndexesListWidget::ConstraintsIndexesListWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Definition at line 44 of file ConstraintsIndexesListWidget.cpp.
References m_ui, onAddToolButtonClicked(), onCellClicked(), onEditToolButtonClicked(), onRemoveToolButtonClicked(), and ~ConstraintsIndexesListWidget().
|
default |
Referenced by ConstraintsIndexesListWidget().
|
protected |
Definition at line 201 of file ConstraintsIndexesListWidget.cpp.
References addTableItem(), CONSTRAINT_PK_TYPE, CONSTRAINT_UK_TYPE, CONSTRAINT_UNKNOWN_TYPE, te::da::Constraint::getName(), getPropertiesStr(), te::da::Constraint::getType(), te::da::PRIMARY_KEY, and te::da::UNIQUE_KEY.
Referenced by listDataSetProperties().
|
protected |
Definition at line 225 of file ConstraintsIndexesListWidget.cpp.
References addTableItem(), te::da::Index::getName(), te::da::Index::getProperties(), getPropertiesStr(), and INDEX_TYPE.
Referenced by listDataSetProperties().
|
protected |
Definition at line 276 of file ConstraintsIndexesListWidget.cpp.
References m_ui.
Referenced by addConstraint(), and addIndex().
|
signal |
Referenced by onAddToolButtonClicked(), onEditToolButtonClicked(), and onRemoveToolButtonClicked().
| Ui::ConstraintsIndexesListWidgetForm * te::qt::widgets::ConstraintsIndexesListWidget::getForm | ( | ) | const |
Definition at line 64 of file ConstraintsIndexesListWidget.cpp.
References m_ui.
|
protected |
Definition at line 296 of file ConstraintsIndexesListWidget.cpp.
Referenced by addConstraint(), and addIndex().
|
protected |
Definition at line 162 of file ConstraintsIndexesListWidget.cpp.
References addConstraint(), addIndex(), te::da::DataSetType::getIndex(), te::da::DataSetType::getNumberOfIndexes(), te::da::DataSetType::getNumberOfUniqueKeys(), te::da::DataSetType::getPrimaryKey(), te::da::DataSetType::getUniqueKey(), m_dsType, and m_ui.
Referenced by onAddToolButtonClicked(), onEditToolButtonClicked(), onRemoveToolButtonClicked(), and setDataSetType().
|
slot |
Definition at line 76 of file ConstraintsIndexesListWidget.cpp.
References constraintsChanged(), listDataSetProperties(), and m_dsType.
Referenced by ConstraintsIndexesListWidget().
Definition at line 156 of file ConstraintsIndexesListWidget.cpp.
References m_ui.
Referenced by ConstraintsIndexesListWidget().
|
slot |
Definition at line 121 of file ConstraintsIndexesListWidget.cpp.
References constraintsChanged(), te::da::DataSetType::getIndex(), te::da::Constraint::getName(), te::da::DataSetType::getPrimaryKey(), te::da::DataSetType::getUniqueKey(), listDataSetProperties(), m_dsType, m_ui, te::qt::widgets::ConstraintsIndexesPropertyDialog::setConstraint(), and te::qt::widgets::ConstraintsIndexesPropertyDialog::setIndex().
Referenced by ConstraintsIndexesListWidget().
|
slot |
Definition at line 91 of file ConstraintsIndexesListWidget.cpp.
References CONSTRAINT_PK_TYPE, CONSTRAINT_UK_TYPE, constraintsChanged(), INDEX_TYPE, listDataSetProperties(), m_ui, removeIndex(), removePrimaryKey(), and removeUniqueKey().
Referenced by ConstraintsIndexesListWidget().
|
protected |
Definition at line 260 of file ConstraintsIndexesListWidget.cpp.
References te::da::DataSetType::getIndex(), te::da::Index::getName(), te::da::DataSetType::getNumberOfIndexes(), m_dsType, and te::da::DataSetType::remove().
Referenced by onRemoveToolButtonClicked().
|
protected |
Definition at line 234 of file ConstraintsIndexesListWidget.cpp.
References te::da::Constraint::getName(), te::da::DataSetType::getPrimaryKey(), m_dsType, and te::da::DataSetType::remove().
Referenced by onRemoveToolButtonClicked().
|
protected |
Definition at line 244 of file ConstraintsIndexesListWidget.cpp.
References te::da::Constraint::getName(), te::da::DataSetType::getNumberOfUniqueKeys(), te::da::DataSetType::getUniqueKey(), m_dsType, and te::da::DataSetType::remove().
Referenced by onRemoveToolButtonClicked().
| void te::qt::widgets::ConstraintsIndexesListWidget::setDataSetType | ( | te::da::DataSetType * | dsType | ) |
Definition at line 69 of file ConstraintsIndexesListWidget.cpp.
References listDataSetProperties(), and m_dsType.
|
private |
Definition at line 113 of file ConstraintsIndexesListWidget.h.
Referenced by listDataSetProperties(), onAddToolButtonClicked(), onEditToolButtonClicked(), removeIndex(), removePrimaryKey(), removeUniqueKey(), and setDataSetType().
|
private |
Definition at line 112 of file ConstraintsIndexesListWidget.h.
Referenced by addTableItem(), ConstraintsIndexesListWidget(), getForm(), listDataSetProperties(), onCellClicked(), onEditToolButtonClicked(), and onRemoveToolButtonClicked().