Back to index

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

#include <LightApp_WgViewModel.h>

List of all members.

Public Member Functions

 LightApp_WgViewModel (const QString &type, QWidget *w)
virtual ~LightApp_WgViewModel ()
virtual SUIT_ViewWindowcreateView (SUIT_Desktop *d)
virtual QString getType () const

Private Attributes

QString myType
QWidget * myWidget
bool myCreated

Detailed Description

Definition at line 31 of file LightApp_WgViewModel.h.


Constructor & Destructor Documentation

LightApp_WgViewModel::LightApp_WgViewModel ( const QString &  type,
QWidget *  w 
)

Definition at line 28 of file LightApp_WgViewModel.cxx.

  : SUIT_ViewModel(),
    myType( type ),
    myWidget( w ),
    myCreated( false )
{
}

Definition at line 36 of file LightApp_WgViewModel.cxx.

{
}

Member Function Documentation

Definition at line 40 of file LightApp_WgViewModel.cxx.

{
  SUIT_ViewWindow* vw = 0;
  if ( !myCreated ) {
    vw = new SUIT_ViewWindow( d );
    vw->setCentralWidget( myWidget );
    myCreated = true;
  }
  return vw;
}
QString LightApp_WgViewModel::getType ( ) const [virtual]

Definition at line 51 of file LightApp_WgViewModel.cxx.

{
  return myType;
}

Member Data Documentation

Definition at line 45 of file LightApp_WgViewModel.h.

QString LightApp_WgViewModel::myType [private]

Definition at line 43 of file LightApp_WgViewModel.h.

QWidget* LightApp_WgViewModel::myWidget [private]

Definition at line 44 of file LightApp_WgViewModel.h.


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