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;
130 friend class TestTOPPView;
172 void addDataFile(
const String& filename,
bool show_options,
bool add_to_recent,
String caption =
"",
UInt window_id = 0,
Size spectrum_id = 0);
192 std::vector<PeptideIdentification>& peptides,
198 bool as_new_window =
true,
199 const String& filename =
"",
200 const String& caption =
"",
202 Size spectrum_id = 0);
205 void loadFiles(
const StringList& list, QSplashScreen* splash_screen);
212 void loadPreferences(
String filename =
"");
215 void savePreferences();
221 const LayerData* getCurrentLayer()
const;
254 void updateCurrentPath();
258 void openFileDialog();
260 void openExampleDialog();
262 void showGoToDialog();
264 void preferencesDialog();
266 void layerStatistics();
270 void layerActivated();
272 void layerZoomChanged();
276 void layerDeactivated();
280 void updateToolBar();
282 void updateLayerBar();
284 void updateViewBar();
286 void viewChanged(
int);
288 void viewTabwidgetDoubleClicked(
int);
290 void updateFilterBar();
294 void updateTabBar(QMdiSubWindow* w);
298 void tileHorizontal();
305 void showStatusMessage(std::string msg,
OpenMS::UInt time);
307 void showCursorStatus(
double mz,
double rt);
309 void showCursorStatusInvert(
double mz,
double rt);
311 void showTOPPDialog();
313 void annotateWithID();
315 void showSpectrumGenerationDialog();
317 void showSpectrumAlignmentDialog();
319 void showSpectrumAs1D(
int index);
320 void showSpectrumAs1D(std::vector<
int, std::allocator<int> > indices);
322 void showCurrentPeaksAs2D();
324 void showCurrentPeaksAs3D();
326 void showCurrentPeaksAsIonMobility();
328 void showCurrentPeaksAsDIA();
330 void showAboutDialog();
334 void saveLayerVisible();
336 void toggleGridLines();
338 void toggleAxisLegends();
340 void showPreferences();
342 void metadataFileDialog();
347 void setDrawMode1D(
int);
348 void setIntensityMode(
int);
349 void changeLayerFlag(
bool);
350 void changeLabel(QAction*);
351 void changeUnassigned(QAction*);
353 void toggleProjections();
357 void loadFile(QString);
363 void layerSelectionChange(
int);
366 void layerFilterVisibilityChange(
bool);
368 void layerContextMenu(
const QPoint& pos);
370 void logContextMenu(
const QPoint& pos);
372 void layerVisibilityChange(QListWidgetItem* item);
374 void filterContextMenu(
const QPoint& pos);
376 void filterEdit(QListWidgetItem* item);
378 void layerEdit(QListWidgetItem* );
382 void finishTOPPToolExecution(
int exitCode, QProcess::ExitStatus exitStatus);
384 void abortTOPPTool();
386 void rerunTOPPTool();
388 void showSpectrumBrowser();
390 void showSpectrumMetaData(
int spectrum_index);
395 void closeByTab(
int id);
398 void enhancedWorkspaceWindowChanged(
int id);
400 void openRecentFile();
402 void copyLayer(
const QMimeData* data,
QWidget* source,
int id = -1);
406 void updateProcessLog();
409 void fileChanged_(
const String&);
412 void initializeDefaultParameters_();
416 bool annotateMS1FromMassFingerprinting_(
const FeatureMap& identifications);
419 std::set<String> getFilenamesOfOpenFiles_();
424 QStringList getFileList_(
const String& path_overwrite =
"");
503 QLabel* message_label_;
513 void addRecentFile_(
const String& filename);
516 void updateRecentMenu_();
546 void checkPreferences_();
549 void closeEvent(QCloseEvent* event)
override;
560 void showLogMessage_(LogState state,
const String& heading,
const String& body);
566 void showTOPPDialog_(
bool visible);
586 static bool containsIMData(
const MSSpectrum& s);
String layer_name
Definition: TOPPViewBase.h:536
LayerData::ConsensusMapSharedPtrType ConsensusMapSharedPtrType
Definition: TOPPViewBase.h:143
QLabel * rt_label_
RT label for messages in the status bar.
Definition: TOPPViewBase.h:508
boost::shared_ptr< FeatureMap > FeatureMapSharedPtrType
SharedPtr on feature map.
Definition: LayerData.h:135
TOPPViewIdentificationViewBehavior * identificationview_behavior_
TOPPView behavior for the identification view.
Definition: TOPPViewBase.h:576
QDockWidget * filter_dock_widget_
Definition: TOPPViewBase.h:433
QAction * linkZoom_action_
Definition: TOPPViewBase.h:460
QButtonGroup * draw_group_1d_
Definition: TOPPViewBase.h:475
QToolBar * tool_bar_1d_
Definition: TOPPViewBase.h:474
Behavior of TOPPView in identification mode.
Definition: TOPPViewIdentificationViewBehavior.h:49
std::vector< QAction * > recent_actions_
list of the recently opened files actions (menu entries)
Definition: TOPPViewBase.h:520
A more convenient string class.
Definition: String.h:57
QAction * dm_hulls_2d_
Definition: TOPPViewBase.h:484
QToolBar * tool_bar_2d_ident_
Definition: TOPPViewBase.h:481
LayerData::ExperimentSharedPtrType ExperimentSharedPtrType
Definition: TOPPViewBase.h:148
bool visible
Definition: TOPPViewBase.h:541
LayerData::ConsensusMapType ConsensusMapType
Definition: TOPPViewBase.h:141
QListWidget * filters_
Definition: TOPPViewBase.h:447
LayerData::ODExperimentSharedPtrType ODExperimentSharedPtrType
Definition: TOPPViewBase.h:150
Main window of TOPPView tool.
Definition: TOPPViewBase.h:124
String tool
Definition: TOPPViewBase.h:532
String file_name
Definition: TOPPViewBase.h:535
QToolBar * tool_bar_2d_feat_
Definition: TOPPViewBase.h:479
DataType
Dataset types.
Definition: LayerData.h:91
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:480
Base class for visualization canvas classes.
Definition: SpectrumCanvas.h:100
A container for consensus elements.
Definition: ConsensusMap.h:75
QToolBar * tool_bar_2d_peak_
Definition: TOPPViewBase.h:478
SpectraIdentificationViewWidget * spectra_identification_view_widget_
Definition: TOPPViewBase.h:439
QAction * dm_elements_2d_
Definition: TOPPViewBase.h:489
QAction * dm_hull_2d_
Definition: TOPPViewBase.h:483
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:452
String in
Definition: TOPPViewBase.h:533
bool zoom_together_
Stores whether the individual windows should zoom together (be linked) or not.
Definition: TOPPViewBase.h:458
boost::shared_ptr< ExperimentType > ExperimentSharedPtrType
SharedPtr on MSExperiment.
Definition: LayerData.h:147
QTime timer
Definition: TOPPViewBase.h:540
QDockWidget * layer_dock_widget_
Definition: TOPPViewBase.h:431
bool watcher_msgbox_
Holds the messageboxes for each layer that are currently popped up (to avoid popping them up again...
Definition: TOPPViewBase.h:455
QAction * dm_ident_2d_
Definition: TOPPViewBase.h:491
Size spectrum_id
Definition: TOPPViewBase.h:538
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
SpectraViewWidget * spectra_view_widget_
Definition: TOPPViewBase.h:438
QLabel * mz_label_
m/z label for messages in the status bar
Definition: TOPPViewBase.h:506
TOPPViewSpectraViewBehavior * spectraview_behavior_
TOPPView behavior for the spectra view.
Definition: TOPPViewBase.h:578
LayerData::FeatureMapSharedPtrType FeatureMapSharedPtrType
Definition: TOPPViewBase.h:138
UInt window_id
Definition: TOPPViewBase.h:537
Param param
Definition: TOPPViewBase.h:531
QActionGroup * group_label_2d_
Definition: TOPPViewBase.h:486
boost::shared_ptr< ConsensusMap > ConsensusMapSharedPtrType
SharedPtr on consensus features.
Definition: LayerData.h:141
Warning.
Definition: TOPPViewBase.h:556
QTabWidget * views_tabwidget_
Tabwidget that hold the different views on the loaded data.
Definition: TOPPViewBase.h:573
static const String CAPTION_3D_SUFFIX_
Suffix appended to caption of tabs when layer is shown in 3D.
Definition: TOPPViewBase.h:599
String out
Definition: TOPPViewBase.h:534
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:471
QToolButton * dm_unassigned_2d_
Definition: TOPPViewBase.h:487
QToolBar * tool_bar_
Definition: TOPPViewBase.h:468
Notice.
Definition: TOPPViewBase.h:555
QStringList recent_files_
list of the recently opened files
Definition: TOPPViewBase.h:518
boost::shared_ptr< OnDiscMSExperiment > ODExperimentSharedPtrType
SharedPtr on On-Disc MSExperiment.
Definition: LayerData.h:152
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:553
QDockWidget * views_dockwidget_
Definition: TOPPViewBase.h:432
LayerData::FeatureMapType FeatureMapType
Definition: TOPPViewBase.h:136
QTextEdit * log_
Log output window.
Definition: TOPPViewBase.h:463
QListWidget * layer_manager_
Layer management widget.
Definition: TOPPViewBase.h:443
QActionGroup * group_unassigned_2d_
Definition: TOPPViewBase.h:488
EnhancedWorkspace * ws_
Main workspace.
Definition: TOPPViewBase.h:495
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
String current_path_
Definition: TOPPViewBase.h:570
EnhancedTabBar * tab_bar_
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData() ...
Definition: TOPPViewBase.h:498
Watcher that monitors file changes.
Definition: FileWatcher.h:65
QCheckBox * filters_check_box_
Definition: TOPPViewBase.h:448
QMenu * add_2d_context_
Additional context menu for 2D layers.
Definition: TOPPViewBase.h:563
QToolButton * dm_label_2d_
Definition: TOPPViewBase.h:485
QAction * dm_precursors_2d_
Definition: TOPPViewBase.h:482
QProcess * process
Definition: TOPPViewBase.h:539
Class that stores the data for one layer.
Definition: LayerData.h:85
LayerData::ExperimentType ExperimentType
Definition: TOPPViewBase.h:146
Convenience tab bar implementation.
Definition: EnhancedTabBar.h:60
QAction * projections_2d_
Definition: TOPPViewBase.h:490
ExperimentType::SpectrumType SpectrumType
Peak spectrum type.
Definition: TOPPViewBase.h:152