Isis Developer Reference
Isis::TableViewContent Class Reference

#include <TableViewContent.h>

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

Public Slots

void scrollTo (QList< AbstractTreeItem * >)
 Scrolls to the selected items.
 
void scrollTo (AbstractTreeItem *)
 Scrolls to the selected item.
 
void refresh ()
 Refreshes the table and viewport.
 
void updateHorizontalScrollBar (bool scrollRight=false)
 Updates the horizontal scroll bar.
 

Signals

void rebuildModels (QList< AbstractTreeItem * >)
 
void modelDataChanged ()
 
void tableSelectionChanged ()
 
void tableSelectionChanged (QList< AbstractTreeItem * >)
 
void horizontalScrollBarValueChanged (int)
 
void editControlPoint (ControlPoint *controlPoint, QString serialNumber)
 

Public Member Functions

 TableViewContent (AbstractTableModel *someModel)
 Constructor.
 
virtual ~TableViewContent ()
 Destructor.
 
QSize minimumSizeHint () const
 Returns the minimum size hint.
 
QSize sizeHint () const
 Returns the minimum size hint.
 
AbstractTableModelgetModel ()
 Returns the model.
 
void setActiveControlNet (bool activeNet)
 Sets if there is an active control net.
 

Protected Member Functions

bool eventFilter (QObject *target, QEvent *event)
 Overrides QObject::eventFilter.
 
void keyPressEvent (QKeyEvent *event)
 Overrides QWidget::keyPressEvent.
 
void leaveEvent (QEvent *event)
 Overrides QWidget::leaveEvent.
 
void mouseDoubleClickEvent (QMouseEvent *event)
 Overrides QWidget::mouseDoubleClickEvent.
 
void mouseMoveEvent (QMouseEvent *event)
 Overrides QWidget::mouseMoveEvent.
 
void mousePressEvent (QMouseEvent *event)
 Overrides QWidget::mousePressEvent.
 
void mouseReleaseEvent (QMouseEvent *event)
 Overrides QWidget::mouseReleaseEvent.
 
void paintEvent (QPaintEvent *event)
 Paints the table when there is a paint event.
 
void resizeEvent (QResizeEvent *event)
 Updates the table when it is resized.
 
void scrollContentsBy (int dx, int dy)
 Updates the item list when the user scrolls.
 

Detailed Description

Author
????-??-?? Unknown

Constructor & Destructor Documentation

◆ TableViewContent()

Isis::TableViewContent::TableViewContent ( AbstractTableModel * someModel)

◆ ~TableViewContent()

Isis::TableViewContent::~TableViewContent ( )
virtual

Destructor.

Member Function Documentation

◆ editControlPoint

void Isis::TableViewContent::editControlPoint ( ControlPoint * controlPoint,
QString serialNumber )
signal

References editControlPoint().

Referenced by editControlPoint().

◆ eventFilter()

bool Isis::TableViewContent::eventFilter ( QObject * target,
QEvent * event )
protected

Overrides QObject::eventFilter.

Parameters
targetThe object that was changed
eventThe event that was triggered
Returns
bool True if the event is filtered out

◆ getModel()

AbstractTableModel * Isis::TableViewContent::getModel ( )

◆ horizontalScrollBarValueChanged

void Isis::TableViewContent::horizontalScrollBarValueChanged ( int )
signal

Referenced by TableViewContent().

◆ keyPressEvent()

◆ leaveEvent()

void Isis::TableViewContent::leaveEvent ( QEvent * event)
protected

Overrides QWidget::leaveEvent.

Parameters
eventQMouseEvent

◆ minimumSizeHint()

QSize Isis::TableViewContent::minimumSizeHint ( ) const

Returns the minimum size hint.

Returns
QSize Minimum size hint

Referenced by sizeHint().

◆ modelDataChanged

void Isis::TableViewContent::modelDataChanged ( )
signal

Referenced by TableViewContent().

◆ mouseDoubleClickEvent()

void Isis::TableViewContent::mouseDoubleClickEvent ( QMouseEvent * event)
protected

Overrides QWidget::mouseDoubleClickEvent.

Parameters
eventQMouseEvent

References Isis::AbstractTableModel::getDelegate(), and Isis::TableColumnList::getVisibleColumns().

◆ mouseMoveEvent()

void Isis::TableViewContent::mouseMoveEvent ( QMouseEvent * event)
protected

Overrides QWidget::mouseMoveEvent.

Parameters
eventQMouseEvent

References Isis::AbstractTreeItem::getChildren(), Isis::AbstractTreeItem::Point, Isis::AbstractTreeItem::setSelected(), and tableSelectionChanged().

◆ mousePressEvent()

◆ mouseReleaseEvent()

void Isis::TableViewContent::mouseReleaseEvent ( QMouseEvent * event)
protected

Overrides QWidget::mouseReleaseEvent.

Empty function

Parameters
eventQMouseEvent

◆ paintEvent()

void Isis::TableViewContent::paintEvent ( QPaintEvent * event)
protected

Paints the table when there is a paint event.

Overrides QWidget::paintEvent

Parameters
eventThe paint event

References Isis::TableColumnList::getVisibleWidth(), and Isis::TableColumnList::getVisibleXRange().

◆ rebuildModels

void Isis::TableViewContent::rebuildModels ( QList< AbstractTreeItem * > )
signal

◆ refresh

◆ resizeEvent()

void Isis::TableViewContent::resizeEvent ( QResizeEvent * event)
protected

Updates the table when it is resized.

Parameters
eventResize event

References updateHorizontalScrollBar().

◆ scrollContentsBy()

void Isis::TableViewContent::scrollContentsBy ( int dx,
int dy )
protected

Updates the item list when the user scrolls.

Parameters
dxX scroll
dyY scroll

◆ scrollTo [1/2]

void Isis::TableViewContent::scrollTo ( AbstractTreeItem * newlySelectedItem)
slot

Scrolls to the selected item.

Parameters
newlySelectedItemNewly selected item to scroll to

References getModel(), and Isis::AbstractTableModel::indexOfVisibleItem().

◆ scrollTo [2/2]

void Isis::TableViewContent::scrollTo ( QList< AbstractTreeItem * > newlySelectedItems)
slot

Scrolls to the selected items.

Parameters
newlySelectedItemsNewly selected items to scroll to

References scrollTo().

Referenced by Isis::TableView::handleModelSelectionChanged(), keyPressEvent(), scrollTo(), and TableViewContent().

◆ setActiveControlNet()

void Isis::TableViewContent::setActiveControlNet ( bool activeNet)

Sets if there is an active control net.

Parameters
boolThe bool if there is an active control net

Referenced by Isis::Directory::addCnetEditorView().

◆ sizeHint()

QSize Isis::TableViewContent::sizeHint ( ) const

Returns the minimum size hint.

See also
TableViewContent::minimumSizeHint()
Returns
QSize Minimum size hint

References minimumSizeHint().

◆ tableSelectionChanged [1/2]

void Isis::TableViewContent::tableSelectionChanged ( )
signal

◆ tableSelectionChanged [2/2]

void Isis::TableViewContent::tableSelectionChanged ( QList< AbstractTreeItem * > )
signal

◆ updateHorizontalScrollBar

void Isis::TableViewContent::updateHorizontalScrollBar ( bool scrollRight = false)
slot

Updates the horizontal scroll bar.

Parameters
scrollRightTrue if the horizontal scroll bar has scrolled right

References Isis::TableColumnList::getVisibleColumns().

Referenced by resizeEvent(), and TableViewContent().


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