OpenMS  2.8.0
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
PythonSelector Class Reference

#include <OpenMS/VISUAL/DIALOGS/PythonSelector.h>

Inheritance diagram for PythonSelector:
[legend]
Collaboration diagram for PythonSelector:
[legend]

Signals

void valueChanged (QString last_known_python_exe, bool valid_python)
 

Public Member Functions

 PythonSelector (QWidget *parent=nullptr)
 
 ~PythonSelector ()
 
const StringgetLastPython () const
 

Private Slots

void showFileDialog_ ()
 
void validate_ ()
 

Private Attributes

String last_known_python_exe_ = "python"
 initial guess or last valid user input More...
 
bool currently_valid_ = false
 unless proven otherwise by 'validate_()' More...
 
Ui::PythonSelectorui_
 

Detailed Description

A QLineEdit + Browse button to have the user select a local python installation By default, 'python' is used

Constructor & Destructor Documentation

◆ PythonSelector()

PythonSelector ( QWidget parent = nullptr)
explicit

◆ ~PythonSelector()

Member Function Documentation

◆ getLastPython()

const String& getLastPython ( ) const
inline

◆ showFileDialog_

void showFileDialog_ ( )
privateslot

◆ validate_

void validate_ ( )
privateslot

◆ valueChanged

void valueChanged ( QString  last_known_python_exe,
bool  valid_python 
)
signal

emitted whenever the line-edit has new values for the current python executable

Parameters
last_known_python_exeThe currently best guess where python can be found
valid_pythonIs the python executable given in @last_known_python_exe callable?

Member Data Documentation

◆ currently_valid_

bool currently_valid_ = false
private

unless proven otherwise by 'validate_()'

◆ last_known_python_exe_

String last_known_python_exe_ = "python"
private

initial guess or last valid user input

◆ ui_

Ui::PythonSelector* ui_
private