Salome HOME
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_DataBrowser.h
index 3c3e3201ac4dc9d10ea64ab19afd219998569f46..11856cf6352a48de4a750a44e30f66f3761e6773 100644 (file)
 #define HYDROGUI_DATABROWSER_H
 
 #include <SUIT_DataBrowser.h>
+#include <SUIT_TreeModel.h>
 
 class HYDROGUI_Module;
 
 /**\class HYDROGUI_DataBrowser
  *\brief The data model browser widget implementation
  */
-class HYDROGUI_DataBrowser : public SUIT_DataBrowser
+class HYDROGUI_DataBrowser : public SUIT_DataBrowser, public SUIT_DataSearcher
 {
   Q_OBJECT
 
@@ -38,7 +39,19 @@ public:
   HYDROGUI_DataBrowser( HYDROGUI_Module* theModule, SUIT_DataObject*, QWidget* = 0 );
   ~HYDROGUI_DataBrowser();
 
-  HYDROGUI_Module* module() const;
+  HYDROGUI_Module*         module() const;
+
+  /*!
+    Find a data object by the specified entry.
+    \param theEntry - Entry of the object.
+    \return data object.
+  */
+  virtual SUIT_DataObject* findObject( const QString& ) const;
+
+signals:
+  void             dropped( const QList<SUIT_DataObject*>& theList, 
+    SUIT_DataObject* theTargetParent, int theTargetRow, Qt::DropAction theDropAction );
+  void             dataChanged();
 
 private:
   HYDROGUI_Module* myModule;