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. More...
 
void scrollTo (AbstractTreeItem *)
 Scrolls to the selected item. More...
 
void refresh ()
 Refreshes the table and viewport. More...
 
void updateHorizontalScrollBar (bool scrollRight=false)
 Updates the horizontal scroll bar. More...
 

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. More...
 
virtual ~TableViewContent ()
 Destructor. More...
 
QSize minimumSizeHint () const
 Returns the minimum size hint. More...
 
QSize sizeHint () const
 Returns the minimum size hint. More...
 
AbstractTableModelgetModel ()
 Returns the model. More...
 
void setActiveControlNet (bool activeNet)
 Sets if there is an active control net. More...
 

Protected Member Functions

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

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

◆ 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 ( )

Returns the model.

Returns
AbstractTableModel The model of the table

References ASSERT.

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

◆ 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

◆ mouseMoveEvent()

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

◆ 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 ASSERT, 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

Referenced by Isis::TableView::handleModelSelectionChanged(), keyPressEvent(), 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(), and Isis::TableColumnList::size().

Referenced by resizeEvent(), and TableViewContent().


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