Back to index

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

List of all members.

Public Types

typedef QColor TResult

Public Member Functions

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

Public Attributes

TResult myResult
QString mySection
QString myName
TResult myDefault

Detailed Description

Definition at line 1199 of file SalomePyQt.cxx.

Member Typedef Documentation

Definition at line 1202 of file SalomePyQt.cxx.

Constructor & Destructor Documentation

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

Definition at line 1207 of file SalomePyQt.cxx.

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

Member Function Documentation

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

Definition at line 1209 of file SalomePyQt.cxx.

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

Member Data Documentation

Definition at line 1206 of file SalomePyQt.cxx.

Definition at line 1205 of file SalomePyQt.cxx.

Definition at line 1203 of file SalomePyQt.cxx.

Definition at line 1204 of file SalomePyQt.cxx.

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