OpenMS
2.5.0
|
Dataset opening options for TOPPView. More...
#include <OpenMS/VISUAL/DIALOGS/TOPPViewOpenDialog.h>
Public Member Functions | |
TOPPViewOpenDialog (const String &data_name, bool as_window, bool as_2d, bool cutoff, QWidget *parent=nullptr) | |
Constructor. More... | |
~TOPPViewOpenDialog () override | |
Destructor. More... | |
bool | viewMapAs2D () const |
Returns true, if 2D mode is to be used for maps. More... | |
bool | viewMapAs1D () const |
Returns true, if 1D mode is to be used for maps. More... | |
bool | isCutoffEnabled () const |
Returns if the low intensity peaks should be hidden. More... | |
bool | isDataDIA () const |
Returns if the data is DIA / SWATH-MS data. More... | |
bool | openAsNewWindow () const |
Returns true, if the data should be opened in a new window. More... | |
Int | getMergeLayer () const |
Returns the index of the selected merge layer. If the option is not selected -1 is returned. More... | |
void | disableDimension (bool as_2d) |
Disables view dimension section and sets the selected option. More... | |
void | disableCutoff (bool cutoff_on) |
Disables cutoff section and sets the selected option. More... | |
void | disableLocation (bool window) |
Disables opening location section and sets the selected option. More... | |
void | setMergeLayers (const Map< Size, String > &layers) |
Sets the possible merge layers (index and name) and activates the option. More... | |
Protected Slots | |
void | updateViewMode_ (QAbstractButton *button) |
slot that disables 2D/3D options, when as layer is selected More... | |
Protected Attributes | |
bool | map_as_2d_disabled_ |
Stores if this option is disabled, to avoid activating it in updateViewMode_() More... | |
Private Attributes | |
Ui::TOPPViewOpenDialogTemplate * | ui_ |
Dataset opening options for TOPPView.
TOPPViewOpenDialog | ( | const String & | data_name, |
bool | as_window, | ||
bool | as_2d, | ||
bool | cutoff, | ||
QWidget * | parent = nullptr |
||
) |
Constructor.
|
override |
Destructor.
void disableCutoff | ( | bool | cutoff_on | ) |
Disables cutoff section and sets the selected option.
Referenced by TOPPViewBase::addData().
void disableDimension | ( | bool | as_2d | ) |
Disables view dimension section and sets the selected option.
Referenced by TOPPViewBase::addData().
void disableLocation | ( | bool | window | ) |
Disables opening location section and sets the selected option.
Referenced by TOPPViewBase::addData().
Int getMergeLayer | ( | ) | const |
Returns the index of the selected merge layer. If the option is not selected -1 is returned.
Referenced by TOPPViewBase::addData().
bool isCutoffEnabled | ( | ) | const |
Returns if the low intensity peaks should be hidden.
Referenced by TOPPViewBase::addData().
bool isDataDIA | ( | ) | const |
Returns if the data is DIA / SWATH-MS data.
Referenced by TOPPViewBase::addData().
bool openAsNewWindow | ( | ) | const |
Returns true, if the data should be opened in a new window.
Referenced by TOPPViewBase::addData().
Sets the possible merge layers (index and name) and activates the option.
It is deactivated by default and can be deactivated manually by passing an empty list.
Referenced by TOPPViewBase::addData().
|
protectedslot |
slot that disables 2D/3D options, when as layer is selected
bool viewMapAs1D | ( | ) | const |
Returns true, if 1D mode is to be used for maps.
Referenced by TOPPViewBase::addData().
bool viewMapAs2D | ( | ) | const |
Returns true, if 2D mode is to be used for maps.
Referenced by TOPPViewBase::addData().
|
protected |
Stores if this option is disabled, to avoid activating it in updateViewMode_()
|
private |