File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
 |
Isis 3 Programmer Reference
|
1 #ifndef TableViewContent_H
2 #define TableViewContent_H
12 #include <QAbstractScrollArea>
21 template<
typename T >
class QList;
29 class AbstractTreeItem;
30 class AbstractTableModel;
33 class TableColumnList;
75 void modelDataChanged();
76 void tableSelectionChanged();
78 void horizontalScrollBarValueChanged(
int);
115 void selectAllRows();
126 void paintRow(QPainter *,
int, QPoint, QPoint);
128 void updateHoveredCell(QPoint,
bool);
156 bool m_lastShiftArrowDirectionUp;
196 bool m_activeControlNet;
200 static const int ITEM_PADDING = 7;
201 static const int ITEM_INDENTATION = 3;
void finishEditing()
Saves the data from the cell the user was modifying.
void paintEvent(QPaintEvent *event)
Paints the table when there is a paint event.
void mouseMoveEvent(QMouseEvent *event)
Overrides QWidget::mouseMoveEvent.
void clearActiveCell()
Clears the active cell.
This is free and unencumbered software released into the public domain.
void createActions()
Builds the menus.
QList< AbstractTreeItem * > updateRowGroupSelection(int lastRow)
Updates which row is selected.
bool columnIsValid(int colNum) const
Checks if the column number is valid.
bool hasActiveCell() const
Checks if there is an active cell.
AbstractTreeItem * m_lastDirectlySelectedRow
This is the last row that was selected by either a control-click or normal click.
void nullify()
Clears all member variables.
void leaveEvent(QEvent *event)
Overrides QWidget::leaveEvent.
void cellDataChanged(TableColumn const *col)
Rebuilds the models when the data is changed.
void mousePressEvent(QMouseEvent *event)
Overrides QWidget::mousePressEvent.
void clearColumnSelection()
Clears the selected column.
bool mouseInCellSelection(QPoint) const
Checks if the mouse is in the selected cells.
bool rowIsValid(int rowNum) const
Checks if the row number is valid.
void scrollTo(QList< AbstractTreeItem * >)
Scrolls to the selected items.
void moveActiveCellLeft()
Changes the viewport when the active cell is moved.
Translates the tree model into a table model.
void paintRow(QPainter *, int, QPoint, QPoint)
Repaints the row.
bool mouseInRowSelection(QPoint) const
Checks if the mouse is in the selected row.
void resizeEvent(QResizeEvent *event)
Updates the table when it is resized.
void moveActiveCellUp()
Shifts the active cell up.
void moveActiveCellRight()
Changes the viewport when the active cell is moved.
void keyPressEvent(QKeyEvent *event)
Overrides QWidget::keyPressEvent.
AbstractTableModel * getModel()
Returns the model.
QSize sizeHint() const
Returns the minimum size hint.
QList< AbstractTreeItem * > * rowsWithActiveColumnSelected
Stores a list of the rows that have their active column cells selected.
int getRowFromScreenY(int screenY) const
Calculates the visible range of a row and returns the index of the column.
QAction * m_applyToSelectionAct
This action applies (copies) the contents of the active cell to the current selection.
TableViewContent(AbstractTableModel *someModel)
Constructor.
void updateItemList()
Updates the item list.
QAction * m_deleteSelectedRowsAct
This action deletes the selected rows.
void mouseDoubleClickEvent(QMouseEvent *event)
Overrides QWidget::mouseDoubleClickEvent.
virtual ~TableViewContent()
Destructor.
QSize minimumSizeHint() const
Returns the minimum size hint.
QAction * m_editControlPointAct
This action edits selected control point or if measure selected, edit parent control pt.
int getColumnFromScreenX(int screenX) const
Calculates the visible range of a column and returns the index of the column.
void showContextMenu(QPoint)
Populates the context menus based on where the user clicked.
void moveActiveCellDown()
Changes the viewport when the active cell is moved.
bool isDataColumn(int) const
Checks if the column has a non empty title.
bool eventFilter(QObject *target, QEvent *event)
Overrides QObject::eventFilter.
void updateColumnGroupSelection(AbstractTreeItem *)
Updates which column is selected.
void updateHorizontalScrollBar(bool scrollRight=false)
Updates the horizontal scroll bar.
This is free and unencumbered software released into the public domain.
void setActiveControlNet(bool activeNet)
Sets if there is an active control net.
void copyCellSelection(bool)
Copies the selected cells.
void mouseReleaseEvent(QMouseEvent *event)
Overrides QWidget::mouseReleaseEvent.
void copySelection()
Copies selected cells.
void copyAll()
Copies all of the cells.
void refresh()
Refreshes the table and viewport.
Base class for an item in the tree.
void updateActiveCell(QPoint)
Updates which cell is active.
void editControlPoint()
Retrieves the control point from the selected cells for editing.
QAction * m_applyToAllAct
This action applies (copies) the contents of the active cell to all of the cells in the active cell's...
This is free and unencumbered software released into the public domain.
bool cellIsEditable(int, int) const
Checks if the cell is editable.
bool hasRowSelection() const
Checks if there is a row selected.
void scrollContentsBy(int dx, int dy)
Updates the item list when the user scrolls.
void deleteSelectedRows()
Deletes the selected rows.