CycloBranch
cSummaryPeaksTableProxyModel Class Reference

A table proxy model. More...

#include <cSummaryPeaksTableProxyModel.h>

Inheritance diagram for cSummaryPeaksTableProxyModel:

Public Member Functions

 cSummaryPeaksTableProxyModel (QObject *parent=0)
 The constructor. More...
 
void initialize (eModeType mode, ePeakListFileFormat peaklistfileformat, bool generateisotopepattern, QComboBox *rowsfilteroperator, QComboBox *rowsfiltercombobox1, QComboBox *rowsfiltercomparatorcombobox1, QLineEdit *rowsfilterline1, QComboBox *rowsfiltercombobox2, QComboBox *rowsfiltercomparatorcombobox2, QLineEdit *rowsfilterline2)
 Initialize the model. More...
 
void setRegion (int xmin, int xmax, int ymin, int ymax)
 Set the region for filtering. More...
 
void setWholeWord (bool wholeword)
 Set whole word option. More...
 

Public Attributes

int xmin
 The minimum X coordinate.
 
int xmax
 The maximum X coordinate.
 
int ymin
 The minimum Y coordinate.
 
int ymax
 The maximum Y coordinate.
 

Protected Member Functions

bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE
 Reimplementation of filterAcceptsRow. More...
 
bool lessThan (const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE
 Reimplementation of lessThan. More...
 

Detailed Description

A table proxy model.

Constructor & Destructor Documentation

◆ cSummaryPeaksTableProxyModel()

cSummaryPeaksTableProxyModel::cSummaryPeaksTableProxyModel ( QObject *  parent = 0)

The constructor.

Parameters
parentpointer to a parent widget

Member Function Documentation

◆ filterAcceptsRow()

bool cSummaryPeaksTableProxyModel::filterAcceptsRow ( int  sourceRow,
const QModelIndex &  sourceParent 
) const
protected

Reimplementation of filterAcceptsRow.

Parameters
sourceRowint
sourceParentQModelIndex
Return values
boolbool

◆ initialize()

void cSummaryPeaksTableProxyModel::initialize ( eModeType  mode,
ePeakListFileFormat  peaklistfileformat,
bool  generateisotopepattern,
QComboBox *  rowsfilteroperator,
QComboBox *  rowsfiltercombobox1,
QComboBox *  rowsfiltercomparatorcombobox1,
QLineEdit *  rowsfilterline1,
QComboBox *  rowsfiltercombobox2,
QComboBox *  rowsfiltercomparatorcombobox2,
QLineEdit *  rowsfilterline2 
)

Initialize the model.

Parameters
modeprogram mode
peaklistfileformatpeaklist format
generateisotopepatterntrue if full isotope patterns are generated; false otherwise
rowsfilteroperatorreference to the combobox with operator selection
rowsfiltercombobox1reference to the combobox with selection of columns
rowsfiltercomparatorcombobox1reference to the combobox with selection of comparator
rowsfilterline1reference to a text field
rowsfiltercombobox2reference to the combobox with selection of columns
rowsfiltercomparatorcombobox2reference to the combobox with selection of comparator
rowsfilterline2reference to a text field

◆ lessThan()

bool cSummaryPeaksTableProxyModel::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
protected

Reimplementation of lessThan.

Parameters
leftQModelIndex
rightQModelIndex
Return values
boolbool

◆ setRegion()

void cSummaryPeaksTableProxyModel::setRegion ( int  xmin,
int  xmax,
int  ymin,
int  ymax 
)

Set the region for filtering.

Parameters
xminminimum x coordinate
xmaxmaximum x coordinate
yminminimum y coordinate
ymaxmaximum y coordinate

◆ setWholeWord()

void cSummaryPeaksTableProxyModel::setWholeWord ( bool  wholeword)

Set whole word option.

Parameters
wholewordtrue if whole words are matched, false otherwise

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