Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Public Attributes
TGetSettingEvent Class Reference
Inheritance diagram for TGetSettingEvent:
Inheritance graph
[legend]
Collaboration diagram for TGetSettingEvent:
Collaboration graph
[legend]

List of all members.

Public Types

typedef QString TResult

Public Member Functions

 TGetSettingEvent (const QString &name)
virtual void Execute ()

Public Attributes

TResult myResult
QString myName

Detailed Description

Definition at line 887 of file SalomePyQt.cxx.


Member Typedef Documentation

typedef QString TGetSettingEvent::TResult

Definition at line 890 of file SalomePyQt.cxx.


Constructor & Destructor Documentation

TGetSettingEvent::TGetSettingEvent ( const QString &  name) [inline]

Definition at line 893 of file SalomePyQt.cxx.

: myName( name ) {}

Member Function Documentation

virtual void TGetSettingEvent::Execute ( ) [inline, virtual]

Definition at line 894 of file SalomePyQt.cxx.

  {
    if ( SUIT_Session::session() ) {
      SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
      QStringList sl = myName.split( ":", QString::SkipEmptyParts );
      QString _sec = sl.count() > 1 ? sl[ 0 ].trimmed() : QString( DEFAULT_SECTION );
      QString _nam = sl.count() > 1 ? sl[ 1 ].trimmed() : sl.count() > 0 ? sl[ 0 ].trimmed() : QString( "" );
      myResult = ( !_sec.isEmpty() && !_nam.isEmpty() ) ? resMgr->stringValue( _sec, _nam, "" ) : QString( "" );
    }
  }

Member Data Documentation

Definition at line 892 of file SalomePyQt.cxx.

Definition at line 891 of file SalomePyQt.cxx.


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