SUPERVGUI Class Reference

#include <SUPERVGUI.h>

Inheritance diagram for SUPERVGUI:

Inheritance graph

Public Slots

virtual bool activateModule (SUIT_Study *)
virtual bool deactivateModule (SUIT_Study *)

Signals

void KillMainThread (bool theValue)

Public Member Functions

 SUPERVGUI ()
virtual ~SUPERVGUI ()
virtual void initialize (CAM_Application *)
virtual QString engineIOR () const
SUPERV_Engine getEngine ()
SUIT_Study * getActiveStudy ()
SUPERVGUI_ServicegetBrowser ()
QCursor getCursor ()
void putInfo (const char *mess)
void importDataflow ()
void exportDataflow ()
void newDataflow ()
void modifyDataflow ()
void reloadDataflow ()
void runDataflow ()
void stepByStep ()
void killDataflow ()
void suspendResumeDataflow ()
void showComponents ()
SUPERVGUI_MaingetMain ()
bool OnGUIEvent (int theCommandID)
bool ActiveStudyChanged ()
bool isContains (SUIT_Study *theStudy, const QString theKey)
void registerGraph (QString theName, SUPERVGUI_Main *theGraph)
void unregisterGraph (SUPERVGUI_Main *theGraph)
SUIT_ViewWindow * createGraph ()
void whatIsSelected (const _PTR(SObject)&theObj, bool &theIsOwner, bool &theIsDataflow)
 Returns: theIsOwner = true if Selected object belongs to Suipervision.
virtual void windows (QMap< int, int > &) const
QMap< QString, QString > getInterfaceNameMap () const
void nullifyInitialVF ()
 The method nullify myInitalViewFrame variable to avoid using this view frame once more, it is using after add any node into first new dataflow in study.
QColor getIVFBackgroundColor ()
void setIVFBackgroundColor (QColor theColor)
bool updateDataFlowSOName (SUPERV::Graph_ptr theDataflow)
 The method update name of the given dataflow, if this dataflow is in study. Returns true if update was done.

Static Public Member Functions

static SUPERVGUISupervision ()
static QString createBackupFile (const QString &theOriginalFileName)
 If a file with theOriginalFileName exists, then the function tries to create its backup copy of it (the_name + ".bakX", X = 0,1,2,.

Protected Member Functions

virtual CAM_DataModel * createDataModel ()
virtual LightApp_SelectioncreateSelection () const

Private Types

enum  NEW_DF_MODE { Import, Modify, New }

Private Slots

void setMain (SUIT_ViewWindow *w)
void displayDataflow ()
void renameDataflow ()
void deleteObject ()
void onGraphClosed (SUIT_ViewWindow *)
void OnGUIEvent ()

Private Member Functions

void loadEngine (SALOME_NamingService *namingService)
bool createDataflow (const NEW_DF_MODE f, bool theInitialDF=false)
void createSupervAction (const int id, const QString &po_id, const QString &icon_id=QString(""), const int key=0, const bool toggle=false)
void fillInterfaceNameMap ()

Private Attributes

SUIT_Study * study
SUPERV_Engine engine
SUPERVGUI_Servicebrowser
QCursor cursor
SUPERVGUI_Mainmain
QPtrList< SUPERVGUI_MainmyGraphList
QMap< QString, QString > myInterfaceNameMap
bool myFirstActivation
bool myAllGraphsClosed
SUPERVGraph_ViewFrame * myInitialViewFrame
QColor myIVFBackgroundColor

Static Private Attributes

static int factory = 0

Member Enumeration Documentation

enum SUPERVGUI::NEW_DF_MODE [private]
 

Enumerator:
Import 
Modify 
New 


Constructor & Destructor Documentation

SUPERVGUI::SUPERVGUI  ) 
 

SUPERVGUI::~SUPERVGUI  )  [virtual]
 


Member Function Documentation

SUPERVGUI * SUPERVGUI::Supervision  )  [static]
 

void SUPERVGUI::initialize CAM_Application *   )  [virtual]
 

QString SUPERVGUI::engineIOR  )  const [virtual]
 

SUPERV_Engine SUPERVGUI::getEngine  ) 
 

SUIT_Study* SUPERVGUI.getActiveStudy  ) 
 

SUPERVGUI_Service * SUPERVGUI::getBrowser  ) 
 

QCursor SUPERVGUI::getCursor  ) 
 

void SUPERVGUI::putInfo const char *  mess  ) 
 

void SUPERVGUI::importDataflow  ) 
 

void SUPERVGUI::exportDataflow  ) 
 

void SUPERVGUI::newDataflow  ) 
 

void SUPERVGUI::modifyDataflow  ) 
 

void SUPERVGUI::reloadDataflow  ) 
 

void SUPERVGUI::runDataflow  ) 
 

void SUPERVGUI::stepByStep  ) 
 

void SUPERVGUI::killDataflow  ) 
 

void SUPERVGUI::suspendResumeDataflow  ) 
 

void SUPERVGUI::showComponents  ) 
 

SUPERVGUI_Main * SUPERVGUI::getMain  ) 
 

bool SUPERVGUI::OnGUIEvent int  theCommandID  ) 
 

bool SUPERVGUI::ActiveStudyChanged  ) 
 

bool SUPERVGUI::isContains SUIT_Study *  theStudy,
const QString  theKey
 

void SUPERVGUI::registerGraph QString  theName,
SUPERVGUI_Main theGraph
 

void SUPERVGUI::unregisterGraph SUPERVGUI_Main theGraph  ) 
 

SUIT_ViewWindow * SUPERVGUI::createGraph  ) 
 

void SUPERVGUI::whatIsSelected const _PTR(SObject)&  theObj,
bool &  theIsOwner,
bool &  theIsDataflow
 

theIsDataflow = true if Selected object is Dataflow

QString SUPERVGUI::createBackupFile const QString &  theOriginalFileName  )  [static]
 

.,99). Returns backup file's name If a file with theOriginalFileName does not exist, or creation fails - Return empty string.

void SUPERVGUI::windows QMap< int, int > &   )  const [virtual]
 

QMap< QString, QString > SUPERVGUI::getInterfaceNameMap  )  const
 

void SUPERVGUI.nullifyInitialVF  ) 
 

QColor SUPERVGUI.getIVFBackgroundColor  ) 
 

void SUPERVGUI.setIVFBackgroundColor QColor  theColor  ) 
 

bool SUPERVGUI::updateDataFlowSOName SUPERV::Graph_ptr  theDataflow  ) 
 

void SUPERVGUI.KillMainThread bool  theValue  )  [signal]
 

void SUPERVGUI::setMain SUIT_ViewWindow *  w  )  [private, slot]
 

void SUPERVGUI::displayDataflow  )  [private, slot]
 

void SUPERVGUI::renameDataflow  )  [private, slot]
 

void SUPERVGUI::deleteObject  )  [private, slot]
 

void SUPERVGUI::onGraphClosed SUIT_ViewWindow *   )  [private, slot]
 

void SUPERVGUI::OnGUIEvent  )  [private, slot]
 

bool SUPERVGUI::activateModule SUIT_Study *   )  [virtual, slot]
 

bool SUPERVGUI::deactivateModule SUIT_Study *   )  [virtual, slot]
 

CAM_DataModel * SUPERVGUI::createDataModel  )  [protected, virtual]
 

LightApp_Selection * SUPERVGUI::createSelection  )  const [protected, virtual]
 

void SUPERVGUI::loadEngine SALOME_NamingService *  namingService  )  [private]
 

bool SUPERVGUI::createDataflow const NEW_DF_MODE  f,
bool  theInitialDF = false
[private]
 

void SUPERVGUI::createSupervAction const int  id,
const QString &  po_id,
const QString &  icon_id = QString(""),
const int  key = 0,
const bool  toggle = false
[private]
 

void SUPERVGUI::fillInterfaceNameMap  )  [private]
 


Field Documentation

int SUPERVGUI::factory = 0 [static, private]
 

SUIT_Study* SUPERVGUI.study [private]
 

SUPERV_Engine SUPERVGUI.engine [private]
 

SUPERVGUI_Service* SUPERVGUI.browser [private]
 

QCursor SUPERVGUI.cursor [private]
 

SUPERVGUI_Main* SUPERVGUI.main [private]
 

QPtrList<SUPERVGUI_Main> SUPERVGUI.myGraphList [private]
 

QMap<QString, QString> SUPERVGUI.myInterfaceNameMap [private]
 

bool SUPERVGUI.myFirstActivation [private]
 

bool SUPERVGUI.myAllGraphsClosed [private]
 

SUPERVGraph_ViewFrame* SUPERVGUI.myInitialViewFrame [private]
 

QColor SUPERVGUI.myIVFBackgroundColor [private]