Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Public Attributes
TGetStrSettingEvent Class Reference
Inheritance diagram for TGetStrSettingEvent:
Inheritance graph
Collaboration diagram for TGetStrSettingEvent:
Collaboration graph

List of all members.

Public Types

typedef QString TResult

Public Member Functions

 TGetStrSettingEvent (const QString &section, const QString &name, const QString &def)
virtual void Execute ()

Public Attributes

TResult myResult
QString mySection
QString myName
TResult myDefault

Detailed Description

Definition at line 1165 of file SalomePyQt.cxx.

Member Typedef Documentation

Definition at line 1168 of file SalomePyQt.cxx.

Constructor & Destructor Documentation

TGetStrSettingEvent::TGetStrSettingEvent ( const QString &  section,
const QString &  name,
const QString &  def 
) [inline]

Definition at line 1173 of file SalomePyQt.cxx.

    : mySection( section ), myName( name ), myDefault( def ) {}

Member Function Documentation

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

Definition at line 1175 of file SalomePyQt.cxx.

    if ( SUIT_Session::session() ) {
      SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
      myResult = ( !mySection.isEmpty() && !myName.isEmpty() ) ? resMgr->stringValue( mySection, myName, myDefault ) : myDefault;

Member Data Documentation

Definition at line 1172 of file SalomePyQt.cxx.

Definition at line 1171 of file SalomePyQt.cxx.

Definition at line 1169 of file SalomePyQt.cxx.

Definition at line 1170 of file SalomePyQt.cxx.

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