OpenMS
INIFileEditorWindow.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg$
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
12 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
13 
17 
18 #include <QtWidgets/QMdiArea>
19 #include <QtWidgets/QMainWindow>
20 
21 class QToolBar;
22 class QAction;
23 class QString;
24 class QFileDialog;
25 
26 namespace OpenMS
27 {
31  class OPENMS_GUI_DLLAPI INIFileEditorWindow :
32  public QMainWindow
33  {
34  Q_OBJECT
35 
36 public:
38  INIFileEditorWindow(QWidget * parent = nullptr);
40  void closeEvent(QCloseEvent * event) override;
41 
42 public slots:
44  bool openFile(const String & filename = "");
46  bool saveFile();
48  bool saveFileAs();
50  void updateWindowTitle(bool);
51 
52 private:
58  QString filename_;
61  };
62 }
63 
shows the ParamEditor widget in a QMainWindow with a toolbar
Definition: INIFileEditorWindow.h:33
Param param_
Param object for storing data.
Definition: INIFileEditorWindow.h:56
QString filename_
filename of xml-file to store the Param object
Definition: INIFileEditorWindow.h:58
String current_path_
path used as next default location of the load/store dialogs
Definition: INIFileEditorWindow.h:60
ParamEditor * editor_
ParamEditor object for visualization.
Definition: INIFileEditorWindow.h:54
A GUI for editing or viewing a Param object.
Definition: ParamEditor.h:153
Management and storage of parameters / INI files.
Definition: Param.h:44
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19