Back to index

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

List of all members.

Public Member Functions

 DumpCommandsFileValidator (QWidget *parent=0)
virtual ~DumpCommandsFileValidator ()
virtual bool canSave (const QString &file, bool permissions)

Detailed Description

Definition at line 124 of file PyConsole_Editor.cxx.

Constructor & Destructor Documentation

DumpCommandsFileValidator::DumpCommandsFileValidator ( QWidget *  parent = 0) [inline]

Definition at line 127 of file PyConsole_Editor.cxx.

: SUIT_FileValidator ( parent ) {};

Definition at line 128 of file PyConsole_Editor.cxx.


Member Function Documentation

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

Definition at line 132 of file PyConsole_Editor.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: