CycloBranch
cSummaryPeaksTableWidget Class Reference

Summary table of matched peaks. More...

#include <cSummaryPeaksTableWidget.h>

Inheritance diagram for cSummaryPeaksTableWidget:

Signals

void tableCancelled ()
 The table was not generated because the process was cancelled.
 
void summaryPeaksTableRowDoubleClicked (int rowid, double experimentalmz)
 A row was double clicked. More...
 
void resetRegion ()
 Reset the region in image window.
 
void sendFilterOptionsToImageWindow (vector< cCoordinateInfo > coordinateinfo, bool operatortype, string columnname1, string comparatorname1, string filterstring1, string columnname2, string comparatorname2, string filterstring2, bool casesensitive, bool wholeword)
 Send the vector of aggregated informations about coordinates to image window. More...
 
void sendFilterOptionsToChromatogram (cPeaksList eic)
 Send the EIC chromatogram to chromatogram window. More...
 

Public Member Functions

 cSummaryPeaksTableWidget (cGlobalPreferences *globalpreferences, QWidget *parent=(QWidget *) 0)
 The constructor. More...
 
 ~cSummaryPeaksTableWidget ()
 The destructor.
 
void closeEvent (QCloseEvent *event)
 Handle the window close event. More...
 
bool prepareToShow (QStandardItemModel *resultsstandardmodel, cMainWindowProxyModel *resultsproxymodel, cParameters *parameters, cTheoreticalSpectrumList *listoftheoreticalspectra, int activefileid, bool showisomers)
 Prepare the widget to show. More...
 
void deleteTable ()
 Delete the table content.
 
void updateFilterBySelectedRegion (int xmin, int xmax, int ymin, int ymax)
 Update the filter using an image region. More...
 
void applyGlobalPreferences (cGlobalPreferences *globalpreferences)
 Apply new global preferences. More...
 
cPubChemSearchWidgetgetPubChemSearchWidget ()
 Get the reference to cPubChemSearchWidget. More...
 
void filterTablerows ()
 Filter table rows.
 
void filterCompound (string name, string iontype, int datatypeview, string mzstr)
 Filter a specific compound. More...
 

Protected Member Functions

void keyPressEvent (QKeyEvent *event)
 Handle a key press event. More...
 

Detailed Description

Summary table of matched peaks.

Constructor & Destructor Documentation

◆ cSummaryPeaksTableWidget()

cSummaryPeaksTableWidget::cSummaryPeaksTableWidget ( cGlobalPreferences globalpreferences,
QWidget *  parent = (QWidget *)0 
)

The constructor.

Parameters
globalpreferencesglobal preferences of the application
parentpointer to a parent widget

Member Function Documentation

◆ applyGlobalPreferences()

void cSummaryPeaksTableWidget::applyGlobalPreferences ( cGlobalPreferences globalpreferences)

Apply new global preferences.

Parameters
globalpreferencesglobal preferences of the application

◆ closeEvent()

void cSummaryPeaksTableWidget::closeEvent ( QCloseEvent *  event)

Handle the window close event.

Parameters
eventpointer to QCloseEvent

◆ filterCompound()

void cSummaryPeaksTableWidget::filterCompound ( string  name,
string  iontype,
int  datatypeview,
string  mzstr 
)

Filter a specific compound.

Parameters
namecompound name
iontypeion type
datatypeviewtype of data shown
mzstrtheoretical m/z value converted to a string

◆ getPubChemSearchWidget()

cPubChemSearchWidget * cSummaryPeaksTableWidget::getPubChemSearchWidget ( )

Get the reference to cPubChemSearchWidget.

Return values
cPubChemSearchWidgetreference to cPubChemSearchWidget

◆ keyPressEvent()

void cSummaryPeaksTableWidget::keyPressEvent ( QKeyEvent *  event)
protected

Handle a key press event.

Parameters
eventpointer to QKeyEvent

◆ prepareToShow()

bool cSummaryPeaksTableWidget::prepareToShow ( QStandardItemModel *  resultsstandardmodel,
cMainWindowProxyModel resultsproxymodel,
cParameters parameters,
cTheoreticalSpectrumList listoftheoreticalspectra,
int  activefileid,
bool  showisomers 
)

Prepare the widget to show.

Parameters
resultsstandardmodelstandard model of the tableview in the main application window
resultsproxymodelproxy model of the tableview in the main application window
parametersparameters of the application
listoftheoreticalspectralists of theoretical spectra
activefileidid of the active file
showisomerstrue if isomers of blocks are reported; false otherwise
Return values
booltrue if the table was successfully prepared, false otherwise

◆ sendFilterOptionsToChromatogram

void cSummaryPeaksTableWidget::sendFilterOptionsToChromatogram ( cPeaksList  eic)
signal

Send the EIC chromatogram to chromatogram window.

Parameters
eiceic chromatogram

◆ sendFilterOptionsToImageWindow

void cSummaryPeaksTableWidget::sendFilterOptionsToImageWindow ( vector< cCoordinateInfo coordinateinfo,
bool  operatortype,
string  columnname1,
string  comparatorname1,
string  filterstring1,
string  columnname2,
string  comparatorname2,
string  filterstring2,
bool  casesensitive,
bool  wholeword 
)
signal

Send the vector of aggregated informations about coordinates to image window.

Parameters
coordinateinfoa vector of aggregated informations about coordinates
operatortypethe type of operator (0 = or; 1 = and)
columnname1name of column which was compared
comparatorname1name of used comparator
filterstring1a string used to filter the points
columnname2name of column which was compared
comparatorname2name of used comparator
filterstring2a string used to filter the points
casesensitivetrue if the string was used as a casesensitive, false otherwise
wholewordtrue if whole words only are compared, false otherwise

◆ summaryPeaksTableRowDoubleClicked

void cSummaryPeaksTableWidget::summaryPeaksTableRowDoubleClicked ( int  rowid,
double  experimentalmz 
)
signal

A row was double clicked.

Parameters
rowidid of a row in the main window
experimentalmzexperimental mz of a peak

◆ updateFilterBySelectedRegion()

void cSummaryPeaksTableWidget::updateFilterBySelectedRegion ( int  xmin,
int  xmax,
int  ymin,
int  ymax 
)

Update the filter using an image region.

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

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