38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 56 #include <QtWidgets/QMainWindow> 57 #include <QtWidgets/QButtonGroup> 58 #include <QtWidgets/QActionGroup> 59 #include <QtCore/QStringList> 60 #include <QtCore/QProcess> 67 class QListWidgetItem;
69 class QTreeWidgetItem;
81 class EnhancedWorkspace;
83 class Spectrum1DWidget;
84 class Spectrum2DWidget;
85 class Spectrum3DWidget;
87 class MultiGradientSelector;
108 friend class TestTOPPView;
148 void addDataFile(
const String& filename,
bool show_options,
bool add_to_recent,
String caption =
"",
UInt window_id = 0,
Size spectrum_id = 0);
165 void addData(
FeatureMapSharedPtrType feature_map,
ConsensusMapSharedPtrType consensus_map, std::vector<PeptideIdentification>& peptides,
ExperimentSharedPtrType peak_map,
LayerData::DataType data_type,
bool show_as_1d,
bool show_options,
bool as_new_window =
true,
const String& filename =
"",
const String& caption =
"",
UInt window_id = 0,
Size spectrum_id = 0);
168 void loadFiles(
const StringList& list, QSplashScreen* splash_screen);
175 void loadPreferences(
String filename =
"");
178 void savePreferences();
184 const LayerData* getCurrentLayer()
const;
217 void updateCurrentPath();
221 void openFileDialog();
223 void openExampleDialog();
225 void showGoToDialog();
227 void preferencesDialog();
229 void layerStatistics();
233 void layerActivated();
235 void layerZoomChanged();
239 void layerDeactivated();
243 void updateToolBar();
245 void updateLayerBar();
247 void updateViewBar();
249 void viewChanged(
int);
251 void updateFilterBar();
255 void updateTabBar(QMdiSubWindow* w);
259 void tileHorizontal();
266 void showStatusMessage(std::string msg,
OpenMS::UInt time);
268 void showCursorStatus(
double mz,
double rt);
270 void showCursorStatusInvert(
double mz,
double rt);
272 void showTOPPDialog();
274 void annotateWithID();
276 void showSpectrumGenerationDialog();
278 void showSpectrumAlignmentDialog();
280 void showSpectrumAs1D(
int index);
281 void showSpectrumAs1D(std::vector<
int, std::allocator<int> > indices);
283 void showCurrentPeaksAs2D();
285 void showCurrentPeaksAs3D();
287 void showAboutDialog();
291 void saveLayerVisible();
293 void toggleGridLines();
295 void toggleAxisLegends();
297 void showPreferences();
299 void metadataFileDialog();
304 void setDrawMode1D(
int);
305 void setIntensityMode(
int);
306 void changeLayerFlag(
bool);
307 void changeLabel(QAction*);
308 void changeUnassigned(QAction*);
310 void toggleProjections();
314 void loadFile(QString);
320 void layerSelectionChange(
int);
323 void layerFilterVisibilityChange(
bool);
325 void layerContextMenu(
const QPoint& pos);
327 void logContextMenu(
const QPoint& pos);
329 void layerVisibilityChange(QListWidgetItem* item);
331 void filterContextMenu(
const QPoint& pos);
333 void filterEdit(QListWidgetItem* item);
335 void layerEdit(QListWidgetItem* );
339 void finishTOPPToolExecution(
int exitCode, QProcess::ExitStatus exitStatus);
341 void abortTOPPTool();
343 void rerunTOPPTool();
345 void showSpectrumBrowser();
347 void showSpectrumMetaData(
int spectrum_index);
352 void closeByTab(
int id);
355 void enhancedWorkspaceWindowChanged(
int id);
357 void openRecentFile();
359 void copyLayer(
const QMimeData* data,
QWidget* source,
int id = -1);
363 void updateProcessLog();
366 void fileChanged_(
const String&);
369 void initializeDefaultParameters_();
373 bool annotateMS1FromMassFingerprinting_(
const FeatureMap& identifications);
376 std::set<String> getFilenamesOfOpenFiles_();
381 QStringList getFileList_(
const String& path_overwrite =
"");
460 QLabel* message_label_;
470 void addRecentFile_(
const String& filename);
473 void updateRecentMenu_();
503 void checkPreferences_();
506 void closeEvent(QCloseEvent* event)
override;
517 void showLogMessage_(LogState state,
const String& heading,
const String& body);
523 void showTOPPDialog_(
bool visible);
String layer_name
Definition: TOPPViewBase.h:493
LayerData::ConsensusMapSharedPtrType ConsensusMapSharedPtrType
Definition: TOPPViewBase.h:121
QLabel * rt_label_
RT label for messages in the status bar.
Definition: TOPPViewBase.h:465
boost::shared_ptr< FeatureMap > FeatureMapSharedPtrType
SharedPtr on feature map.
Definition: LayerData.h:111
TOPPViewIdentificationViewBehavior * identificationview_behavior_
TOPPView behavior for the identification view.
Definition: TOPPViewBase.h:533
QDockWidget * filter_dock_widget_
Definition: TOPPViewBase.h:390
QAction * linkZoom_action_
Definition: TOPPViewBase.h:417
QButtonGroup * draw_group_1d_
Definition: TOPPViewBase.h:432
QToolBar * tool_bar_1d_
Definition: TOPPViewBase.h:431
Behavior of TOPPView in identification mode.
Definition: TOPPViewIdentificationViewBehavior.h:48
std::vector< QAction * > recent_actions_
list of the recently opened files actions (menu entries)
Definition: TOPPViewBase.h:477
A more convenient string class.
Definition: String.h:57
QAction * dm_hulls_2d_
Definition: TOPPViewBase.h:441
QToolBar * tool_bar_2d_ident_
Definition: TOPPViewBase.h:438
LayerData::ExperimentSharedPtrType ExperimentSharedPtrType
Definition: TOPPViewBase.h:126
bool visible
Definition: TOPPViewBase.h:498
LayerData::ConsensusMapType ConsensusMapType
Definition: TOPPViewBase.h:119
QListWidget * filters_
Definition: TOPPViewBase.h:404
Main window of TOPPView tool.
Definition: TOPPViewBase.h:102
String tool
Definition: TOPPViewBase.h:489
String file_name
Definition: TOPPViewBase.h:492
QToolBar * tool_bar_2d_feat_
Definition: TOPPViewBase.h:436
DataType
Dataset types.
Definition: LayerData.h:67
A container for features.
Definition: FeatureMap.h:93
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
QToolBar * tool_bar_2d_cons_
Definition: TOPPViewBase.h:437
Base class for visualization canvas classes.
Definition: SpectrumCanvas.h:96
A container for consensus elements.
Definition: ConsensusMap.h:71
QToolBar * tool_bar_2d_peak_
Definition: TOPPViewBase.h:435
SpectraIdentificationViewWidget * spectra_identification_view_widget_
Definition: TOPPViewBase.h:396
QAction * dm_elements_2d_
Definition: TOPPViewBase.h:446
QAction * dm_hull_2d_
Definition: TOPPViewBase.h:440
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
FileWatcher * watcher_
Watcher that tracks file changes (in order to update the data in the different views) ...
Definition: TOPPViewBase.h:409
String in
Definition: TOPPViewBase.h:490
bool zoom_together_
Stores whether the individual windows should zoom together (be linked) or not.
Definition: TOPPViewBase.h:415
boost::shared_ptr< ExperimentType > ExperimentSharedPtrType
SharedPtr on MSExperiment.
Definition: LayerData.h:123
QTime timer
Definition: TOPPViewBase.h:497
QDockWidget * layer_dock_widget_
Definition: TOPPViewBase.h:388
bool watcher_msgbox_
Holds the messageboxes for each layer that are currently popped up (to avoid popping them up again...
Definition: TOPPViewBase.h:412
QAction * dm_ident_2d_
Definition: TOPPViewBase.h:448
Size spectrum_id
Definition: TOPPViewBase.h:495
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
SpectraViewWidget * spectra_view_widget_
Definition: TOPPViewBase.h:395
QLabel * mz_label_
m/z label for messages in the status bar
Definition: TOPPViewBase.h:463
TOPPViewSpectraViewBehavior * spectraview_behavior_
TOPPView behavior for the spectra view.
Definition: TOPPViewBase.h:535
LayerData::FeatureMapSharedPtrType FeatureMapSharedPtrType
Definition: TOPPViewBase.h:116
UInt window_id
Definition: TOPPViewBase.h:494
Param param
Definition: TOPPViewBase.h:488
QActionGroup * group_label_2d_
Definition: TOPPViewBase.h:443
boost::shared_ptr< ConsensusMap > ConsensusMapSharedPtrType
SharedPtr on consensus features.
Definition: LayerData.h:117
Warning.
Definition: TOPPViewBase.h:513
QTabWidget * views_tabwidget_
Tabwidget that hold the different views on the loaded data.
Definition: TOPPViewBase.h:530
static const String CAPTION_3D_SUFFIX_
Suffix appended to caption of tabs when layer is shown in 3D.
Definition: TOPPViewBase.h:553
String out
Definition: TOPPViewBase.h:491
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
Management and storage of parameters / INI files.
Definition: Param.h:74
Behavior of TOPPView in spectra view mode.
Definition: TOPPViewSpectraViewBehavior.h:48
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
QButtonGroup * intensity_button_group_
Definition: TOPPViewBase.h:428
QToolButton * dm_unassigned_2d_
Definition: TOPPViewBase.h:444
QToolBar * tool_bar_
Definition: TOPPViewBase.h:425
Notice.
Definition: TOPPViewBase.h:512
QStringList recent_files_
list of the recently opened files
Definition: TOPPViewBase.h:475
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Definition: EnhancedWorkspace.h:49
LogState
Log message states.
Definition: TOPPViewBase.h:510
QDockWidget * views_dockwidget_
Definition: TOPPViewBase.h:389
LayerData::FeatureMapType FeatureMapType
Definition: TOPPViewBase.h:114
QTextEdit * log_
Log output window.
Definition: TOPPViewBase.h:420
QListWidget * layer_manager_
Layer management widget.
Definition: TOPPViewBase.h:400
QActionGroup * group_unassigned_2d_
Definition: TOPPViewBase.h:445
EnhancedWorkspace * ws_
Main workspace.
Definition: TOPPViewBase.h:452
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
String current_path_
Definition: TOPPViewBase.h:527
EnhancedTabBar * tab_bar_
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData() ...
Definition: TOPPViewBase.h:455
Watcher that monitors file changes.
Definition: FileWatcher.h:65
QCheckBox * filters_check_box_
Definition: TOPPViewBase.h:405
QMenu * add_2d_context_
Additional context menu for 2D layers.
Definition: TOPPViewBase.h:520
QToolButton * dm_label_2d_
Definition: TOPPViewBase.h:442
QAction * dm_precursors_2d_
Definition: TOPPViewBase.h:439
QProcess * process
Definition: TOPPViewBase.h:496
Class that stores the data for one layer.
Definition: LayerData.h:61
LayerData::ExperimentType ExperimentType
Definition: TOPPViewBase.h:124
Convenience tab bar implementation.
Definition: EnhancedTabBar.h:60
QAction * projections_2d_
Definition: TOPPViewBase.h:447
ExperimentType::SpectrumType SpectrumType
Peak spectrum type.
Definition: TOPPViewBase.h:128