A customized table view for te::map::AbstractLayer objects. Uses a te::qt::widgets::DataSetModel as its model.  
 More...
#include <DataSetTableView.h>
A customized table view for te::map::AbstractLayer objects. Uses a te::qt::widgets::DataSetModel as its model. 
- Note
- We assume that the layer can return ALWAYS return a te::da::DataSet object with random access of it's values. 
Definition at line 80 of file DataSetTableView.h.
      
        
          | te::qt::widgets::DataSetTableView::DataSetTableView | ( | QWidget * | parent = 0 | ) |  | 
      
 
 
  
  | 
        
          | virtual te::qt::widgets::DataSetTableView::~DataSetTableView | ( |  | ) |  |  | virtual | 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::addColumn | ( |  | ) |  |  | slot | 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::changeColumnData | ( | const int & | column | ) |  |  | slot | 
 
Shows the change column data dialog. 
- Parameters
- 
  
    | column | Index of the column to be updated. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::createHistogram | ( | const int & | column | ) |  |  | slot | 
 
Creates a new histogram based on the data at position column. 
- Parameters
- 
  
    | column | Column that provides the data for the histogram. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::createNormalDistribution | ( | const int & | column | ) |  |  | slot | 
 
Creates a new chart that displays the normal distribution based on the data at position column. 
- Parameters
- 
  
    | column | Column that provides the data used to calculate the normal distribution. |  
 
 
 
      
        
          | bool te::qt::widgets::DataSetTableView::getAcceptDrop | ( |  | ) |  | 
      
 
Gets accept drop flag. 
- Returns
- True: accept drop. False: not accept drop. 
 
 
      
        
          | bool te::qt::widgets::DataSetTableView::getDragDrop | ( |  | ) |  | 
      
 
Gets the drag drop flag. 
- Returns
- True: is drag drop. False: not is drag drop. 
 
 
      
        
          | bool te::qt::widgets::DataSetTableView::hasEditions | ( |  | ) | const | 
      
 
Returns true if there are unsaved editions e false if there is not. 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::hideColumn | ( | const int & | column | ) |  |  | slot | 
 
Hides the column at position column. 
- Parameters
- 
  
    | column | Column to be hidden. |  
 
 
 
Highlights the objects identified by oids. 
- Parameters
- 
  
    | oids | The identifiers of rows to be highlighted. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::highlightRow | ( | const int & | row, |  
          |  |  | const bool & | add |  
          |  | ) |  |  |  | slot | 
 
Used to highlight the data when the mouse is clicked over a row in the table. 
- Parameters
- 
  
    | row | Row to be highlighted. |  | add | True to add to selection, false to new selection. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::highlightRows | ( | const int & | initRow, |  
          |  |  | const int & | finalRow |  
          |  | ) |  |  |  | slot | 
 
Select all rows from initRow to finalRow. 
- Parameters
- 
  
    | initRow | the begin row. |  | finalRow | the final row. |  
 
- Note
- It does not matter if initRow is less than finalRow. 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::promote | ( | const bool & | scroll = false | ) |  |  | slot | 
 
Promotes the highlighted rows. 
The rows highlighted are presented in the begining of the table.
- Parameters
- 
  
    | If | true, scrolls to the top of the table. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::removeColumn | ( | const int & | column | ) |  |  | slot | 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::removeSelection | ( | const int & | initRow, |  
          |  |  | const int & | finalRow |  
          |  | ) |  |  |  | protected | 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::renameColumn | ( | const int & | column | ) |  |  | slot | 
 
Rename a column of the table. 
- Parameters
- 
  
    | column | Index of the column to be renamed. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::resetColumnsOrder | ( |  | ) |  |  | slot | 
 
Shows columns in the original order. 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::retypeColumn | ( | const int & | column | ) |  |  | slot | 
 
Changes teh type of a column in the table. 
- Parameters
- 
  
    | column | Index of the column to be changed. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::saveEditions | ( |  | ) |  |  | slot | 
 
Saves all editions to the dataset. 
 
 
Emmite when objects was selected. 
 
 
      
        
          | void te::qt::widgets::DataSetTableView::setAcceptDrop | ( | bool | b | ) |  | 
      
 
