Version: 8.3.0
YACS::HMI::QtGuiContext Class Reference

#include <QtGuiContext.hxx>

Inheritance diagram for YACS::HMI::QtGuiContext:
Collaboration diagram for YACS::HMI::QtGuiContext:

Public Member Functions

 QtGuiContext (YACS::HMI::GenericGui *gmain)
 
virtual ~QtGuiContext ()
 
virtual void setProc (YACS::ENGINE::Proc *proc)
 
YACS::HMI::GenericGuigetGMain ()
 
YACS::HMI::SchemaModelgetSchemaModel ()
 
FormEditTreegetEditTree ()
 
QGraphicsScenegetScene ()
 
YACS::HMI::GraphicsViewgetView ()
 
YACS::HMI::ItemEditionRootgetEditionRoot ()
 
QWidgetgetWindow ()
 
QItemSelectionModel * getSelectionModel ()
 
QStackedWidget * getStackedWidget ()
 
QString getFileName ()
 
YACS::HMI::GuiExecutorgetGuiExecutor ()
 
bool isEdition ()
 
int getStudyId ()
 
bool isLoadingPresentation ()
 
YACS::HMI::SubjectgetSubjectToPaste (bool &isCut)
 
YACS::HMI::SubjectgetSelectedSubject ()
 
void setSchemaModel (YACS::HMI::SchemaModel *model)
 
void setEditTree (FormEditTree *editTree)
 
void setScene (QGraphicsScene *scene)
 
void setView (YACS::HMI::GraphicsView *view)
 
void setEditionRoot (YACS::HMI::ItemEditionRoot *re)
 
void setWindow (QWidget *window)
 
void setSelectionModel (QItemSelectionModel *selmod)
 
void setStackedWidget (QStackedWidget *sw)
 
void setFileName (const QString &fileName)
 
void setGuiExecutor (YACS::HMI::GuiExecutor *guiEx)
 
void setEdition (bool isEdition)
 
void setStudyId (int studyId)
 
void setLoadingPresentation (bool isLoadpres)
 
void setSubjectToCut (YACS::HMI::Subject *sub)
 
void setSubjectToCopy (YACS::HMI::Subject *sub)
 
void setSelectedSubject (YACS::HMI::Subject *sub)
 
- Public Member Functions inherited from YACS::HMI::GuiContext
 GuiContext ()
 
virtual ~GuiContext ()
 
long getNewId (YACS::HMI::TypeOfElem type)
 
YACS::ENGINE::CataloggetBuiltinCatalog ()
 
YACS::ENGINE::CataloggetSessionCatalog ()
 
YACS::ENGINE::CataloggetProcCatalog ()
 
YACS::ENGINE::CataloggetCurrentCatalog ()
 
YACS::ENGINE::ProcgetProc ()
 
YACS::HMI::ProcInvocgetInvoc ()
 
YACS::HMI::SubjectProcgetSubjectProc ()
 
long getNewId ()
 
std::string getXMLSchema ()
 
std::pair< std::string,
std::string > 
getYACSCont ()
 
bool isNotSaved ()
 
bool isLoading ()
 
void setSessionCatalog (YACS::ENGINE::Catalog *cata)
 
void setProcCatalog (YACS::ENGINE::Catalog *cata)
 
void setCurrentCatalog (YACS::ENGINE::Catalog *cata)
 
void setXMLSchema (std::string xmlSchema)
 
void setYACSContainer (std::pair< std::string, std::string > yc)
 
void setNotSaved (bool isNotSaved)
 
void setLoading (bool isLoading)
 
- Public Member Functions inherited from YACS::HMI::Subject
 Subject (Subject *parent=0)
 
virtual ~Subject ()
 
virtual void attach (GuiObserver *obs)
 
virtual void detach (GuiObserver *obs)
 
virtual void select (bool isSelected)
 
virtual void update (GuiEvent event, int type, Subject *son)
 
virtual std::string getName ()
 
virtual bool setName (std::string name)
 
virtual bool setProperties (std::map< std::string, std::string > properties)
 
virtual std::map< std::string,
std::string > 
getProperties ()
 
virtual std::vector< std::string > knownProperties ()
 
virtual SubjectgetParent ()
 
virtual void setParent (Subject *son)
 
virtual bool destroy (Subject *son)
 From user action in Ihm, destroy an object. More...
 
virtual void loadChildren ()
 
virtual void loadLinks ()
 
virtual void addSubjectReference (Subject *ref)
 
virtual void clean (Command *command=0)
 
void localclean (Command *command=0)
 
void registerUndoDestroy ()
 
void askRegisterUndoDestroy ()
 
bool isDestructible ()
 
virtual TypeOfElem getType ()
 
virtual void setProgress (std::string newProgress)
 
virtual std::string getProgress ()
 
- Public Member Functions inherited from YACS::ENGINE::Observer
virtual void notifyObserver (Node *object, const std::string &event)
 
virtual void notifyObserver2 (Node *object, const std::string &event, void *something)
 
virtual ~Observer ()
 

Static Public Member Functions

static QtGuiContextgetQtCurrent ()
 
static void setQtCurrent (QtGuiContext *context)
 
- Static Public Member Functions inherited from YACS::HMI::GuiContext
static GuiContextgetCurrent ()
 
static void setCurrent (GuiContext *context)
 
- Static Public Member Functions inherited from YACS::HMI::Subject
static void erase (Subject *sub, Command *command=0, bool post=false)
 

Public Attributes

std::map< YACS::HMI::Subject
*, YACS::HMI::SchemaItem * > 
_mapOfSchemaItem
 
std::map< YACS::HMI::Subject
*, YACS::HMI::SceneItem * > 
_mapOfSceneItem
 
std::map< YACS::HMI::Subject
*, QWidget * > 
_mapOfEditionItem
 
std::set< YACS::HMI::Subject * > _setOfModifiedSubjects
 
- Public Attributes inherited from YACS::HMI::GuiContext
std::map< YACS::ENGINE::Node
*, YACS::HMI::SubjectNode * > 
_mapOfSubjectNode
 
std::map
< YACS::ENGINE::DataPort
*, YACS::HMI::SubjectDataPort * > 
_mapOfSubjectDataPort
 
std::map< std::pair
< YACS::ENGINE::OutPort
*, YACS::ENGINE::InPort * >
, YACS::HMI::SubjectLink * > 
_mapOfSubjectLink
 
std::map< std::pair
< YACS::ENGINE::Node
*, YACS::ENGINE::Node * >
, YACS::HMI::SubjectControlLink * > 
_mapOfSubjectControlLink
 
std::map
< YACS::ENGINE::ComponentInstance
*, YACS::HMI::SubjectComponent * > 
_mapOfSubjectComponent
 
std::map
< YACS::ENGINE::Container
*, YACS::HMI::SubjectContainerBase * > 
_mapOfSubjectContainer
 
std::map< std::string,
YACS::HMI::SubjectDataType * > 
_mapOfSubjectDataType
 
std::map< int,
YACS::HMI::SubjectNode * > 
_mapOfExecSubjectNode
 
std::map< std::string,
YACS::ENGINE::ComponentInstance * > 
_mapOfLastComponentInstance
 
std::string _lastErrorMessage
 

Static Public Attributes

static std::set< QtGuiContext * > _setOfContext
 
static counters_counters = 0
 
static bool _delayCalc = false
 

Protected Attributes

YACS::HMI::GenericGui_gmain
 
YACS::HMI::SchemaModel_schemaModel
 
FormEditTree_editTree
 
QItemSelectionModel * _selectionModel
 
QGraphicsScene_scene
 
YACS::HMI::GraphicsView_view
 
YACS::HMI::ItemEditionRoot_rootEdit
 
QWidget_window
 
QStackedWidget * _stackedWidget
 
QString _fileName
 
YACS::HMI::GuiExecutor_guiExecutor
 
YACS::HMI::Subject_selectedSubject
 
bool _isEdition
 
bool _isLoadingPresentation
 
int _studyId
 
SuitWrapper_wrapper
 
- Protected Attributes inherited from YACS::HMI::GuiContext
YACS::ENGINE::Catalog_builtinCatalog
 
YACS::ENGINE::Catalog_sessionCatalog
 
YACS::ENGINE::Catalog_procCatalog
 
YACS::ENGINE::Catalog_currentCatalog
 
YACS::ENGINE::Proc_proc
 
YACS::HMI::ProcInvoc_invoc
 
YACS::HMI::SubjectProc_subjectProc
 
long _numItem
 
bool _isNotSaved
 
bool _isLoading
 
std::string _xmlSchema
 
std::pair< std::string,
std::string > 
_YACSEngineContainer
 
- Protected Attributes inherited from YACS::HMI::Subject
std::set< GuiObserver * > _setObs
 
Subject_parent
 
bool _destructible
 
bool _askRegisterUndo
 
std::string _progress
 

Static Protected Attributes

static QtGuiContext_QtCurrent = 0
 
- Static Protected Attributes inherited from YACS::HMI::GuiContext
static GuiContext_current = 0
 

Detailed Description

Definition at line 48 of file QtGuiContext.hxx.

Constructor & Destructor Documentation

QtGuiContext::QtGuiContext ( YACS::HMI::GenericGui gmain)

Definition at line 37 of file QtGuiContext.cxx.

References _editTree, _fileName, _gmain, _guiExecutor, _isEdition, _isLoadingPresentation, _mapOfEditionItem, _mapOfSceneItem, _mapOfSchemaItem, _rootEdit, _scene, _schemaModel, _selectedSubject, _selectionModel, _setOfContext, _setOfModifiedSubjects, _stackedWidget, _studyId, _view, and _window.

37  : GuiContext()
38 {
39  _gmain = gmain;
40  _schemaModel = 0;
41  _editTree = 0;
42  _selectionModel = 0;
43  _scene = 0;
44  _view = 0;
45  _rootEdit = 0;
46  _window = 0;
47  _stackedWidget = 0;
48  _guiExecutor = 0;
49  _selectedSubject = 0;
50  _isEdition = true;
51  _isLoadingPresentation = false;
52  _studyId = 0;
53  _fileName = QString();
54  _mapOfSchemaItem.clear();
55  _mapOfSceneItem.clear();
56  _mapOfEditionItem.clear();
57  _setOfModifiedSubjects.clear();
58  _setOfContext.insert(this);
59 }
QtGuiContext::~QtGuiContext ( )
virtual

Definition at line 61 of file QtGuiContext.cxx.

References YACS::HMI::GuiContext::_current, YACS::HMI::GuiContext::_invoc, YACS::HMI::GuiContext::_proc, _QtCurrent, _setOfContext, YACS::HMI::GuiContext::_subjectProc, YACS::HMI::SubjectProc::clean(), DEBTRACE, and YACS::ENGINE::Proc::setEdition().

62 {
63  DEBTRACE("QtGuiContext::~QtGuiContext");
64  if (_invoc) delete _invoc;
65  _invoc = 0;
66  if (_subjectProc)
67  {
68  _proc->setEdition(false);
70  delete _subjectProc;
71  _subjectProc = 0;
72  }
73  _current = 0;
74  _QtCurrent = 0;
75  _setOfContext.erase(this);
76  // Avoid any possible copy from the destroyed schema.
77  QClipboard *clipboard = QApplication::clipboard();
78  clipboard->setMimeData(NULL);
79 }

Member Function Documentation

YACS::HMI::ItemEditionRoot* YACS::HMI::QtGuiContext::getEditionRoot ( )
inline

Definition at line 61 of file QtGuiContext.hxx.

61 {return _rootEdit; };
FormEditTree* YACS::HMI::QtGuiContext::getEditTree ( )
inline

Definition at line 58 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::switchContext().

58 {return _editTree; };
QString YACS::HMI::QtGuiContext::getFileName ( )
inline
static QtGuiContext* YACS::HMI::QtGuiContext::getQtCurrent ( )
inlinestatic

Definition at line 94 of file QtGuiContext.hxx.

Referenced by YACS::HMI::SchemaContainerItem::addComponentInstance(), YACS::HMI::SchemaDirContainersItem::addComponentItem(), YACS::HMI::SchemaDirContainersItem::addContainerItem(), YACS::HMI::SchemaDirLinksItem::addLinkItem(), YACS::HMI::SchemaDirTypesItem::addTypeItem(), YACS::HMI::SceneBlocItem::arrangeCanvasNodes(), YACS::HMI::SceneComposedNodeItem::arrangeNodes(), YACS::HMI::SceneComposedNodeItem::autoPosNewChild(), YACS::HMI::SceneItem::checkGeometryChange(), YACS::HMI::EditionElementaryNode::createTablePorts(), YACS::HMI::SceneInPortItem::dropEvent(), YACS::HMI::SceneCtrlInPortItem::dropEvent(), YACS::HMI::SceneComposedNodeItem::dropEvent(), YACS::HMI::SchemaDirTypesItem::dropMimeData(), YACS::HMI::SchemaComposedNodeItem::dropMimeData(), YACS::HMI::EditionForEachLoop::EditionForEachLoop(), YACS::HMI::EditionInputPort::EditionInputPort(), YACS::HMI::EditionLoop::EditionLoop(), YACS::HMI::EditionNode::EditionNode(), YACS::HMI::EditionOutputPort::EditionOutputPort(), YACS::HMI::EditionProc::EditionProc(), YACS::HMI::EditionPyFunc::EditionPyFunc(), YACS::HMI::EditionScript::EditionScript(), YACS::HMI::EditionSwitch::EditionSwitch(), YACS::HMI::SchemaProcItem::editionToolTip(), YACS::HMI::EditionWhile::EditionWhile(), YACS::HMI::TreeView::event(), FormHPContainer::FillPanel(), YACS::HMI::SchemaInPortItem::flags(), YACS::HMI::SchemaOutPortItem::flags(), YACS::HMI::SchemaNodeItem::flags(), YACS::HMI::SchemaComposedNodeItem::flags(), YACS::HMI::BatchJobsListDialog::get_dump_file(), YACS::HMI::SceneBlocItem::getNodesInfo(), YACS::HMI::SceneObserverItem::getToolTip(), YACS::HMI::ItemEdition::ItemEdition(), YACS::HMI::ItemEditionBase::ItemEditionBase(), YACS::HMI::LinkMatrix::LinkMatrix(), YACS::HMI::SceneNodeItem::mouseDoubleClickEvent(), YACS::HMI::SceneObserverItem::mousePressEvent(), YACS::HMI::SceneCtrlPortItem::mousePressEvent(), YACS::HMI::GraphicsView::mousePressEvent(), YACS::HMI::SceneNodeItem::mouseReleaseEvent(), YACS::HMI::TablePortsEdition::on_pb_insert_clicked(), YACS::HMI::TablePortsEdition::on_pb_remove_clicked(), FormHPContainer::onApply(), YACS::HMI::TablePortsEdition::oncb_insert_activated(), YACS::HMI::GraphicsView::onCenterOnNode(), YACS::HMI::EditionElementaryNode::onCommitData(), YACS::HMI::TreeView::onCommitData(), YACS::HMI::EditionProc::onLevelChange(), YACS::HMI::EditionForEachLoop::onModifyCollection(), YACS::HMI::EditionOptimizerLoop::onModifyInitFile(), YACS::HMI::GraphicsView::onViewFitAll(), YACS::HMI::GraphicsView::onZoomToBloc(), YACS::HMI::NodeMenu::popupMenu(), YACS::HMI::ComposedNodeMenu::popupMenu(), YACS::HMI::ProcMenu::popupMenu(), YACS::HMI::HeaderNodeMenu::popupMenu(), YACS::HMI::LinkMenu::popupMenu(), YACS::HMI::ElementaryNodeMenu::popupMenu(), YACS::HMI::InPortMenu::popupMenu(), YACS::HMI::OutPortMenu::popupMenu(), YACS::HMI::CtrlInPortMenu::popupMenu(), YACS::HMI::CtrlOutPortMenu::popupMenu(), YACS::HMI::ReferenceMenu::popupMenu(), YACS::HMI::ContainerDirMenu::popupMenu(), YACS::HMI::ComponentInstanceMenu::popupMenu(), YACS::HMI::ContainerMenu::popupMenu(), YACS::HMI::SchemaDirTypesItem::removeTypeItem(), YACS::HMI::SceneElementaryNodeItem::reorganize(), YACS::HMI::SceneElementaryNodeItem::reorganizeShrinkExpand(), YACS::HMI::SceneComposedNodeItem::reorganizeShrinkExpand(), YACS::HMI::TreeView::resizeColumns(), YACS::HMI::SchemaProcItem::runToolTip(), YACS::HMI::SceneHeaderNodeItem::SceneHeaderNodeItem(), YACS::HMI::SceneObserverItem::SceneObserverItem(), YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), YACS::HMI::SchemaNodeItem::SchemaNodeItem(), YACS::HMI::EditionInputPort::select(), YACS::HMI::EditionOutputPort::select(), YACS::HMI::SceneObserverItem::select(), YACS::HMI::ItemEdition::select(), YACS::HMI::SchemaNodeItem::setCaseValue(), YACS::HMI::SchemaComposedNodeItem::setCaseValue(), YACS::HMI::TablePortsEdition::setEditablePorts(), YACS::HMI::SceneHeaderNodeItem::setEdited(), YACS::HMI::ItemEdition::setEdited(), YACS::HMI::TreeView::setModel(), YACS::HMI::SchemaModel::setNewRoot(), YACS::HMI::SceneNodeItem::showOutScopeLinks(), YACS::HMI::SceneDataPortItem::shrinkExpandLink(), YACS::HMI::CatalogWidget::startDrag(), YACS::HMI::EditionProc::synchronize(), YACS::HMI::EditionSwitch::synchronize(), YACS::HMI::EditionElementaryNode::synchronize(), YACS::HMI::SchemaNodeItem::toggleState(), YACS::HMI::SchemaOutPortItem::update(), YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaComponentItem::update(), YACS::HMI::SchemaReferenceItem::update(), YACS::HMI::SchemaNodeItem::update(), YACS::HMI::SchemaComposedNodeItem::update(), YACS::HMI::SceneComposedNodeItem::update(), YACS::HMI::SceneElementaryNodeItem::update(), YACS::HMI::EditionNode::update(), YACS::HMI::EditionLoop::update(), YACS::HMI::EditionProc::update(), YACS::HMI::ItemEdition::update(), YACS::HMI::SceneDataPortItem::updateChildItems(), YACS::HMI::SceneComposedNodeItem::updateControlLinks(), YACS::HMI::SceneDataPortItem::updateLinks(), YACS::HMI::SceneNodeItem::updateLinks(), YACS::HMI::TablePortsEdition::upOrDown(), YACS::HMI::VisitorSaveGuiSchema::writePresentation(), YACS::HMI::ItemEdition::~ItemEdition(), and YACS::HMI::SceneObserverItem::~SceneObserverItem().

94 {return _QtCurrent; };
QGraphicsScene* YACS::HMI::QtGuiContext::getScene ( )
inline

Definition at line 59 of file QtGuiContext.hxx.

59 {return _scene; };
QItemSelectionModel* YACS::HMI::QtGuiContext::getSelectionModel ( )
inline

Definition at line 63 of file QtGuiContext.hxx.

63 {return _selectionModel; };
int YACS::HMI::QtGuiContext::getStudyId ( )
inline

Definition at line 68 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::closeContext().

68 {return _studyId; };
YACS::HMI::Subject * QtGuiContext::getSubjectToPaste ( bool &  isCut)

Definition at line 88 of file QtGuiContext.cxx.

References YACS::HMI::ItemMimeData::getControl(), and YACS::HMI::ItemMimeData::getSubject().

89 {
90  QClipboard *clipboard = QApplication::clipboard();
91  const QMimeData * data=clipboard->mimeData();
92  const ItemMimeData* myData = dynamic_cast<const ItemMimeData*>(data);
93  Subject * sub=0;
94 
95  if(myData)
96  {
97  sub=myData->getSubject();
98  isCut=myData->getControl();
99  }
100 
101  return sub;
102 }
YACS::HMI::GraphicsView* YACS::HMI::QtGuiContext::getView ( )
inline

Definition at line 60 of file QtGuiContext.hxx.

Referenced by YACS::HMI::SceneNodeItem::mouseReleaseEvent().

60 {return _view; };
QWidget* YACS::HMI::QtGuiContext::getWindow ( )
inline

Definition at line 62 of file QtGuiContext.hxx.

62 {return _window; };
bool YACS::HMI::QtGuiContext::isLoadingPresentation ( )
inline

Definition at line 69 of file QtGuiContext.hxx.

Referenced by YACS::HMI::SceneItem::checkGeometryChange().

69 {return _isLoadingPresentation; };
void YACS::HMI::QtGuiContext::setEdition ( bool  isEdition)
inline

Definition at line 85 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

85 {_isEdition = isEdition; };
void YACS::HMI::QtGuiContext::setEditionRoot ( YACS::HMI::ItemEditionRoot re)
inline

Definition at line 79 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

79 {_rootEdit = re; };
void YACS::HMI::QtGuiContext::setEditTree ( FormEditTree editTree)
inline

Definition at line 76 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

76 {_editTree = editTree; };
void YACS::HMI::QtGuiContext::setFileName ( const QString &  fileName)
inline

Definition at line 83 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

83 {_fileName = fileName; };
void YACS::HMI::QtGuiContext::setGuiExecutor ( YACS::HMI::GuiExecutor guiEx)
inline

Definition at line 84 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

84 {_guiExecutor = guiEx; };
void YACS::HMI::QtGuiContext::setLoadingPresentation ( bool  isLoadpres)
inline

Definition at line 87 of file QtGuiContext.hxx.

87 {_isLoadingPresentation = isLoadpres; };
void QtGuiContext::setProc ( YACS::ENGINE::Proc proc)
virtual

Reimplemented from YACS::HMI::GuiContext.

Definition at line 81 of file QtGuiContext.cxx.

References _mapOfSceneItem, _mapOfSchemaItem, and YACS::HMI::GuiContext::setProc().

Referenced by YACS::HMI::GenericGui::createContext().

82 {
83  _mapOfSchemaItem.clear();
84  _mapOfSceneItem.clear();
85  GuiContext::setProc(proc);
86 }
static void YACS::HMI::QtGuiContext::setQtCurrent ( QtGuiContext context)
inlinestatic

Definition at line 95 of file QtGuiContext.hxx.

95 { _QtCurrent=context; _current=context; };
void YACS::HMI::QtGuiContext::setScene ( QGraphicsScene scene)
inline

Definition at line 77 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

77 {_scene = scene; };
void YACS::HMI::QtGuiContext::setSchemaModel ( YACS::HMI::SchemaModel model)
inline

Definition at line 75 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

75 {_schemaModel = model; };
void YACS::HMI::QtGuiContext::setSelectedSubject ( YACS::HMI::Subject sub)
inline

Definition at line 92 of file QtGuiContext.hxx.

Referenced by YACS::HMI::SceneObserverItem::select().

92 {_selectedSubject = sub; };
void YACS::HMI::QtGuiContext::setSelectionModel ( QItemSelectionModel *  selmod)
inline

Definition at line 81 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

81 {_selectionModel = selmod; };
void YACS::HMI::QtGuiContext::setStackedWidget ( QStackedWidget *  sw)
inline

Definition at line 82 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

82 {_stackedWidget = sw; };
void YACS::HMI::QtGuiContext::setStudyId ( int  studyId)
inline

Definition at line 86 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

86 {_studyId = studyId; };
void QtGuiContext::setSubjectToCopy ( YACS::HMI::Subject sub)

