Isis 3 Developer Reference
Isis::TableViewHeader Class Reference

#include <TableViewHeader.h>

Inheritance diagram for Isis::TableViewHeader:
Inheritance graph
Collaboration diagram for Isis::TableViewHeader:
Collaboration graph

Public Slots

void handleFilterCountsChanged (int visibleTopLevelItemCount, int topLevelItemCount)
 Updates the visible columns, and geometry when the filter count changes. More...
 
void updateHeaderOffset (int)
 Updates the header offset. More...
 
void updateFilterProgress (int newProgress)
 Updates the current filter progress value. More...
 
void updateFilterProgressRange (int min, int max)
 Updates the range of the filter progress. More...
 
void updateRebuildProgress (int newProgress)
 Updates the current rebuild progress value. More...
 
void updateRebuildProgressRange (int min, int max)
 Updates the range of the rebuild progress. More...
 
void updateSortProgress (int newProgress)
 Updates the current sort progress value. More...
 
void updateSortProgressRange (int min, int max)
 Updates the range of the sort progress. More...
 

Signals

void columnResized (bool lastColumn)
 
void requestedGlobalSelection (bool select)
 
void requestedColumnSelection (int columnNum, bool select)
 
void sortingEnabled (bool)
 

Public Member Functions

 TableViewHeader (AbstractTableModel *someModel)
 Constructor. More...
 
virtual ~TableViewHeader ()
 Destructor. More...
 
virtual void setColumns (TableColumnList *)
 Sets the column list. More...
 
QSize minimumSizeHint () const
 Returns the minimum size based on the font. More...
 
QSize sizeHint () const
 Returns the minimum size based on the font. More...
 
void setModel (AbstractTableModel *someModel)
 Connects the table model to the functions that handle changes. More...
 

Protected Member Functions

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)
 Repaints the header. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TableViewHeader()

Isis::TableViewHeader::TableViewHeader ( AbstractTableModel someModel)
explicit

Constructor.

Parameters
someModelThe table model

References setModel().

◆ ~TableViewHeader()

Isis::TableViewHeader::~TableViewHeader ( )
virtual

Destructor.

Member Function Documentation

◆ columnResized

void Isis::TableViewHeader::columnResized ( bool  lastColumn)
signal

Referenced by mouseReleaseEvent().

◆ handleFilterCountsChanged

void Isis::TableViewHeader::handleFilterCountsChanged ( int  visibleTopLevelItemCount,
int  topLevelItemCount 
)
slot

Updates the visible columns, and geometry when the filter count changes.

Parameters
visibleTopLevelItemCountNumber of visible top level items
topLevelItemCountNumber of top level items

References Isis::TableColumn::getTitle(), Isis::TableColumnList::getVisibleColumns(), Isis::TableColumn::setWidth(), and Isis::TableColumnList::size().

Referenced by setModel().

◆ minimumSizeHint()

QSize Isis::TableViewHeader::minimumSizeHint ( ) const

Returns the minimum size based on the font.

Returns
QSize Minimum size allowed

Referenced by sizeHint().

◆ mouseMoveEvent()

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

Overrides QWidget::mouseMoveEvent.

Parameters
eventThe mouse move event

References Isis::TableColumnList::getSortingOrder(), and Isis::TableColumnList::getVisibleColumns().

◆ mousePressEvent()

void Isis::TableViewHeader::mousePressEvent ( QMouseEvent *  event)
protected

Overrides QWidget::mousePressEvent.

Parameters
eventThe mouse press event

References Isis::TableColumnList::getVisibleColumns(), and requestedGlobalSelection().

◆ mouseReleaseEvent()

◆ paintEvent()

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

Repaints the header.

Parameters
eventThe paint event

References ASSERT.

◆ requestedColumnSelection

void Isis::TableViewHeader::requestedColumnSelection ( int  columnNum,
bool  select 
)
signal

◆ requestedGlobalSelection

void Isis::TableViewHeader::requestedGlobalSelection ( bool  select)
signal

Referenced by mousePressEvent(), and setModel().

◆ setColumns()

void Isis::TableViewHeader::setColumns ( TableColumnList cols)
virtual

Sets the column list.

Parameters
colsThe column list

◆ setModel()

void Isis::TableViewHeader::setModel ( AbstractTableModel someModel)

◆ sizeHint()

QSize Isis::TableViewHeader::sizeHint ( ) const

Returns the minimum size based on the font.

See also
minimumSizeHint
Returns
QSize Minimum size allowed

References minimumSizeHint().

◆ sortingEnabled

void Isis::TableViewHeader::sortingEnabled ( bool  )
signal

◆ updateFilterProgress

void Isis::TableViewHeader::updateFilterProgress ( int  newProgress)
slot

Updates the current filter progress value.

Parameters
newProgressNew progress value

Referenced by setModel().

◆ updateFilterProgressRange

void Isis::TableViewHeader::updateFilterProgressRange ( int  min,
int  max 
)
slot

Updates the range of the filter progress.

Parameters
minThe minimum progress
maxThe maximum progress

Referenced by setModel().

◆ updateHeaderOffset

void Isis::TableViewHeader::updateHeaderOffset ( int  newOffset)
slot

Updates the header offset.

Parameters
newOffsetThe new header offset

◆ updateRebuildProgress

void Isis::TableViewHeader::updateRebuildProgress ( int  newProgress)
slot

Updates the current rebuild progress value.

Parameters
newProgressNew progress value

Referenced by setModel().

◆ updateRebuildProgressRange

void Isis::TableViewHeader::updateRebuildProgressRange ( int  min,
int  max 
)
slot

Updates the range of the rebuild progress.

Parameters
minThe minimum progress
maxThe maximum progress

Referenced by setModel().

◆ updateSortProgress

void Isis::TableViewHeader::updateSortProgress ( int  newProgress)
slot

Updates the current sort progress value.

Parameters
newProgressNew progress value

Referenced by setModel().

◆ updateSortProgressRange

void Isis::TableViewHeader::updateSortProgressRange ( int  min,
int  max 
)
slot

Updates the range of the sort progress.

Parameters
minThe minimum progress
maxThe maximum progress

Referenced by setModel().


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