#include <OpenMS/APPLICATIONS/TOPPViewBase.h>
Recent files | |
QStringList | recent_files_ |
list of the recently opened files | |
QAction * | recent_as_new_layer_ |
If this QAction is checked, the recent files are opened as a new layer. | |
std::vector< QAction * > | recent_actions_ |
list of the recently opened files actions (menu entries) | |
void | addRecentFile_ (const String &filename) |
adds a Filename to the recent files | |
void | updateRecentMenu_ () |
update the recent files menu | |
Public Slots | |
void | openSpectrumDialog () |
shows the dialog for opening spectra from file or the database | |
void | gotoDialog () |
shows the goto dialog | |
void | preferencesDialog () |
shows the preferences dialog | |
void | layerStatistics () |
Shows statistics (count,min,max,avg) about Intensity, Quality, Charge and meta data. | |
void | editMetadata () |
lets the user edit the meta data of a layer | |
void | closeFile () |
closes the active window | |
void | updateToolBar () |
updates the toolbar | |
void | updateLayerBar () |
adapts the layer bar to the active window | |
void | updateFilterBar () |
adapts the filter bar to the active window | |
void | updateTabBar (QWidget *w) |
brings the tab corresponding to the active window in front | |
void | tileVertical () |
tile the open windows vertically | |
void | tileHorizontal () |
tile the open windows horizontally | |
void | linkActiveTo (int) |
Links/unlinks two spectra (for zooming). | |
void | showStatusMessage (std::string msg, OpenMS::UInt time) |
Shows a status message in the status bar. | |
void | showCursorStatus (double mz, double intensity, double rt) |
shows m/z, intensity and rt in the status bar | |
void | showTOPPDialog () |
TOPP tool dialog. | |
void | annotateWithID () |
Annotates current layer with ID data. | |
void | showCurrentPeaksAs3D () |
Shows the current peak data of the active layer in 3D. | |
void | showSpectrumAs1D (int index) |
Shows the spectrum with index index of the sctive layer in 1D. | |
void | showAboutDialog () |
Shows the 'About' dialog. | |
Public Member Functions | |
TOPPViewBase (QWidget *parent=0) | |
Constructor. | |
~TOPPViewBase () | |
Destructor. | |
void | addSpectrum (const String &filename, bool as_new_window=true, bool maps_as_2d=true, bool maximize=false, OpenDialog::Mower use_mower=OpenDialog::NO_MOWER, FileHandler::Type force_type=FileHandler::UNKNOWN, String caption="") |
Opens and displays a spectrum form a file. | |
void | addDBSpectrum (UInt db_id, bool as_new_window=true, bool maps_as_2d=true, bool maximize=false, OpenDialog::Mower use_mower=OpenDialog::NO_MOWER) |
Opens and displays a spectrum form the database. | |
void | maximizeActiveSpectrum () |
maximizes the size of the active window | |
template<class StringListIterator> | |
void | loadFiles (const StringListIterator &begin, const StringListIterator &end) |
opens all the files that are inside the handed over iterator range | |
void | loadPreferences (String filename="") |
Loads the preferences from the filename given. | |
void | savePreferences () |
stores the preferences (used when this window is closed) | |
const LayerData * | getCurrentLayer () const |
Returns the active Layer data (0 if no layer is active). | |
Protected Slots | |
void | updateProcessLog () |
Appends process output to log window. | |
Layer manager slots | |
void | layerSelectionChange (int) |
slot for layer manager selection change | |
void | layerContextMenu (const QPoint &pos) |
slot for layer manager context menu | |
void | layerVisibilityChange (QListWidgetItem *item) |
slot for layer manager visibility change (check box) | |
void | filterContextMenu (const QPoint &pos) |
slot for filter manager context menu | |
void | filterEdit (QListWidgetItem *item) |
slot for editing a filter | |
Tabbar slots | |
void | closeByTab (int index) |
Closes the window corresponding to the data of the tab with index index . | |
void | focusByTab (int index) |
Raises the window corresponding to the data of the tab with index index . | |
void | removeTab (int id) |
Removes the tab with data id . | |
void | openRecentFile () |
Opens a file from the recent files menu. | |
Toolbar slots | |
void | setActionMode (int) |
void | setDrawMode1D (int) |
void | setIntensityMode (int) |
void | changeLayerFlag (bool) |
void | resetZoom () |
void | showProjections () |
Protected Member Functions | |
void | addTab_ (SpectrumWidget *, const String &) |
Adds a tab for the window in the tabbar. | |
Param | getSpectrumParameters_ (UInt dim) |
Opens a SpectrumWidget as a new window. | |
void | showAsWindow_ (SpectrumWidget *sw, const String &caption) |
SpectrumWidget * | window_ (int id) const |
returns the window with id id | |
SpectrumWidget * | activeWindow_ () const |
returns a pointer to the active SpectrumWidget (0 if none is active) | |
SpectrumCanvas * | activeCanvas_ () const |
returns a pointer to the active SpectrumCanvas (0 if none is active) | |
Spectrum1DWidget * | active1DWindow_ () const |
returns a pointer to the active Spectrum1DWidget (0 the active window is no Spectrum1DWidget or there is no active window) | |
Spectrum2DWidget * | active2DWindow_ () const |
returns a pointer to the active Spectrum2DWidget (0 the active window is no Spectrum2DWidget or there is no active window) | |
Spectrum3DWidget * | active3DWindow_ () const |
returns a pointer to the active Spectrum3DWidget (0 the active window is no Spectrum2DWidget or there is no active window) | |
float | estimateNoise_ (const SpectrumCanvas::ExperimentType &exp) |
Estimates the noise by evaluating 10 random scans of MS level 1. | |
void | checkPreferences_ () |
check if all avaiable preferences get set by the .ini file. If there are some missing entries fill them with default values. | |
void | closeEvent (QCloseEvent *event) |
Protected Attributes | |
QListWidget * | layer_manager_ |
Layer mangment widget. | |
QListWidget * | filters_ |
Data filter widget. | |
QTextEdit * | log_ |
Log output window. | |
QWorkspace * | ws_ |
Main workspace. | |
EnhancedTabBar * | tab_bar_ |
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData(). | |
std::map< int, int > | link_map_ |
Map that stores linked pairs of 1D windows. | |
Toolbar | |
QToolBar * | tool_bar_ |
QButtonGroup * | action_group_ |
QButtonGroup * | intensity_group_ |
QToolBar * | tool_bar_1d_ |
QButtonGroup * | draw_group_1d_ |
QComboBox * | link_box_ |
QToolBar * | tool_bar_2d_ |
QAction * | dm_precursors_2d_ |
QAction * | dm_hull_2d_ |
QAction * | dm_hulls_2d_ |
QAction * | dm_numbers_2d_ |
QAction * | projections_2d_ |
Status bar | |
QLabel * | message_label_ |
Label for messages in the status bar. | |
QLabel * | mz_label_ |
m/z label for messages in the status bar | |
QLabel * | int_label_ |
Intensity label for messages in the status bar. | |
QLabel * | rt_label_ |
RT label for messages in the status bar. |
TOPPViewBase | ( | QWidget * | parent = 0 |
) |
Constructor.
~TOPPViewBase | ( | ) |
Destructor.
void addSpectrum | ( | const String & | filename, | |
bool | as_new_window = true , |
|||
bool | maps_as_2d = true , |
|||
bool | maximize = false , |
|||
OpenDialog::Mower | use_mower = OpenDialog::NO_MOWER , |
|||
FileHandler::Type | force_type = FileHandler::UNKNOWN , |
|||
String | caption = "" | |||
) |
Opens and displays a spectrum form a file.
filename | The file to open | |
as_new_window | If the data is displayed in the current window or in a new window | |
maps_as_2d | If maps are displayed 2D or 3D | |
maximize | If the window the new file was added to should be displayed maximized | |
use_mower | If a mower should be used to suppress noise in the data | |
force_type | File type to force | |
caption | Sets the layer name and window caption of the data. If unset the file name is used. |
void addDBSpectrum | ( | UInt | db_id, | |
bool | as_new_window = true , |
|||
bool | maps_as_2d = true , |
|||
bool | maximize = false , |
|||
OpenDialog::Mower | use_mower = OpenDialog::NO_MOWER | |||
) |
Opens and displays a spectrum form the database.
db_id | The id in the database | |
as_new_window | If the data is displayed in the current window or in a new window | |
maps_as_2d | If maps are displayed 2D or 3D | |
maximize | If the window the new file was added to should be displayed maximized | |
use_mower | If a mower should be used to suppress noise in the data |
void maximizeActiveSpectrum | ( | ) |
maximizes the size of the active window
void loadFiles | ( | const StringListIterator & | begin, | |
const StringListIterator & | end | |||
) | [inline] |
opens all the files that are inside the handed over iterator range
void loadPreferences | ( | String | filename = "" |
) |
Loads the preferences from the filename given.
If the filename is empty, the application name + ".ini" is used as filename
void savePreferences | ( | ) |
stores the preferences (used when this window is closed)
const LayerData* getCurrentLayer | ( | ) | const |
Returns the active Layer data (0 if no layer is active).
void openSpectrumDialog | ( | ) | [slot] |
shows the dialog for opening spectra from file or the database
void gotoDialog | ( | ) | [slot] |
shows the goto dialog
void preferencesDialog | ( | ) | [slot] |
shows the preferences dialog
void layerStatistics | ( | ) | [slot] |
Shows statistics (count,min,max,avg) about Intensity, Quality, Charge and meta data.
void editMetadata | ( | ) | [slot] |
lets the user edit the meta data of a layer
void closeFile | ( | ) | [slot] |
closes the active window
void updateToolBar | ( | ) | [slot] |
updates the toolbar
void updateLayerBar | ( | ) | [slot] |
adapts the layer bar to the active window
void updateFilterBar | ( | ) | [slot] |
adapts the filter bar to the active window
void updateTabBar | ( | QWidget * | w | ) | [slot] |
brings the tab corresponding to the active window in front
void tileVertical | ( | ) | [slot] |
tile the open windows vertically
void tileHorizontal | ( | ) | [slot] |
tile the open windows horizontally
void linkActiveTo | ( | int | ) | [slot] |
Links/unlinks two spectra (for zooming).
void showStatusMessage | ( | std::string | msg, | |
OpenMS::UInt | time | |||
) | [slot] |
Shows a status message in the status bar.
If time is 0 the status message is displayed until showStatusMessage is called with an empty message or a new message. Otherwise the message is displayed for time
ms.
void showCursorStatus | ( | double | mz, | |
double | intensity, | |||
double | rt | |||
) | [slot] |
shows m/z, intensity and rt in the status bar
void showTOPPDialog | ( | ) | [slot] |
TOPP tool dialog.
void annotateWithID | ( | ) | [slot] |
Annotates current layer with ID data.
void showCurrentPeaksAs3D | ( | ) | [slot] |
Shows the current peak data of the active layer in 3D.
void showSpectrumAs1D | ( | int | index | ) | [slot] |
Shows the spectrum with index index
of the sctive layer in 1D.
void showAboutDialog | ( | ) | [slot] |
Shows the 'About' dialog.
void layerSelectionChange | ( | int | ) | [protected, slot] |
slot for layer manager selection change
void layerContextMenu | ( | const QPoint & | pos | ) | [protected, slot] |
slot for layer manager context menu
void layerVisibilityChange | ( | QListWidgetItem * | item | ) | [protected, slot] |
slot for layer manager visibility change (check box)
void filterContextMenu | ( | const QPoint & | pos | ) | [protected, slot] |
slot for filter manager context menu
void filterEdit | ( | QListWidgetItem * | item | ) | [protected, slot] |
slot for editing a filter
void closeByTab | ( | int | index | ) | [protected, slot] |
Closes the window corresponding to the data of the tab with index index
.
void focusByTab | ( | int | index | ) | [protected, slot] |
Raises the window corresponding to the data of the tab with index index
.
void removeTab | ( | int | id | ) | [protected, slot] |
Removes the tab with data id
.
void openRecentFile | ( | ) | [protected, slot] |
Opens a file from the recent files menu.
void setActionMode | ( | int | ) | [protected, slot] |
void setDrawMode1D | ( | int | ) | [protected, slot] |
void setIntensityMode | ( | int | ) | [protected, slot] |
void changeLayerFlag | ( | bool | ) | [protected, slot] |
void resetZoom | ( | ) | [protected, slot] |
void showProjections | ( | ) | [protected, slot] |
void updateProcessLog | ( | ) | [protected, slot] |
Appends process output to log window.
void addTab_ | ( | SpectrumWidget * | , | |
const String & | ||||
) | [protected] |
Adds a tab for the window in the tabbar.
Opens a SpectrumWidget as a new window.
Connect the slots/signals for status messages and mode changes (paint or mouse mode). Adds a tab and the window caption..Returns the parameters for a SpectrumCanvas of dimension dim
void showAsWindow_ | ( | SpectrumWidget * | sw, | |
const String & | caption | |||
) | [protected] |
SpectrumWidget* window_ | ( | int | id | ) | const [protected] |
returns the window with id id
SpectrumWidget* activeWindow_ | ( | ) | const [protected] |
returns a pointer to the active SpectrumWidget (0 if none is active)
SpectrumCanvas* activeCanvas_ | ( | ) | const [protected] |
returns a pointer to the active SpectrumCanvas (0 if none is active)
Spectrum1DWidget* active1DWindow_ | ( | ) | const [protected] |
returns a pointer to the active Spectrum1DWidget (0 the active window is no Spectrum1DWidget or there is no active window)
Spectrum2DWidget* active2DWindow_ | ( | ) | const [protected] |
returns a pointer to the active Spectrum2DWidget (0 the active window is no Spectrum2DWidget or there is no active window)
Spectrum3DWidget* active3DWindow_ | ( | ) | const [protected] |
returns a pointer to the active Spectrum3DWidget (0 the active window is no Spectrum2DWidget or there is no active window)
float estimateNoise_ | ( | const SpectrumCanvas::ExperimentType & | exp | ) | [protected] |
Estimates the noise by evaluating 10 random scans of MS level 1.
void addRecentFile_ | ( | const String & | filename | ) | [protected] |
adds a Filename to the recent files
void updateRecentMenu_ | ( | ) | [protected] |
update the recent files menu
void checkPreferences_ | ( | ) | [protected] |
check if all avaiable preferences get set by the .ini file. If there are some missing entries fill them with default values.
void closeEvent | ( | QCloseEvent * | event | ) | [protected] |
QListWidget* layer_manager_ [protected] |
Layer mangment widget.
QListWidget* filters_ [protected] |
Data filter widget.
QTextEdit* log_ [protected] |
Log output window.
QToolBar* tool_bar_ [protected] |
QButtonGroup* action_group_ [protected] |
QButtonGroup* intensity_group_ [protected] |
QToolBar* tool_bar_1d_ [protected] |
QButtonGroup* draw_group_1d_ [protected] |
QComboBox* link_box_ [protected] |
QToolBar* tool_bar_2d_ [protected] |
QAction* dm_precursors_2d_ [protected] |
QAction* dm_hull_2d_ [protected] |
QAction* dm_hulls_2d_ [protected] |
QAction* dm_numbers_2d_ [protected] |
QAction* projections_2d_ [protected] |
QWorkspace* ws_ [protected] |
Main workspace.
EnhancedTabBar* tab_bar_ [protected] |
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData().
QLabel* message_label_ [protected] |
Label for messages in the status bar.
QLabel* mz_label_ [protected] |
m/z label for messages in the status bar
QLabel* int_label_ [protected] |
Intensity label for messages in the status bar.
QLabel* rt_label_ [protected] |
RT label for messages in the status bar.
std::map<int,int> link_map_ [protected] |
Map that stores linked pairs of 1D windows.
Each link is stored twice (both directions).
QStringList recent_files_ [protected] |
list of the recently opened files
QAction* recent_as_new_layer_ [protected] |
If this QAction is checked, the recent files are opened as a new layer.
std::vector<QAction*> recent_actions_ [protected] |
list of the recently opened files actions (menu entries)
Generated Tue Apr 1 15:36:42 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |