Back to index

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

List of all members.

Public Types

typedef bool TResult

Public Member Functions

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

Public Attributes

TResult myResult
QString mySection
QString myName
TResult myDefault

Detailed Description

Definition at line 1131 of file SalomePyQt.cxx.

Member Typedef Documentation

Definition at line 1134 of file SalomePyQt.cxx.

Constructor & Destructor Documentation

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

Definition at line 1139 of file SalomePyQt.cxx.

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

Member Function Documentation

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

Definition at line 1141 of file SalomePyQt.cxx.

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

Member Data Documentation

Definition at line 1138 of file SalomePyQt.cxx.

Definition at line 1137 of file SalomePyQt.cxx.

Definition at line 1135 of file SalomePyQt.cxx.

Definition at line 1136 of file SalomePyQt.cxx.

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