Back to index

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

List of all members.

Public Types

typedef int TResult

Public Member Functions

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

Public Attributes

TResult myResult
QString mySection
QString myName
TResult myDefault

Detailed Description

Definition at line 1063 of file SalomePyQt.cxx.

Member Typedef Documentation

Definition at line 1066 of file SalomePyQt.cxx.

Constructor & Destructor Documentation

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

Definition at line 1071 of file SalomePyQt.cxx.

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

Member Function Documentation

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

Definition at line 1073 of file SalomePyQt.cxx.

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

Member Data Documentation

Definition at line 1070 of file SalomePyQt.cxx.

Definition at line 1069 of file SalomePyQt.cxx.

Definition at line 1067 of file SalomePyQt.cxx.

Definition at line 1068 of file SalomePyQt.cxx.

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