class ModuleBase_IDocumentDataModel;
class QLineEdit;
+class XGUI_DataModel;
+
+#define ModuleDataModel
/**
* \ingroup GUI
/// Commit modified data (used for renaming of objects)
virtual void commitData(QWidget* theEditor);
- /// Returns true if theObject can be renamed in theName
- bool canRename(const ObjectPtr& theObject, const QString& theName);
+ void onDoubleClick(const QModelIndex&);
protected:
/// Redefinition of virtual method
virtual ~XGUI_ObjectsBrowser();
//! Returns Model which provides access to data objects
+#ifdef ModuleDataModel
ModuleBase_IDocumentDataModel* dataModel() const
{
return myDocModel;
}
+#else
+ XGUI_DataModel* dataModel() const
+ {
+ return myDocModel;
+ }
+#endif
//! Returns list of currently selected objects
//! \param theIndexes - output list of corresponded indexes (can be NULL)
void closeDocNameEditing(bool toSave);
//! Internal model
+#ifdef ModuleDataModel
ModuleBase_IDocumentDataModel* myDocModel;
-
+#else
+ XGUI_DataModel* myDocModel;
+#endif
QLineEdit* myActiveDocLbl;
XGUI_DataTree* myTreeView;
};