#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::map< std::string, 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 65 of file DataSetTableHorizontalHeader.h.
te::qt::widgets::DataSetTableHorizontalHeader::DataSetTableHorizontalHeader | ( | DataSetTableView * | view | ) |
Constructor.
parent | DataSetTableView parent. |
Definition at line 46 of file DataSetTableHorizontalHeader.cpp.
|
protected |
Handles the drag enter event.
e | The drag enter event. |
Definition at line 197 of file DataSetTableHorizontalHeader.cpp.
|
protected |
Handles the drag move event.
e | The drag move event. |
Definition at line 209 of file DataSetTableHorizontalHeader.cpp.
|
protected |
Handles the drop Event.
e | The drag enter event. |
Definition at line 221 of file DataSetTableHorizontalHeader.cpp.
References GetDataSource().
bool te::qt::widgets::DataSetTableHorizontalHeader::getAcceptDrop | ( | ) |
Gets accept drop flag.
Definition at line 81 of file DataSetTableHorizontalHeader.cpp.
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 290 of file DataSetTableHorizontalHeader.cpp.
References te::map::DataSetLayer::getDataSourceId(), te::map::QueryLayer::getDataSourceId(), te::map::DataSetAdapterLayer::getDataSourceId(), te::common::Singleton< DataSourceManager >::getInstance(), and te::map::AbstractLayer::getType().
bool te::qt::widgets::DataSetTableHorizontalHeader::getDragDrop | ( | ) |
Gets the drag drop flag.
Definition at line 61 of file DataSetTableHorizontalHeader.cpp.
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. |
|
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 96 of file DataSetTableHorizontalHeader.cpp.
References GetDataSource().
void te::qt::widgets::DataSetTableHorizontalHeader::setAcceptDrop | ( | bool | b | ) |
Sets accept drop.
b | True: accept drop. False: not accept drop. |
Definition at line 66 of file DataSetTableHorizontalHeader.cpp.
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 91 of file DataSetTableHorizontalHeader.cpp.
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 56 of file DataSetTableHorizontalHeader.cpp.
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 86 of file DataSetTableHorizontalHeader.cpp.
Referenced by te::qt::widgets::DataSetTableView::setLayer().
|
protected |
True: accept drop. False: not accept drop.
Definition at line 176 of file DataSetTableHorizontalHeader.h.
|
protected |
connection info used for QMimeData.
Definition at line 181 of file DataSetTableHorizontalHeader.h.
|
protected |
True: do drag and drop. False: do not drag and drop.
Definition at line 175 of file DataSetTableHorizontalHeader.h.
|
protected |
To get information for drag and drop.
Definition at line 178 of file DataSetTableHorizontalHeader.h.
|
protected |
First link info.
Definition at line 179 of file DataSetTableHorizontalHeader.h.
|
protected |
To get information for drag and drop.
Definition at line 177 of file DataSetTableHorizontalHeader.h.
|
protected |
Second link info.
Definition at line 180 of file DataSetTableHorizontalHeader.h.
|
protected |
data set table view pointer.
Definition at line 174 of file DataSetTableHorizontalHeader.h.