static QString dataObjectEntry( const Handle(HYDROData_Entity)& theObject,
const bool theWithPrefix = true );
- /**
- * Returns the text for the specified column.
- */
- virtual QString text( const int = NameId ) const;
-
- /**
- * Returns the color for the specified column.
- */
- virtual QColor color( const ColorRole, const int = NameId ) const;
-
protected:
Handle(HYDROData_Entity) myData; ///< object from data model
QString myParentEntry;
QString myParentEntry;
};
+/**
+ * \brief Module data object, used for dropping items in the object browser.
+ *
+ * It inherits NamedObject with only difference - it accepts dropping.
+ */
+class HYDROGUI_DropTargetObject : public HYDROGUI_NamedObject
+{
+public:
+ /**
+ * Constructor.
+ * \param theParent parent data object
+ * \param theName displayed name
+ */
+ HYDROGUI_DropTargetObject( SUIT_DataObject* theParent,
+ const QString& theName,
+ const QString& theParentEntry );
+
+ bool isDropAccepted() const { return true; }
+};
+
#endif