1 #ifndef TableViewContent_H 
    2 #define TableViewContent_H 
    4 #include <QAbstractScrollArea> 
   12 template< 
typename T > 
class QList;
 
   21     class AbstractTableModel;
 
   22     class AbstractTreeItem;
 
   24     class TableColumnList;
 
   39         QSize minimumSizeHint() 
const;
 
   40         QSize sizeHint() 
const;
 
   47         void modelDataChanged();
 
   48         void tableSelectionChanged();
 
   50         void horizontalScrollBarValueChanged(
int);
 
   57         void updateHorizontalScrollBar(
bool scrollRight = 
false);
 
   61         bool eventFilter(
QObject *target, QEvent *event);
 
   62         void keyPressEvent(QKeyEvent *event);
 
   63         void leaveEvent(QEvent *event);
 
   64         void mouseDoubleClickEvent(QMouseEvent *event);
 
   65         void mouseMoveEvent(QMouseEvent *event);
 
   66         void mousePressEvent(QMouseEvent *event);
 
   67         void mouseReleaseEvent(QMouseEvent *event);
 
   68         void paintEvent(QPaintEvent *event);
 
   69         void resizeEvent(QResizeEvent *event);
 
   70         void scrollContentsBy(
int dx, 
int dy);
 
   81         void clearActiveCell();
 
   82         void clearColumnSelection();
 
   83         void copyCellSelection(
bool);
 
   86         int getColumnFromScreenX(
int screenX) 
const;
 
   87         int getRowFromScreenY(
int screenY) 
const;
 
   88         bool hasActiveCell() 
const;
 
   89         bool hasRowSelection() 
const;
 
   90         bool mouseInCellSelection(QPoint) 
const;
 
   91         bool mouseInRowSelection(QPoint) 
const;
 
   92         bool rowIsValid(
int rowNum) 
const;
 
   93         bool columnIsValid(
int colNum) 
const;
 
   94         bool cellIsEditable(
int, 
int) 
const;
 
   95         bool isDataColumn(
int) 
const;
 
   96         void paintRow(QPainter *, 
int, QPoint, QPoint);
 
   97         void updateActiveCell(QPoint);
 
   98         void updateHoveredCell(QPoint, 
bool);
 
  101         void finishEditing();
 
  102         void moveActiveCellDown();
 
  103         void moveActiveCellUp();
 
  104         void moveActiveCellLeft();
 
  105         void moveActiveCellRight();
 
  109         void copySelection();
 
  111         void deleteSelectedRows();
 
  112         void updateItemList();
 
  113         void showContextMenu(QPoint);
 
  125         bool m_lastShiftArrowDirectionUp;
 
  141         QPoint *m_mousePressPos;
 
  163         static const int ITEM_PADDING = 7;
 
  164         static const int ITEM_INDENTATION = 3;
 
QAction * m_deleteSelectedRowsAct
This action deletes the selected rows. 
 
Translates the tree model into a table model. 
 
QAction * m_applyToSelectionAct
This action applies (copies) the contents of the active cell to the current selection. 
 
Base class for an item in the tree. 
 
QAction * m_applyToAllAct
This action applies (copies) the contents of the active cell to all of the cells in the active cell's...
 
AbstractTreeItem * m_lastDirectlySelectedRow
This is the last row that was selected by either a control-click or normal click. ...
 
QList< AbstractTreeItem * > * rowsWithActiveColumnSelected
Stores a list of the rows that have their active column cells selected.