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 () |
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::auto_ptr < Ui::ConstraintsIndexesListWidgetForm > | m_ui |
This class is used to list the constraints and indexes of a datasetype.
Definition at line 57 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(), and onRemoveToolButtonClicked().
te::qt::widgets::ConstraintsIndexesListWidget::~ConstraintsIndexesListWidget | ( | ) |
Definition at line 61 of file ConstraintsIndexesListWidget.cpp.
|
protected |
Definition at line 195 of file ConstraintsIndexesListWidget.cpp.
References CONSTRAINT_PK_TYPE, CONSTRAINT_UK_TYPE, CONSTRAINT_UNKNOWN_TYPE, te::da::Constraint::getName(), te::da::Constraint::getType(), te::da::PRIMARY_KEY, and te::da::UNIQUE_KEY.
|
protected |
Definition at line 219 of file ConstraintsIndexesListWidget.cpp.
References te::da::Index::getName(), te::da::Index::getProperties(), and INDEX_TYPE.
|
protected |
Definition at line 270 of file ConstraintsIndexesListWidget.cpp.
Ui::ConstraintsIndexesListWidgetForm * te::qt::widgets::ConstraintsIndexesListWidget::getForm | ( | ) | const |
Definition at line 65 of file ConstraintsIndexesListWidget.cpp.
|
protected |
Definition at line 290 of file ConstraintsIndexesListWidget.cpp.
|
protected |
Definition at line 156 of file ConstraintsIndexesListWidget.cpp.
|
slot |
Definition at line 77 of file ConstraintsIndexesListWidget.cpp.
Referenced by ConstraintsIndexesListWidget().
|
slot |
Definition at line 151 of file ConstraintsIndexesListWidget.cpp.
Referenced by ConstraintsIndexesListWidget().
|
slot |
Definition at line 118 of file ConstraintsIndexesListWidget.cpp.
References te::da::Constraint::getName(), te::qt::widgets::ConstraintsIndexesPropertyDialog::setConstraint(), and te::qt::widgets::ConstraintsIndexesPropertyDialog::setIndex().
Referenced by ConstraintsIndexesListWidget().
|
slot |
Definition at line 90 of file ConstraintsIndexesListWidget.cpp.
References CONSTRAINT_PK_TYPE, CONSTRAINT_UK_TYPE, and INDEX_TYPE.
Referenced by ConstraintsIndexesListWidget().
|
protected |
Definition at line 254 of file ConstraintsIndexesListWidget.cpp.
References te::da::Index::getName().
|
protected |
Definition at line 228 of file ConstraintsIndexesListWidget.cpp.
References te::da::Constraint::getName().
|
protected |
Definition at line 238 of file ConstraintsIndexesListWidget.cpp.
References te::da::Constraint::getName().
void te::qt::widgets::ConstraintsIndexesListWidget::setDataSetType | ( | te::da::DataSetType * | dsType | ) |
Definition at line 70 of file ConstraintsIndexesListWidget.cpp.
|
private |
Definition at line 107 of file ConstraintsIndexesListWidget.h.
|
private |
Definition at line 106 of file ConstraintsIndexesListWidget.h.
Referenced by ConstraintsIndexesListWidget().