Back to index

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

List of all members.

Public Types

typedef double TResult

Public Member Functions

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

Public Attributes

TResult myResult
QString mySection
QString myName
TResult myDefault

Detailed Description

Definition at line 1097 of file SalomePyQt.cxx.

Member Typedef Documentation

Definition at line 1100 of file SalomePyQt.cxx.

Constructor & Destructor Documentation

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

Definition at line 1105 of file SalomePyQt.cxx.

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

Member Function Documentation

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

Definition at line 1107 of file SalomePyQt.cxx.

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

Member Data Documentation

Definition at line 1104 of file SalomePyQt.cxx.

Definition at line 1103 of file SalomePyQt.cxx.

Definition at line 1101 of file SalomePyQt.cxx.

Definition at line 1102 of file SalomePyQt.cxx.

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