USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::CnetViz::TableViewContent Class Reference

#include <TableViewContent.h>

Inheritance diagram for Isis::CnetViz::TableViewContent:
Inheritance graph
Collaboration diagram for Isis::CnetViz::TableViewContent:
Collaboration graph

Public Slots

void scrollTo (QList< AbstractTreeItem * >)
 
void scrollTo (AbstractTreeItem *)
 
void refresh ()
 
void updateHorizontalScrollBar (bool scrollRight=false)
 

Signals

void rebuildModels (QList< CnetViz::AbstractTreeItem * >)
 
void modelDataChanged ()
 
void tableSelectionChanged ()
 
void tableSelectionChanged (QList< AbstractTreeItem * >)
 
void horizontalScrollBarValueChanged (int)
 

Public Member Functions

 TableViewContent (AbstractTableModel *someModel)
 
QSize minimumSizeHint () const
 
QSize sizeHint ()
 
AbstractTableModelgetModel ()
 

Protected Member Functions

bool eventFilter (QObject *target, QEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 
void leaveEvent (QEvent *event)
 
void mouseDoubleClickEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void paintEvent (QPaintEvent *event)
 
void resizeEvent (QResizeEvent *event)
 
void scrollContentsBy (int dx, int dy)
 

Private Slots

void copySelection ()
 
void copyAll ()
 
void deleteSelectedRows ()
 
void updateItemList ()
 
void showContextMenu (QPoint)
 

Private Member Functions

 TableViewContent (const TableViewContent &other)
 
TableViewContentoperator= (const TableViewContent &other)
 
void nullify ()
 
void cellDataChanged (TableColumn const *col)
 
void clearActiveCell ()
 
void clearColumnSelection ()
 
void copyCellSelection (bool)
 
void createActions ()
 
void selectAllRows ()
 
int getColumnFromScreenX (int screenX) const
 
int getRowFromScreenY (int screenY) const
 
bool hasActiveCell () const
 
bool hasRowSelection () const
 
bool mouseInCellSelection (QPoint) const
 
bool mouseInRowSelection (QPoint) const
 
bool rowIsValid (int rowNum) const
 
bool columnIsValid (int colNum) const
 
bool cellIsEditable (int, int) const
 
bool isDataColumn (int) const
 
void paintRow (QPainter *, int, QPoint, QPoint)
 
void updateActiveCell (QPoint)
 
void updateHoveredCell (QPoint, bool)
 
void updateColumnGroupSelection (AbstractTreeItem *)
 
QList< AbstractTreeItem * > updateRowGroupSelection (int lastRow)
 
void finishEditing ()
 
void moveActiveCellDown ()
 
void moveActiveCellUp ()
 
void moveActiveCellLeft ()
 
void moveActiveCellRight ()
 

Private Attributes

TableViewm_parentView
 
AbstractTableModelm_model
 
QList< QPointer
< AbstractTreeItem > > * 
m_items
 
TableColumnListm_columns
 
QPair< AbstractTreeItem *, int > * m_activeCell
 
QPair< AbstractTreeItem *, int > * m_lastShiftArrowSelectedCell
 
bool m_lastShiftArrowDirectionUp
 
QList< AbstractTreeItem * > * rowsWithActiveColumnSelected
 Stores a list of the rows that have their active column cells selected.
 
QWidgetm_editWidget
 
AbstractTreeItemm_lastDirectlySelectedRow
 This is the last row that was selected by either a control-click or normal click.
 
QList< AbstractTreeItem * > * m_lastShiftSelection
 
QPoint * m_mousePressPos
 
int m_rowHeight
 
QActionm_applyToSelectionAct
 This action applies (copies) the contents of the active cell to the current selection.
 
QActionm_applyToAllAct
 This action applies (copies) the contents of the active cell to all of the cells in the active cell's column.
 
QActionm_deleteSelectedRowsAct
 This action deletes the selected rows.
 

Static Private Attributes

static const int ITEM_PADDING = 7
 
static const int ITEM_INDENTATION = 3
 

Detailed Description

Author
????-??-?? Unknown
History:
2012-09-28 Kimberly Oyama - Changed member variables to be prefixed with "m_".

Definition at line 33 of file TableViewContent.h.

Member Data Documentation

QAction* Isis::CnetViz::TableViewContent::m_applyToAllAct
private

This action applies (copies) the contents of the active cell to all of the cells in the active cell's column.

Definition at line 154 of file TableViewContent.h.

QAction* Isis::CnetViz::TableViewContent::m_applyToSelectionAct
private

This action applies (copies) the contents of the active cell to the current selection.

Definition at line 148 of file TableViewContent.h.

QAction* Isis::CnetViz::TableViewContent::m_deleteSelectedRowsAct
private

This action deletes the selected rows.

Definition at line 159 of file TableViewContent.h.

AbstractTreeItem* Isis::CnetViz::TableViewContent::m_lastDirectlySelectedRow
private

This is the last row that was selected by either a control-click or normal click.

Definition at line 139 of file TableViewContent.h.

QList< AbstractTreeItem * >* Isis::CnetViz::TableViewContent::rowsWithActiveColumnSelected
private

Stores a list of the rows that have their active column cells selected.

Definition at line 131 of file TableViewContent.h.


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