38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 58 #include <QtWidgets/QMainWindow> 59 #include <QtWidgets/QButtonGroup> 60 #include <QtWidgets/QActionGroup> 61 #include <QtCore/QStringList> 62 #include <QtCore/QProcess> 63 #include <QElapsedTimer> 70 class QListWidgetItem;
72 class QTreeWidgetItem;
82 class DataSelectionTabs;
86 class MultiGradientSelector;
132 friend class TestTOPPView;
166 SCAN_IF_NEWER_VERSION,
172 explicit TOPPViewBase(TOOL_SCAN scan_mode = TOOL_SCAN::SCAN_IF_NEWER_VERSION,
QWidget* parent =
nullptr);
181 FILETYPE_UNSUPPORTED,
197 LOAD_RESULT addDataFile(
const String& filename,
bool show_options,
bool add_to_recent,
String caption =
"",
UInt window_id = 0,
Size spectrum_id = 0);
215 void addData(FeatureMapSharedPtrType feature_map,
216 ConsensusMapSharedPtrType consensus_map,
217 std::vector<PeptideIdentification>& peptides,
218 ExperimentSharedPtrType peak_map,
219 ODExperimentSharedPtrType on_disc_peak_map,
223 bool as_new_window =
true,
224 const String& filename =
"",
225 const String& caption =
"",
227 Size spectrum_id = 0);
230 void loadFiles(
const StringList& list, QSplashScreen* splash_screen);
237 void loadPreferences(
String filename =
"");
240 void savePreferences();
243 Param getCanvasParameters(
UInt dim)
const;
278 void updateCurrentPath();
280 void openFilesByDialog(
const String& initial_directory =
"");
282 void showGoToDialog()
const;
284 void preferencesDialog();
286 void layerStatistics()
const;
290 void layerActivated();
292 void layerZoomChanged()
const;
296 void layerDeactivated();
301 void rerunTOPPTool();
304 void updateBarsAndMenus();
306 void updateToolBar();
308 void updateLayerBar();
310 void updateViewBar();
314 void updateFilterBar();
321 void showStatusMessage(std::string msg,
OpenMS::UInt time);
323 void showCursorStatus(
double mz,
double rt);
325 void showCursorStatusInvert(
double mz,
double rt);
327 void showTOPPDialog();
329 void annotateWithAMS();
331 void annotateWithID();
333 void annotateWithOSW();
335 void showSpectrumGenerationDialog();
337 void showSpectrumAlignmentDialog();
339 void showCurrentPeaksAs2D();
341 void showCurrentPeaksAs3D();
343 void showCurrentPeaksAsIonMobility();
345 void showCurrentPeaksAsDIA();
347 void saveLayerAll()
const;
349 void saveLayerVisible()
const;
351 void toggleGridLines()
const;
353 void toggleAxisLegends()
const;
355 void toggleInterestingMZs()
const;
357 void showPreferences()
const;
359 void metadataFileDialog();
364 void setDrawMode1D(
int)
const;
365 void setIntensityMode(
int);
366 void changeLayerFlag(
bool);
367 void changeLabel(QAction*);
368 void changeUnassigned(QAction*);
369 void resetZoom()
const;
370 void toggleProjections();
375 void openFile(
const String& filename);
378 void layerFilterVisibilityChange(
bool)
const;
381 void showSpectrumMetaData(
int spectrum_index)
const;
385 void finishTOPPToolExecution(
int exitCode, QProcess::ExitStatus exitStatus);
387 void abortTOPPTool();
389 void showSpectrumBrowser();
394 void closeByTab(
int id);
397 void showWindow(
int id);
399 void copyLayer(
const QMimeData* data,
QWidget* source,
int id = -1);
403 void updateProcessLog();
406 void fileChanged_(
const String&);
409 void initializeDefaultParameters_();
414 QStringList chooseFilesDialog_(
const String& path_overwrite =
"");
437 bool watcher_msgbox_ =
false;
440 bool zoom_together_ =
false;
484 QMdiSubWindow* lastActiveSubwindow_ =
nullptr;
495 QLabel* message_label_;
505 void addRecentFile_(
const String& filename);
528 bool visible_area_only;
533 void checkPreferences_();
536 void closeEvent(QCloseEvent* event)
override;
543 void showTOPPDialog_(
bool visible);
QLabel * rt_label_
RT label for messages in the status bar.
Definition: TOPPViewBase.h:500
A log window (QTextEdit) with convenience functions.
Definition: LogWindow.h:53
LogWindow * log_
Log output window.
Definition: TOPPViewBase.h:443
QDockWidget * filter_dock_widget_
Definition: TOPPViewBase.h:420
QButtonGroup * draw_group_1d_
Definition: TOPPViewBase.h:460
QToolBar * tool_bar_1d_
Definition: TOPPViewBase.h:459
TOOL_SCAN scan_mode_
Determines TVToolDiscovery scans for tool/utils and generates new params.
Definition: TOPPViewBase.h:446
A more convenient string class.
Definition: String.h:58
QAction * dm_hulls_2d_
Definition: TOPPViewBase.h:469
QToolBar * tool_bar_2d_ident_
Definition: TOPPViewBase.h:466
LOAD_RESULT
Definition: TOPPViewBase.h:176
RecentFilesMenu recent_files_
manages recent list of filenames and the menu that goes with it
Definition: TOPPViewBase.h:488
LayerDataBase::FeatureMapSharedPtrType FeatureMapSharedPtrType
Definition: TOPPViewBase.h:140
Main window of TOPPView tool.
Definition: TOPPViewBase.h:126
QToolBar * tool_bar_2d_feat_
Definition: TOPPViewBase.h:464
A container for features.
Definition: FeatureMap.h:98
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
QToolBar * tool_bar_2d_cons_
Definition: TOPPViewBase.h:465
A container for consensus elements.
Definition: ConsensusMap.h:82
QToolBar * tool_bar_2d_peak_
Definition: TOPPViewBase.h:463
TVToolDiscovery tool_scanner_
Scans for tools/utils and generates a param for each.
Definition: TOPPViewBase.h:448
QAction * dm_elements_2d_
Definition: TOPPViewBase.h:474
LayerDataBase::ExperimentType ExperimentType
Definition: TOPPViewBase.h:148
QAction * dm_hull_2d_
Definition: TOPPViewBase.h:468
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
A widget which shows a list of DataFilter items.
Definition: FilterList.h:60
QDockWidget * layer_dock_widget_
Definition: TOPPViewBase.h:418
LayerDataBase::ConsensusMapSharedPtrType ConsensusMapSharedPtrType
Definition: TOPPViewBase.h:145
QAction * dm_ident_2d_
Definition: TOPPViewBase.h:476
LayerDataBase::ConsensusMapType ConsensusMapType
Definition: TOPPViewBase.h:143
EnhancedTabBar tab_bar_
Tab bar. The address of the corresponding window to a tab is stored as an int in tabData() ...
Definition: TOPPViewBase.h:486
LayerDataBase::FeatureMapType FeatureMapType
Definition: TOPPViewBase.h:138
LayerDataBase::ODExperimentSharedPtrType ODExperimentSharedPtrType
Definition: TOPPViewBase.h:152
Pimped QListView for Layers of a Canvas.
Definition: LayerListView.h:52
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
LayerDataBase::ExperimentSharedPtrType ExperimentSharedPtrType
Definition: TOPPViewBase.h:150
QLabel * mz_label_
m/z label for messages in the status bar
Definition: TOPPViewBase.h:498
DataType
Definition: LayerDataBase.h:104
A tabbed view, to browse lists of spectra or identifications.
Definition: DataSelectionTabs.h:75
boost::shared_ptr< ConsensusMap > ConsensusMapSharedPtrType
SharedPtr on consensus features.
Definition: LayerDataBase.h:155
QActionGroup * group_label_2d_
Definition: TOPPViewBase.h:471
static const String CAPTION_3D_SUFFIX_
Suffix appended to caption of tabs when layer is shown in 3D.
Definition: TOPPViewBase.h:551
TOOL_SCAN
Used for deciding whether new tool/util params should be generated or reused from TOPPView's ini file...
Definition: TOPPViewBase.h:158
boost::shared_ptr< ExperimentType > ExperimentSharedPtrType
SharedPtr on MSExperiment.
Definition: LayerDataBase.h:161
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
LayerListView * layers_view_
Layer management widget.
Definition: TOPPViewBase.h:424
DataSelectionTabs * selection_view_
Definition: TOPPViewBase.h:426
Management and storage of parameters / INI files.
Definition: Param.h:69
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:70
QButtonGroup * intensity_button_group_
Definition: TOPPViewBase.h:456
QToolButton * dm_unassigned_2d_
Definition: TOPPViewBase.h:472
QToolBar * tool_bar_
Definition: TOPPViewBase.h:453
TheoreticalSpectrumGenerationDialog spec_gen_dialog_
This dialog is a member so that its settings can be perserved upon closing.
Definition: TOPPViewBase.h:554
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Definition: EnhancedWorkspace.h:51
FilterList * filter_list_
Definition: TOPPViewBase.h:430
TOPPViewMenu menu_
manages the menu items (active/inactive) and recent files etc
Definition: TOPPViewBase.h:490
QDockWidget * views_dockwidget_
Definition: TOPPViewBase.h:419
Dialog which allows to enter an AA or NA sequence and generates a theoretical spectrum for it...
Definition: TheoreticalSpectrumGenerationDialog.h:73
EnhancedWorkspace ws_
Main workspace.
Definition: TOPPViewBase.h:480
QActionGroup * group_unassigned_2d_
Definition: TOPPViewBase.h:473
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
Base class for visualization canvas classes.
Definition: PlotCanvas.h:135
String current_path_
Definition: TOPPViewBase.h:547
Watcher that monitors file changes.
Definition: FileWatcher.h:65
boost::shared_ptr< FeatureMap > FeatureMapSharedPtrType
SharedPtr on feature map.
Definition: LayerDataBase.h:149
QMenu * add_2d_context_
Additional context menu for 2D layers.
Definition: TOPPViewBase.h:540
Class that stores the data for one layer.
Definition: LayerDataBase.h:97
QToolButton * dm_label_2d_
Definition: TOPPViewBase.h:470
QAction * dm_precursors_2d_
Definition: TOPPViewBase.h:467
Convenience tab bar implementation.
Definition: EnhancedTabBar.h:60
boost::shared_ptr< OnDiscMSExperiment > ODExperimentSharedPtrType
SharedPtr on On-Disc MSExperiment.
Definition: LayerDataBase.h:166
QAction * projections_2d_
Definition: TOPPViewBase.h:475
ExperimentType::SpectrumType SpectrumType
Peak spectrum type.
Definition: TOPPViewBase.h:154