Back to index

salome-gui  6.5.0
Public Member Functions
DumpStudyFileValidator Class Reference
Inheritance diagram for DumpStudyFileValidator:
Inheritance graph
Collaboration diagram for DumpStudyFileValidator:
Collaboration graph

List of all members.

Public Member Functions

 DumpStudyFileValidator (QWidget *parent)
virtual ~DumpStudyFileValidator ()
virtual bool canSave (const QString &file, bool permissions)

Detailed Description

Definition at line 747 of file SalomeApp_Application.cxx.

Constructor & Destructor Documentation

DumpStudyFileValidator::DumpStudyFileValidator ( QWidget *  parent) [inline]

Definition at line 750 of file SalomeApp_Application.cxx.

: SUIT_FileValidator ( parent ) {};
virtual DumpStudyFileValidator::~DumpStudyFileValidator ( ) [inline, virtual]

Definition at line 751 of file SalomeApp_Application.cxx.


Member Function Documentation

bool DumpStudyFileValidator::canSave ( const QString &  file,
bool  permissions 
) [virtual]

Definition at line 755 of file SalomeApp_Application.cxx.

  QFileInfo fi( file );
  if ( !QRegExp( "[A-Za-z_][A-Za-z0-9_]*" ).exactMatch( fi.completeBaseName() ) ) {
    SUIT_MessageBox::critical( parent(),
                               QObject::tr("WRN_FILE_NAME_BAD") );
    return false;
  return SUIT_FileValidator::canSave( file, permissions);

The documentation for this class was generated from the following file: