Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Edit arc by dragging
[modules/shaper.git]
/
src
/
XGUI
/
XGUI_DataTreeModel.h
diff --git
a/src/XGUI/XGUI_DataTreeModel.h
b/src/XGUI/XGUI_DataTreeModel.h
index ece7040f69617f665973ccc33c1bf428f8f1922e..72a3d93f5f4019787a1d1753a1acccb09d4d85f9 100644
(file)
--- a/
src/XGUI/XGUI_DataTreeModel.h
+++ b/
src/XGUI/XGUI_DataTreeModel.h
@@
-1,12
+1,13
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
#ifndef XGUI_DataTreeModel_H
#define XGUI_DataTreeModel_H
#include "XGUI.h"
#ifndef XGUI_DataTreeModel_H
#define XGUI_DataTreeModel_H
#include "XGUI.h"
-#include "XGUI_Constants.h"
#include <ModelAPI_Document.h>
#include <ModelAPI_Feature.h>
#include <ModelAPI_Document.h>
#include <ModelAPI_Feature.h>
+#include <ModelAPI_ResultPart.h>
#include <QAbstractItemModel>
#include <QColor>
#include <QAbstractItemModel>
#include <QColor>
@@
-17,9
+18,12
@@
*/
class XGUI_EXPORT XGUI_FeaturesModel : public QAbstractItemModel
{
*/
class XGUI_EXPORT XGUI_FeaturesModel : public QAbstractItemModel
{
-public:
- XGUI_FeaturesModel(QObject* theParent):
- QAbstractItemModel(theParent), myItemsColor(Qt::black) {}
+ public:
+ XGUI_FeaturesModel(QObject* theParent)
+ : QAbstractItemModel(theParent),
+ myItemsColor(Qt::black)
+ {
+ }
//! Returns Feature object by the given Model index.
//! Returns 0 if the given index is not index of a feature
//! Returns Feature object by the given Model index.
//! Returns 0 if the given index is not index of a feature
@@
-35,26
+39,36
@@
public:
//! Returns index corresponded to the group
virtual QModelIndex findGroup(const std::string& theGroup) const = 0;
//! Returns index corresponded to the group
virtual QModelIndex findGroup(const std::string& theGroup) const = 0;
- void setItemsColor(const QColor& theColor) { myItemsColor = theColor; }
+ void setItemsColor(const QColor& theColor)
+ {
+ myItemsColor = theColor;
+ }
- QColor itemsColor() const { return myItemsColor; }
+ QColor itemsColor() const
+ {
+ return myItemsColor;
+ }
-protected:
+
protected:
QColor myItemsColor;
};
QColor myItemsColor;
};
-
/**\class XGUI_PartModel
* \ingroup GUI
* \brief Abstaract class of model object which operates with parts data.
*/
class XGUI_PartModel : public XGUI_FeaturesModel
{
/**\class XGUI_PartModel
* \ingroup GUI
* \brief Abstaract class of model object which operates with parts data.
*/
class XGUI_PartModel : public XGUI_FeaturesModel
{
-public:
- XGUI_PartModel(QObject* theParent):
- XGUI_FeaturesModel(theParent) {}
+ public:
+ XGUI_PartModel(QObject* theParent)
+ : XGUI_FeaturesModel(theParent)
+ {
+ }
- void setPartId(int theId) { myId = theId; }
+ void setPartId(int theId)
+ {
+ myId = theId;
+ }
//! Returns true if the given document is a sub-document of this tree
virtual bool hasDocument(const DocumentPtr& theDoc) const = 0;
//! Returns true if the given document is a sub-document of this tree
virtual bool hasDocument(const DocumentPtr& theDoc) const = 0;
@@
-62,10
+76,9
@@
public:
//! Return a Part object
virtual ResultPartPtr part() const = 0;
//! Return a Part object
virtual ResultPartPtr part() const = 0;
-protected:
+
protected:
//! Id of the current part object in the document
int myId;
};
//! Id of the current part object in the document
int myId;
};
-
-#endif
\ No newline at end of file
+#endif