#include <DataSetTableHorizontalHeader.h>
Signals | |
| void | linkTable (std::string firstFieldName, std::string secondFieldName) |
| Signal emitted when the drop event runs. More... | |
| void | linkTable (const LinkTableInfo &firstInfo, const LinkTableInfo &secondInfo) |
| Signal emitted when the drop event runs. More... | |
Public Member Functions | |
| DataSetTableHorizontalHeader (DataSetTableView *view) | |
| Constructor. More... | |
| bool | getAcceptDrop () |
| Gets accept drop flag. More... | |
| bool | getDragDrop () |
| Gets the drag drop flag. More... | |
| void | setAcceptDrop (bool b) |
| Sets accept drop. More... | |
| void | setDataSet (te::da::DataSet *dset) |
| Sets the data set to get drag and drop information. More... | |
| void | setDragDrop (bool b) |
| Sets the drag drop. More... | |
| void | setLayer (const te::map::AbstractLayer *layer) |
| Sets the layer to get drag and drop information. More... | |
Protected Member Functions | |
| void | dragEnterEvent (QDragEnterEvent *e) |
| Handles the drag enter event. More... | |
| void | dragMoveEvent (QDragMoveEvent *e) |
| Handles the drag move event. More... | |
| void | dropEvent (QDropEvent *e) |
| Handles the drop Event. More... | |
| te::da::DataSourcePtr | GetDataSource (const te::map::AbstractLayer *layer) |
| It gets the layer data source. More... | |
| void | mousePressEvent (QMouseEvent *e) |
| Handles the mouse pres event e initiates the drag and drop if the flag is active. More... | |
Protected Attributes | |
| bool | m_acceptDrop |
| True: accept drop. False: not accept drop. More... | |
| std::string | m_connInfo |
| connection info used for QMimeData. More... | |
| bool | m_doDragDrop |
| True: do drag and drop. False: do not drag and drop. More... | |
| te::da::DataSet * | m_dset |
| To get information for drag and drop. More... | |
| LinkTableInfo | m_firstLinkInfo |
| First link info. More... | |
| const te::map::AbstractLayer * | m_layer |
| To get information for drag and drop. More... | |
| LinkTableInfo | m_secondLinkInfo |
| Second link info. More... | |
| DataSetTableView * | m_view |
| data set table view pointer. More... | |
Definition at line 67 of file DataSetTableHorizontalHeader.h.
| te::qt::widgets::DataSetTableHorizontalHeader::DataSetTableHorizontalHeader | ( | DataSetTableView * | view | ) |
Constructor.
| parent | DataSetTableView parent. |
Definition at line 47 of file DataSetTableHorizontalHeader.cpp.
|
protected |
Handles the drag enter event.
| e | The drag enter event. |
Definition at line 193 of file DataSetTableHorizontalHeader.cpp.
References m_acceptDrop.
|
protected |
Handles the drag move event.
| e | The drag move event. |
Definition at line 205 of file DataSetTableHorizontalHeader.cpp.
References m_acceptDrop.
|
protected |
Handles the drop Event.
| e | The drag enter event. |
Definition at line 217 of file DataSetTableHorizontalHeader.cpp.
References GetDataSource(), te::map::AbstractLayer::getId(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getPropertyName(), te::map::AbstractLayer::getSchema(), te::map::AbstractLayer::getTitle(), te::map::AbstractLayer::getType(), linkTable(), m_acceptDrop, te::qt::widgets::LinkTableInfo::m_connInfo, te::qt::widgets::LinkTableInfo::m_dataSourceId, te::qt::widgets::LinkTableInfo::m_dataSourceType, m_dset, te::qt::widgets::LinkTableInfo::m_fieldName, te::qt::widgets::LinkTableInfo::m_fieldNumber, te::qt::widgets::LinkTableInfo::m_fieldType, m_firstLinkInfo, m_layer, te::qt::widgets::LinkTableInfo::m_layerId, te::qt::widgets::LinkTableInfo::m_layerName, te::qt::widgets::LinkTableInfo::m_layerTitle, te::qt::widgets::LinkTableInfo::m_layerType, and m_secondLinkInfo.
| bool te::qt::widgets::DataSetTableHorizontalHeader::getAcceptDrop | ( | ) |
Gets accept drop flag.
Definition at line 82 of file DataSetTableHorizontalHeader.cpp.
References m_acceptDrop.
Referenced by te::qt::widgets::DataSetTableView::getAcceptDrop().
|
protected |
It gets the layer data source.
| layer | The layer from which we obtain the source. |
Definition at line 286 of file DataSetTableHorizontalHeader.cpp.
References ds, te::map::AbstractLayer::getDataSourceId(), te::common::Singleton< DataSourceManager >::getInstance(), and te::map::AbstractLayer::getType().
Referenced by dropEvent(), and mousePressEvent().
| bool te::qt::widgets::DataSetTableHorizontalHeader::getDragDrop | ( | ) |
Gets the drag drop flag.
Definition at line 62 of file DataSetTableHorizontalHeader.cpp.
References m_doDragDrop.
Referenced by te::qt::widgets::DataSetTableView::getDragDrop().
|
signal |
Signal emitted when the drop event runs.
| firstFieldName | Field name from first table. |
| secondFieldName | Field name from the secont table. |
Referenced by dropEvent().
|
signal |
Signal emitted when the drop event runs.
| firstInfo | Link information from the first table. |
| secondInfo | Link information from the second table. |
|
protected |
Handles the mouse pres event e initiates the drag and drop if the flag is active.
| e | The mouse event. |
Definition at line 97 of file DataSetTableHorizontalHeader.cpp.
References col, ds, GetDataSource(), te::map::AbstractLayer::getId(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getPropertyName(), te::map::AbstractLayer::getSchema(), te::map::AbstractLayer::getTitle(), te::map::AbstractLayer::getType(), m_connInfo, m_doDragDrop, m_dset, m_layer, m_view, and p.
| void te::qt::widgets::DataSetTableHorizontalHeader::setAcceptDrop | ( | bool | b | ) |
Sets accept drop.
| b | True: accept drop. False: not accept drop. |
Definition at line 67 of file DataSetTableHorizontalHeader.cpp.
References b, and m_acceptDrop.
Referenced by te::qt::widgets::DataSetTableView::setAcceptDrop().
| void te::qt::widgets::DataSetTableHorizontalHeader::setDataSet | ( | te::da::DataSet * | dset | ) |
Sets the data set to get drag and drop information.
| layer | Pointer to the layer to be presented. |
Definition at line 92 of file DataSetTableHorizontalHeader.cpp.
References m_dset.
Referenced by te::qt::widgets::DataSetTableView::setDataSet().
| void te::qt::widgets::DataSetTableHorizontalHeader::setDragDrop | ( | bool | b | ) |
Sets the drag drop.
| b | True: does the drag drop. False: do not drag drop. |
Definition at line 57 of file DataSetTableHorizontalHeader.cpp.
References b, and m_doDragDrop.
Referenced by te::qt::widgets::DataSetTableView::setDragDrop().
| void te::qt::widgets::DataSetTableHorizontalHeader::setLayer | ( | const te::map::AbstractLayer * | layer | ) |
Sets the layer to get drag and drop information.
| layer | Pointer to the layer to be presented. |
Definition at line 87 of file DataSetTableHorizontalHeader.cpp.
References m_layer.
Referenced by te::qt::widgets::DataSetTableView::setLayer().
|
protected |
True: accept drop. False: not accept drop.
Definition at line 178 of file DataSetTableHorizontalHeader.h.
Referenced by dragEnterEvent(), dragMoveEvent(), dropEvent(), getAcceptDrop(), and setAcceptDrop().
|
protected |
connection info used for QMimeData.
Definition at line 183 of file DataSetTableHorizontalHeader.h.
Referenced by mousePressEvent().
|
protected |
True: do drag and drop. False: do not drag and drop.
Definition at line 177 of file DataSetTableHorizontalHeader.h.
Referenced by getDragDrop(), mousePressEvent(), and setDragDrop().
|
protected |
To get information for drag and drop.
Definition at line 180 of file DataSetTableHorizontalHeader.h.
Referenced by dropEvent(), mousePressEvent(), and setDataSet().
|
protected |
First link info.
Definition at line 181 of file DataSetTableHorizontalHeader.h.
Referenced by dropEvent().
|
protected |
To get information for drag and drop.
Definition at line 179 of file DataSetTableHorizontalHeader.h.
Referenced by dropEvent(), mousePressEvent(), and setLayer().
|
protected |
Second link info.
Definition at line 182 of file DataSetTableHorizontalHeader.h.
Referenced by dropEvent().
|
protected |
data set table view pointer.
Definition at line 176 of file DataSetTableHorizontalHeader.h.
Referenced by mousePressEvent().