Definition at line 113 of file QtGuiContext.cxx.

References YACS::HMI::ItemMimeData::setControl(), and YACS::HMI::ItemMimeData::setSubject().

114 {
115  ItemMimeData *mime = new ItemMimeData;
116  mime->setSubject(sub);
117  mime->setControl(false);
118  QClipboard *clipboard = QApplication::clipboard();
119  clipboard->setMimeData(mime);
120 }
void QtGuiContext::setSubjectToCut ( YACS::HMI::Subject sub)

Definition at line 104 of file QtGuiContext.cxx.

References YACS::HMI::ItemMimeData::setControl(), and YACS::HMI::ItemMimeData::setSubject().

105 {
106  ItemMimeData *mime = new ItemMimeData;
107  mime->setSubject(sub);
108  mime->setControl(true);
109  QClipboard *clipboard = QApplication::clipboard();
110  clipboard->setMimeData(mime);
111 }
void YACS::HMI::QtGuiContext::setView ( YACS::HMI::GraphicsView view)
inline

Definition at line 78 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

78 {_view = view; };
void YACS::HMI::QtGuiContext::setWindow ( QWidget window)
inline

Definition at line 80 of file QtGuiContext.hxx.

Referenced by YACS::HMI::GenericGui::createContext().

80 {_window = window; };

Member Data Documentation

counters * QtGuiContext::_counters = 0
static

Definition at line 103 of file QtGuiContext.hxx.

bool QtGuiContext::_delayCalc = false
static
FormEditTree* YACS::HMI::QtGuiContext::_editTree
protected

Definition at line 110 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

QString YACS::HMI::QtGuiContext::_fileName
protected

Definition at line 117 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

YACS::HMI::GenericGui* YACS::HMI::QtGuiContext::_gmain
protected

Definition at line 108 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

YACS::HMI::GuiExecutor* YACS::HMI::QtGuiContext::_guiExecutor
protected

Definition at line 118 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

bool YACS::HMI::QtGuiContext::_isEdition
protected

Definition at line 120 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

bool YACS::HMI::QtGuiContext::_isLoadingPresentation
protected

Definition at line 121 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

QtGuiContext * QtGuiContext::_QtCurrent = 0
staticprotected

Definition at line 107 of file QtGuiContext.hxx.

Referenced by ~QtGuiContext().

YACS::HMI::ItemEditionRoot* YACS::HMI::QtGuiContext::_rootEdit
protected

Definition at line 114 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

QGraphicsScene* YACS::HMI::QtGuiContext::_scene
protected

Definition at line 112 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

YACS::HMI::SchemaModel* YACS::HMI::QtGuiContext::_schemaModel
protected

Definition at line 109 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

YACS::HMI::Subject* YACS::HMI::QtGuiContext::_selectedSubject
protected

Definition at line 119 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

QItemSelectionModel* YACS::HMI::QtGuiContext::_selectionModel
protected

Definition at line 111 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

std::set< QtGuiContext * > QtGuiContext::_setOfContext
static

Definition at line 102 of file QtGuiContext.hxx.

Referenced by QtGuiContext(), and ~QtGuiContext().

std::set<YACS::HMI::Subject*> YACS::HMI::QtGuiContext::_setOfModifiedSubjects

Definition at line 100 of file QtGuiContext.hxx.

Referenced by QtGuiContext(), and YACS::HMI::ItemEdition::setEdited().

QStackedWidget* YACS::HMI::QtGuiContext::_stackedWidget
protected

Definition at line 116 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

int YACS::HMI::QtGuiContext::_studyId
protected

Definition at line 122 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

YACS::HMI::GraphicsView* YACS::HMI::QtGuiContext::_view
protected

Definition at line 113 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

QWidget* YACS::HMI::QtGuiContext::_window
protected

Definition at line 115 of file QtGuiContext.hxx.

Referenced by QtGuiContext().

SuitWrapper* YACS::HMI::QtGuiContext::_wrapper
protected

Definition at line 123 of file QtGuiContext.hxx.


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