Validator for Python scripts file names.
#include <LightApp_FileValidator.h>

Public Member Functions | |
| LightApp_PyFileValidator (QWidget *) | |
| Constructor.  More... | |
| virtual bool | canSave (const QString &, bool) | 
| Check if the specified file can be written.  More... | |
  Public Member Functions inherited from SUIT_FileValidator | |
| SUIT_FileValidator (QWidget *=0) | |
| Constructor.  More... | |
| virtual | ~SUIT_FileValidator () | 
| virtual bool | canOpen (const QString &, bool=true) | 
| Check if the specified file exists and (optionally) can be read.  More... | |
| virtual bool | canReadDir (const QString &, bool=true) | 
| Check if the specified directory exists and (optionally) can be read.  More... | |
| virtual bool | canWriteDir (const QString &, bool=true) | 
| Check if the specified directory can be written.  More... | |
| QWidget * | parent () const | 
| Get parent widget.  More... | |
| LightApp_PyFileValidator::LightApp_PyFileValidator | ( | QWidget * | parent | ) | 
| parent | parent widget | 
      
  | 
  virtual | 
Checks if file name is valid for Python script.
| fileName | file path | 
| checkPermission | if true (default) check also file permissions  | 
false if file exists and user rejects file overwriting or if file does not have write permissions (if checkPermission is true) Reimplemented from SUIT_FileValidator.
References SUIT_FileValidator::canSave(), SUIT_MessageBox::critical(), and SUIT_FileValidator::parent().