1 #ifndef TableViewContent_H 2 #define TableViewContent_H 4 #include <QAbstractScrollArea> 13 template<
typename T >
class QList;
21 class AbstractTreeItem;
22 class AbstractTableModel;
25 class TableColumnList;
103 void clearActiveCell();
104 void clearColumnSelection();
105 void copyCellSelection(
bool);
106 void createActions();
107 void selectAllRows();
108 int getColumnFromScreenX(
int screenX)
const;
109 int getRowFromScreenY(
int screenY)
const;
110 bool hasActiveCell()
const;
111 bool hasRowSelection()
const;
112 bool mouseInCellSelection(QPoint)
const;
113 bool mouseInRowSelection(QPoint)
const;
114 bool rowIsValid(
int rowNum)
const;
115 bool columnIsValid(
int colNum)
const;
116 bool cellIsEditable(
int,
int)
const;
117 bool isDataColumn(
int)
const;
118 void paintRow(QPainter *,
int, QPoint, QPoint);
119 void updateActiveCell(QPoint);
120 void updateHoveredCell(QPoint,
bool);
123 void finishEditing();
124 void moveActiveCellDown();
125 void moveActiveCellUp();
126 void moveActiveCellLeft();
127 void moveActiveCellRight();
131 void copySelection();
133 void deleteSelectedRows();
134 void editControlPoint();
135 void updateItemList();
136 void showContextMenu(QPoint);
148 bool m_lastShiftArrowDirectionUp;
170 QAction *m_applyToSelectionAct;
181 QAction *m_deleteSelectedRowsAct;
186 QAction *m_editControlPointAct;
188 bool m_activeControlNet;
192 static const int ITEM_PADDING = 7;
193 static const int ITEM_INDENTATION = 3;
virtual ~TableViewContent()
Destructor.
Definition: TableViewContent.cpp:100
void leaveEvent(QEvent *event)
Overrides QWidget::leaveEvent.
Definition: TableViewContent.cpp:545
void scrollTo(QList< AbstractTreeItem * >)
Scrolls to the selected items.
Definition: TableViewContent.cpp:266
void mousePressEvent(QMouseEvent *event)
Overrides QWidget::mousePressEvent.
Definition: TableViewContent.cpp:344
void updateHorizontalScrollBar(bool scrollRight=false)
Updates the horizontal scroll bar.
Definition: TableViewContent.cpp:243
void resizeEvent(QResizeEvent *event)
Updates the table when it is resized.
Definition: TableViewContent.cpp:977
void mouseMoveEvent(QMouseEvent *event)
Overrides QWidget::mouseMoveEvent.
Definition: TableViewContent.cpp:479
void refresh()
Refreshes the table and viewport.
Definition: TableViewContent.cpp:216
void paintEvent(QPaintEvent *event)
Paints the table when there is a paint event.
Definition: TableViewContent.cpp:854
void mouseDoubleClickEvent(QMouseEvent *event)
Overrides QWidget::mouseDoubleClickEvent.
Definition: TableViewContent.cpp:317
Definition: TableViewContent.h:52
bool eventFilter(QObject *target, QEvent *event)
Overrides QObject::eventFilter.
Definition: TableViewContent.cpp:307
void rebuildModels(QList< AbstractTreeItem * >)
Translates the tree model into a table model.
Definition: AbstractTableModel.h:40
void horizontalScrollBarValueChanged(int)
void setActiveControlNet(bool activeNet)
Sets if there is an active control net.
Definition: TableViewContent.cpp:208
Definition: TableColumn.h:18
Definition: TableColumnList.h:22
A single control point.
Definition: ControlPoint.h:369
Definition: TableView.h:35
void mouseReleaseEvent(QMouseEvent *event)
Overrides QWidget::mouseReleaseEvent.
Definition: TableViewContent.cpp:470
void scrollContentsBy(int dx, int dy)
Updates the item list when the user scrolls.
Definition: TableViewContent.cpp:990
AbstractTableModel * getModel()
Returns the model.
Definition: TableViewContent.cpp:159
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
QSize sizeHint() const
Returns the minimum size hint.
Definition: TableViewContent.cpp:149
void editControlPoint(ControlPoint *controlPoint, QString serialNumber)
void keyPressEvent(QKeyEvent *event)
Overrides QWidget::keyPressEvent.
Definition: TableViewContent.cpp:555
Base class for an item in the tree.
Definition: AbstractTreeItem.h:31
Definition: CubeIoHandler.h:39
QSize minimumSizeHint() const
Returns the minimum size hint.
Definition: TableViewContent.cpp:137
void tableSelectionChanged()
TableViewContent(AbstractTableModel *someModel)
Constructor.
Definition: TableViewContent.cpp:43