te::qt::widgets::DataSetTableHorizontalHeader Class Reference

#include <DataSetTableHorizontalHeader.h>

Inheritance diagram for te::qt::widgets::DataSetTableHorizontalHeader:

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::DataSetm_dset
 To get information for drag and drop. More...
 
LinkTableInfo m_firstLinkInfo
 First link info. More...
 
const te::map::AbstractLayerm_layer
 To get information for drag and drop. More...
 
LinkTableInfo m_secondLinkInfo
 Second link info. More...
 
DataSetTableViewm_view
 data set table view pointer. More...
 

Detailed Description

Definition at line 65 of file DataSetTableHorizontalHeader.h.

Constructor & Destructor Documentation

te::qt::widgets::DataSetTableHorizontalHeader::DataSetTableHorizontalHeader ( DataSetTableView view)

Constructor.

Parameters
parentDataSetTableView parent.

Member Function Documentation

void te::qt::widgets::DataSetTableHorizontalHeader::dragEnterEvent ( QDragEnterEvent *  e)
protected

Handles the drag enter event.

Parameters
eThe drag enter event.
void te::qt::widgets::DataSetTableHorizontalHeader::dragMoveEvent ( QDragMoveEvent *  e)
protected

Handles the drag move event.

Parameters
eThe drag move event.
void te::qt::widgets::DataSetTableHorizontalHeader::dropEvent ( QDropEvent *  e)
protected

Handles the drop Event.

Parameters
eThe drag enter event.
bool te::qt::widgets::DataSetTableHorizontalHeader::getAcceptDrop ( )

Gets accept drop flag.

Returns
True: accept drop. False: not accept drop.
te::da::DataSourcePtr te::qt::widgets::DataSetTableHorizontalHeader::GetDataSource ( const te::map::AbstractLayer layer)
protected

It gets the layer data source.

Parameters
layerThe layer from which we obtain the source.
bool te::qt::widgets::DataSetTableHorizontalHeader::getDragDrop ( )

Gets the drag drop flag.

Returns
True: is drag drop. False: not is drag drop.
void te::qt::widgets::DataSetTableHorizontalHeader::linkTable ( std::string  firstFieldName,
std::string  secondFieldName 
)
signal

Signal emitted when the drop event runs.

Parameters
firstFieldNameField name from first table.
secondFieldNameField name from the secont table.
void te::qt::widgets::DataSetTableHorizontalHeader::linkTable ( const LinkTableInfo firstInfo,
const LinkTableInfo secondInfo 
)
signal

Signal emitted when the drop event runs.

Parameters
firstInfoLink information from the first table.
secondInfoLink information from the second table.
void te::qt::widgets::DataSetTableHorizontalHeader::mousePressEvent ( QMouseEvent *  e)
protected

Handles the mouse pres event e initiates the drag and drop if the flag is active.

Parameters
eThe mouse event.
void te::qt::widgets::DataSetTableHorizontalHeader::setAcceptDrop ( bool  b)

Sets accept drop.

Parameters
bTrue: accept drop. False: not accept drop.
void te::qt::widgets::DataSetTableHorizontalHeader::setDataSet ( te::da::DataSet dset)

Sets the data set to get drag and drop information.

Parameters
layerPointer to the layer to be presented.
void te::qt::widgets::DataSetTableHorizontalHeader::setDragDrop ( bool  b)

Sets the drag drop.

Parameters
bTrue: does the drag drop. False: do not drag drop.
void te::qt::widgets::DataSetTableHorizontalHeader::setLayer ( const te::map::AbstractLayer layer)

Sets the layer to get drag and drop information.

Parameters
layerPointer to the layer to be presented.

Member Data Documentation

bool te::qt::widgets::DataSetTableHorizontalHeader::m_acceptDrop
protected

True: accept drop. False: not accept drop.

Definition at line 176 of file DataSetTableHorizontalHeader.h.

std::map<std::string, std::string> te::qt::widgets::DataSetTableHorizontalHeader::m_connInfo
protected

connection info used for QMimeData.

Definition at line 181 of file DataSetTableHorizontalHeader.h.

bool te::qt::widgets::DataSetTableHorizontalHeader::m_doDragDrop
protected

True: do drag and drop. False: do not drag and drop.

Definition at line 175 of file DataSetTableHorizontalHeader.h.

te::da::DataSet* te::qt::widgets::DataSetTableHorizontalHeader::m_dset
protected

To get information for drag and drop.

Definition at line 178 of file DataSetTableHorizontalHeader.h.

LinkTableInfo te::qt::widgets::DataSetTableHorizontalHeader::m_firstLinkInfo
protected

First link info.

Definition at line 179 of file DataSetTableHorizontalHeader.h.

const te::map::AbstractLayer* te::qt::widgets::DataSetTableHorizontalHeader::m_layer
protected

To get information for drag and drop.

Definition at line 177 of file DataSetTableHorizontalHeader.h.

LinkTableInfo te::qt::widgets::DataSetTableHorizontalHeader::m_secondLinkInfo
protected

Second link info.

Definition at line 180 of file DataSetTableHorizontalHeader.h.

DataSetTableView* te::qt::widgets::DataSetTableHorizontalHeader::m_view
protected

data set table view pointer.

Definition at line 174 of file DataSetTableHorizontalHeader.h.


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