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

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

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

Public Slots

void validate (const QString &python_exe)
 re-evaluate the presence of modules, based on a new python version More...
 

Signals

void valueChanged (QStringList &valid_modules, QStringList &missing_modules)
 emitted whenever the requirement check was executed... More...
 

Public Member Functions

 PythonModuleRequirement (QWidget *parent=nullptr)
 
 ~PythonModuleRequirement ()
 
void setTitle (const QString &title)
 change the label of the surrounding box More...
 
void setRequiredModules (const QStringList &m)
 a list of python modules required for a certain functionality/script More...
 
void setFreeText (const QString &text)
 some arbitrary description for the user to display statically More...
 
bool isReady () const
 are all modules present? More...
 

Private Attributes

QStringList required_modules_
 list of modules which are needed (order might be important – know your Python...) More...
 
QString info_text_
 additional text to display for the user More...
 
bool is_ready_ = false
 all modules are present and the app is good to go More...
 
Ui::PythonModuleRequirementui_
 

Detailed Description

Given a list of python modules which are required, this widget checks them and displays the current status

Constructor & Destructor Documentation

◆ PythonModuleRequirement()

PythonModuleRequirement ( QWidget parent = nullptr)
explicit

◆ ~PythonModuleRequirement()

Member Function Documentation

◆ isReady()

bool isReady ( ) const
inline

are all modules present?

◆ setFreeText()

void setFreeText ( const QString &  text)

some arbitrary description for the user to display statically

◆ setRequiredModules()

void setRequiredModules ( const QStringList &  m)

a list of python modules required for a certain functionality/script

◆ setTitle()

void setTitle ( const QString &  title)

change the label of the surrounding box

◆ validate

void validate ( const QString &  python_exe)
slot

re-evaluate the presence of modules, based on a new python version

◆ valueChanged

void valueChanged ( QStringList &  valid_modules,
QStringList &  missing_modules 
)
signal

emitted whenever the requirement check was executed...

Member Data Documentation

◆ info_text_

QString info_text_
private

additional text to display for the user

◆ is_ready_

bool is_ready_ = false
private

all modules are present and the app is good to go

◆ required_modules_

QStringList required_modules_
private

list of modules which are needed (order might be important – know your Python...)

◆ ui_