CycloBranch
|
The class representing a widget for visualisation of a detail of a spectrum (opened after doubleclick on a row when results are reported). More...
#include <cSpectrumDetailWidget.h>
Signals | |
void | emitMZInterval (double minmz, double maxmz) |
The signal is emitted when the range of m/z ratios has been changed. More... | |
void | rawDataStateChangedSignal (bool state) |
The signal is emitted when raw data state was changed. More... | |
void | absoluteIntensityStateChangedSignal (bool state) |
The signal is emitted when the absolute intensity state was changed. More... | |
void | lastActiveDetail (int rowid) |
The signal is emitted when the widget has been moved. More... | |
Public Member Functions | |
cSpectrumDetailWidget () | |
The constructor. | |
cSpectrumDetailWidget (const cSpectrumDetailWidget &sd) | |
The copy constructor. More... | |
cSpectrumDetailWidget & | operator= (const cSpectrumDetailWidget &sd) |
Overloaded operator=. More... | |
~cSpectrumDetailWidget () | |
The destructor. | |
void | closeEvent (QCloseEvent *event) |
Handle the window close event. More... | |
void | initialize (int rowid, string scantitle, int activefileid, cGlobalPreferences *globalpreferences, cParameters *parameters, cTheoreticalSpectrum &theoreticalspectrum, QWidget *parent) |
Initialize the widget. More... | |
cTheoreticalSpectrum & | getTheoreticalSpectrum () |
Get the theoretical spectrum. More... | |
string | getDetailsAsHTMLString () |
Get details about a theoretical spectrum as a HTML string. More... | |
string | getPeaksTableAsHTMLString (bool unmatchedtheoreticalpeaks, bool unmatchedexperimentalpeaks, bool exportisomers) |
Get a table of peaks as a HTML string. More... | |
string | getPartialPeaksTableAsHTMLString (int id, bool exportisomers) |
Get a partial table of peaks as a HTML string. More... | |
void | prepareToShow (QAction *actionShowIsomers, cPeakListSeries *rawdata, vector< cImzMLItem > *imzmlprofilemetadata, bool profilemz64precision, bool profileintensity64precision, bool usedefaultsize) |
Prepare the widget to show. More... | |
void | findAll (const QString &str, QTextDocument::FindFlags opt=0, bool errormessage=true) |
Find all occurrences of str and highlight them. More... | |
void | exportImage (bool exportspectrum) |
Export spectrum/peptide image. More... | |
void | zoomToPeak (double value) |
Zoom to a peak determined by the value. More... | |
set< string > & | getLocalNeutralLosses () |
Get a set of local neutral losses. More... | |
void | setProfileSpectrumEnabled (bool enable) |
Set the state of profile spectrum visualization. More... | |
bool | hasProfileSpectrumEnabled () |
Check if the profile spectrum visualization is enabled. More... | |
void | disableProfileMode () |
Permanently disable the visualization in profile mode. | |
void | setAbsoluteIntensityEnabled (bool enable) |
Set the state of absolute intensity mode. More... | |
bool | hasAbsoluteIntensityEnabled () |
Check if the absolute intensity mode is enabled. More... | |
void | setHideMatchedPeaksEnabled (bool enable) |
Set the state of hide matched peaks mode. More... | |
bool | hasHideMatchedPeaksEnabled () |
Check if the hide matched peaks mode is enabled. More... | |
void | setHideUnmatchedPeaksEnabled (bool enable) |
Set the state of hide unmatched peaks mode. More... | |
bool | hasHideUnmatchedPeaksEnabled () |
Check if the hide unmatched peaks mode is enabled. More... | |
void | setHideScrambledPeaksEnabled (bool enable) |
Set the state of hide scrambled peaks mode. More... | |
bool | hasHideScrambledPeaksEnabled () |
Check if the hide scrambled peaks mode is enabled. More... | |
void | setHidePeakLabelsEnabled (bool enable) |
Set the state of hide peak labels mode. More... | |
bool | hasHidePeakLabelsEnabled () |
Check if the hide peak labels mode is enabled. More... | |
void | setMouseMzSelectionEnabled (bool enable) |
Set the state of mouse m/z selection tool. More... | |
bool | hasMouseMzSelectionEnabled () |
Check if the mouse m/z selection tool is enabled. More... | |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) |
Handle a key press event. More... | |
void | moveEvent (QMoveEvent *event) |
Handle a move event. More... | |
The class representing a widget for visualisation of a detail of a spectrum (opened after doubleclick on a row when results are reported).
cSpectrumDetailWidget::cSpectrumDetailWidget | ( | const cSpectrumDetailWidget & | sd | ) |
The copy constructor.
sd | reference to a cSpectrumDetailWidget |
|
signal |
The signal is emitted when the absolute intensity state was changed.
state | current state |
void cSpectrumDetailWidget::closeEvent | ( | QCloseEvent * | event | ) |
Handle the window close event.
event | pointer to QCloseEvent |
|
signal |
The signal is emitted when the range of m/z ratios has been changed.
minmz | a minimum threshold of m/z ratio |
maxmz | a maximum threshold of m/z ratio |
void cSpectrumDetailWidget::exportImage | ( | bool | exportspectrum | ) |
Export spectrum/peptide image.
exportspectrum | if true, a spectrum image is exported; if false, a peptide image is exported |
void cSpectrumDetailWidget::findAll | ( | const QString & | str, |
QTextDocument::FindFlags | opt = 0 , |
||
bool | errormessage = true |
||
) |
Find all occurrences of str and highlight them.
str | search string |
opt | search options |
errormessage | if true, an error message in a popup window is shown when no results are matched |
string cSpectrumDetailWidget::getDetailsAsHTMLString | ( | ) |
Get details about a theoretical spectrum as a HTML string.
string | details about a theoretical spectrum |
set< string > & cSpectrumDetailWidget::getLocalNeutralLosses | ( | ) |
Get a set of local neutral losses.
set<int> | get a set of local neutral losses |
string cSpectrumDetailWidget::getPartialPeaksTableAsHTMLString | ( | int | id, |
bool | exportisomers | ||
) |
Get a partial table of peaks as a HTML string.
id | identifier of a spectrum |
exportisomers | if true then isomers of building blocks are exported |
string | a partial table of peaks as a HTML string |
string cSpectrumDetailWidget::getPeaksTableAsHTMLString | ( | bool | unmatchedtheoreticalpeaks, |
bool | unmatchedexperimentalpeaks, | ||
bool | exportisomers | ||
) |
Get a table of peaks as a HTML string.
unmatchedtheoreticalpeaks | if true then unmatched theoretical peaks are included |
unmatchedexperimentalpeaks | if true then unmatched experimental peaks are included |
exportisomers | if true then isomers of building blocks are exported |
string | a table of peaks as a HTML string |
cTheoreticalSpectrum & cSpectrumDetailWidget::getTheoreticalSpectrum | ( | ) |
Get the theoretical spectrum.
cTheoreticalSpectrum | reference to a theoretical spectrum |
bool cSpectrumDetailWidget::hasAbsoluteIntensityEnabled | ( | ) |
Check if the absolute intensity mode is enabled.
bool | true if the absolute intensity mode is enabled |
bool cSpectrumDetailWidget::hasHideMatchedPeaksEnabled | ( | ) |
Check if the hide matched peaks mode is enabled.
bool | true if the hide matched peaks mode is enabled |
bool cSpectrumDetailWidget::hasHidePeakLabelsEnabled | ( | ) |
Check if the hide peak labels mode is enabled.
bool | true if the hide peak labels mode is enabled |
bool cSpectrumDetailWidget::hasHideScrambledPeaksEnabled | ( | ) |
Check if the hide scrambled peaks mode is enabled.
bool | true if the hide scrambled peaks mode is enabled |
bool cSpectrumDetailWidget::hasHideUnmatchedPeaksEnabled | ( | ) |
Check if the hide unmatched peaks mode is enabled.
bool | true if the hide unmatched peaks mode is enabled |
bool cSpectrumDetailWidget::hasMouseMzSelectionEnabled | ( | ) |
Check if the mouse m/z selection tool is enabled.
bool | true if the mouse m/z selection tool is enabled |
bool cSpectrumDetailWidget::hasProfileSpectrumEnabled | ( | ) |
Check if the profile spectrum visualization is enabled.
bool | true if the profile spectrum is enabled |
void cSpectrumDetailWidget::initialize | ( | int | rowid, |
string | scantitle, | ||
int | activefileid, | ||
cGlobalPreferences * | globalpreferences, | ||
cParameters * | parameters, | ||
cTheoreticalSpectrum & | theoreticalspectrum, | ||
QWidget * | parent | ||
) |
Initialize the widget.
rowid | id of a row |
scantitle | scan title |
activefileid | id of an active file |
globalpreferences | global preferences of the application |
parameters | a pointer to parameters |
theoreticalspectrum | a reference to a theoretical spectrum |
parent | pointer to a parent widget |
|
protected |
Handle a key press event.
event | pointer to QKeyEvent |
|
signal |
The signal is emitted when the widget has been moved.
rowid | rowid of the widget |
|
protected |
Handle a move event.
event | pointer to QMoveEvent |
cSpectrumDetailWidget & cSpectrumDetailWidget::operator= | ( | const cSpectrumDetailWidget & | sd | ) |
Overloaded operator=.
sd | reference to a cSpectrumDetailWidget |
void cSpectrumDetailWidget::prepareToShow | ( | QAction * | actionShowIsomers, |
cPeakListSeries * | rawdata, | ||
vector< cImzMLItem > * | imzmlprofilemetadata, | ||
bool | profilemz64precision, | ||
bool | profileintensity64precision, | ||
bool | usedefaultsize | ||
) |
Prepare the widget to show.
actionShowIsomers | reference to QAction to show isomers of building blocks |
rawdata | a pointer to a structure handling raw data |
imzmlprofilemetadata | imzml profile metadata |
profilemz64precision | true if 64 mz precision is used, false if 32 bit mz precision is used |
profileintensity64precision | true if 64 intensity precision is used, false if 32 bit intensity precision is used |
usedefaultsize | if true, the default size is used |
|
signal |
The signal is emitted when raw data state was changed.
state | current state |
void cSpectrumDetailWidget::setAbsoluteIntensityEnabled | ( | bool | enable | ) |
Set the state of absolute intensity mode.
enable | state of absolute intensity mode |
void cSpectrumDetailWidget::setHideMatchedPeaksEnabled | ( | bool | enable | ) |
Set the state of hide matched peaks mode.
enable | state of hide matched peaks mode |
void cSpectrumDetailWidget::setHidePeakLabelsEnabled | ( | bool | enable | ) |
Set the state of hide peak labels mode.
enable | state of hide peak labels mode |
void cSpectrumDetailWidget::setHideScrambledPeaksEnabled | ( | bool | enable | ) |
Set the state of hide scrambled peaks mode.
enable | state of hide scrambled peaks mode |
void cSpectrumDetailWidget::setHideUnmatchedPeaksEnabled | ( | bool | enable | ) |
Set the state of hide unmatched peaks mode.
enable | state of hide unmatched peaks mode |
void cSpectrumDetailWidget::setMouseMzSelectionEnabled | ( | bool | enable | ) |
Set the state of mouse m/z selection tool.
enable | state of mouse m/z selection tool |
void cSpectrumDetailWidget::setProfileSpectrumEnabled | ( | bool | enable | ) |
Set the state of profile spectrum visualization.
enable | state of profile spectrum visualization |
void cSpectrumDetailWidget::zoomToPeak | ( | double | value | ) |
Zoom to a peak determined by the value.
value | mz ratio of a peak |