Sets the drop on the horizontal header. 
- Parameters
- 
  
    | b | True: accept drop. False: do not accept drop. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::setAutoScrollEnabled | ( | const bool & | enable | ) |  |  | slot | 
 
Enable / disable auto-scroll. 
- Parameters
- 
  
    | enable | True for enable auto-scroll, false for disable it. |  
 
 
 
Updates the data set being visualized. 
Note that this DataSet MUST HAVE random access. The view DOES TAKE the ownership of the pointer.
- Parameters
- 
  
    | dset | The new data set to be visualized. |  | clearEditor | True for reset editions, false to maintain it. |  
 
 
 
      
        
          | void te::qt::widgets::DataSetTableView::setDragDrop | ( | bool | b | ) |  | 
      
 
Sets the drag drop on the horizontal header. When the drag drop is enabled, you lose the ability to swap columns. 
- Parameters
- 
  
    | b | True: does the drag drop. False: do not drag drop. |  
 
 
 
      
        
          | void te::qt::widgets::DataSetTableView::setHighlightColor | ( | const QColor & | color | ) |  | 
      
 
Update the color to be used. 
- Parameters
- 
  
  
 
 
      
        
          | void te::qt::widgets::DataSetTableView::setLayer | ( | te::map::AbstractLayer * | layer, | 
        
          |  |  | const bool & | clearEditor = true | 
        
          |  | ) |  |  | 
      
 
Sets the layer to be presented. 
- Parameters
- 
  
    | layer | Pointer to the layer to be presented. |  | clearEditor | True for reset editions, false to maintain it. |  
 
 
 
  
  | 
        
          | virtual void te::qt::widgets::DataSetTableView::setLayerSchema | ( | const te::da::DataSetType * | schema | ) |  |  | virtual | 
 
Sets the schema of the data set. It is used to define the primary keys and create the ObjectIdSet. 
- Parameters
- 
  
    | schema | The DataSetType to extract keys. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::setOIdsColumnsVisible | ( | const bool & | visible | ) |  |  | slot | 
 
Shows or hides the icon sinalizing the columns that identify each row. 
- Parameters
- 
  
    | visible | True for icon visible, false otherwise. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::setPromotionEnabled | ( | const bool & | enable | ) |  |  | slot | 
 
Enable / disable promotion. 
If enabled all selected rows will be moved to te top of the table.
- Parameters
- 
  
    | enable | True to enable promotion, false to disable it |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::showAllColumns | ( |  | ) |  |  | slot | 
 
Shows all hidden columns. 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::showColumn | ( | const int & | column | ) |  |  | slot | 
 
Shows the hidden column. 
- Parameters
- 
  
    | column | Column to be presented. |  
 
 
 
  
  | 
        
          | void te::qt::widgets::DataSetTableView::sortByColumns | ( | const bool & | asc | ) |  |  | slot | 
 
Sort by the selected columns. 
- Parameters
- 
  
    | asc | True for ascendent order, false for descendent. |  
 
 
 
  
  | 
        
          | bool te::qt::widgets::DataSetTableView::m_autoScrollEnabled |  | protected | 
 
 
  
  | 
        
          | bool te::qt::widgets::DataSetTableView::m_doScroll |  | protected | 
 
 
  
  | 
        
          | bool te::qt::widgets::DataSetTableView::m_orderAsc |  | protected | 
 
Flag that sinalizes if the it is sorted in ascending sorting. 
Definition at line 341 of file DataSetTableView.h.
 
 
  
  | 
        
          | std::vector<std::string> te::qt::widgets::DataSetTableView::m_orderby |  | protected | 
 
 
  
  | 
        
          | TablePopupFilter* te::qt::widgets::DataSetTableView::m_popupFilter |  | protected | 
 
 
  
  | 
        
          | bool te::qt::widgets::DataSetTableView::m_promotionEnabled |  | protected | 
 
 
  
  | 
        
          | bool te::qt::widgets::DataSetTableView::m_resetOrder |  | protected | 
 
 
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/qt/widgets/table/DataSetTableView.h