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=0) | |
Constructor. More... | |
virtual | ~TOPPViewOpenDialog () |
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 of the low intensity peaks should be hidden. 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 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... | |
Dataset opening options for TOPPView.
TOPPViewOpenDialog | ( | const String & | data_name, |
bool | as_window, | ||
bool | as_2d, | ||
bool | cutoff, | ||
QWidget * | parent = 0 |
||
) |
Constructor.
|
virtual |
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 of the low intensity peaks should be hidden.
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 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_()
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:14 using doxygen 1.8.13 |