OpenMS
PythonSelector.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: Chris Bielow $
6 // $Authors: Chris Bielow $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
11 // OpenMS_GUI config
13 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
14 
15 #include <QWidget>
16 
17 namespace Ui
18 {
19  class PythonSelector;
20 }
21 
22 namespace OpenMS
23 {
24  namespace Internal
25  {
28  class OPENMS_GUI_DLLAPI PythonSelector : public QWidget
29  {
30  Q_OBJECT
31 
32  public:
33  explicit PythonSelector(QWidget* parent = nullptr);
35 
36  const String& getLastPython() const
37  {
38  return last_known_python_exe_;
39  }
40 
41  signals:
45  void valueChanged(QString last_known_python_exe, bool valid_python);
46 
47 
48  private slots:
50 
51  void validate_();
52 
53  private:
54  String last_known_python_exe_ = "python";
55  bool currently_valid_ = false;
56 
58  };
59 
60  }
61 } // ns OpenMS
62 
63 // this is required to allow Ui_SwathTabWidget (auto UIC'd from .ui) to have a PythonSelector member
OpenMS::Internal::PythonSelector PythonSelector
Definition: PythonSelector.h:64
Definition: PythonSelector.h:29
void valueChanged(QString last_known_python_exe, bool valid_python)
PythonSelector(QWidget *parent=nullptr)
Ui::PythonSelector * ui_
Definition: PythonSelector.h:57
const String & getLastPython() const
Definition: PythonSelector.h:36
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition: FLASHDeconvWizardBase.h:37