Back to index

salome-gui  6.5.0
Public Member Functions | Private Attributes
SUITApp_Session Class Reference

List of all members.

Public Member Functions

 SUITApp_Session (bool theIniFormat)
virtual ~SUITApp_Session ()
virtual SUIT_ResourceMgr * createResourceMgr (const QString &appName) const

Private Attributes

bool myIniFormat

Detailed Description

Definition at line 123 of file SUITApp.cxx.


Constructor & Destructor Documentation

SUITApp_Session::SUITApp_Session ( bool  theIniFormat) [inline]

Definition at line 126 of file SUITApp.cxx.

: SUIT_Session(), myIniFormat ( theIniFormat ) {}
virtual SUITApp_Session::~SUITApp_Session ( ) [inline, virtual]

Definition at line 127 of file SUITApp.cxx.

{}

Member Function Documentation

virtual SUIT_ResourceMgr* SUITApp_Session::createResourceMgr ( const QString &  appName) const [inline, virtual]

Definition at line 129 of file SUITApp.cxx.

  {
    SUIT_ResourceMgr* resMgr = 0;
    if ( myIniFormat )
    {
      resMgr = new SUIT_ResourceMgr( appName, QString( "%1Config" ) );
      resMgr->setCurrentFormat( "ini" );
    }
    else
    {
      resMgr = new SUIT_ResourceMgr( appName, QString( "%1Config" ) );
      resMgr->setVersion( salomeVersion() );
      resMgr->setCurrentFormat( "xml" );
    }

    if ( resMgr )
    {
      static QPixmap defaultPixmap( pixmap_not_found_xpm );
      resMgr->setDefaultPixmap( defaultPixmap );
      resMgr->setOption( "translators", QString( "%P_msg_%L.qm|%P_icons.qm|%P_images.qm" ) );
    }
    return resMgr;
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 154 of file SUITApp.cxx.


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