UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hds_db_tree_wid.hpp
1 /* hds_db_tree_wid.hpp */
2 /* $Id$ */
3 #ifndef __hds_db_tree_wid_hpp
4 #define __hds_db_tree_wid_hpp
5 
6 #include <hds_widgets/db_tree_wid.hpp>
7 #include <hds_db/base/defines.hpp>
8 #include <hds_db/base/factory.hpp>
9 
11 namespace hds
12 {
14  namespace db
15  {
17  class HdbTreeWid : public DbTreeWid
18  {
19  Q_OBJECT
20 
21  public:
22 
24  HdbTreeWid(QWidget *parent = 0, Qt::WindowFlags f = 0);
25 
27  virtual ~HdbTreeWid();
28 
29 
35 
36  public slots:
37 
39  virtual void refreshTree();
40 
41  protected:
42 
46  QList<QTreeWidgetItem*> &items);
47 
52  QTreeWidgetItem *parent_item);
53 
55  const hds::db::Factory *mp_dbf;
56 
57  protected slots:
58 
60  virtual void removeObject(QTreeWidgetItem *pitem);
61 
65  virtual void changeCurrentItem(QTreeWidgetItem* cur_item,
66  QTreeWidgetItem* prev_item);
67  };
68  }; // db
69 }; // hds
70 
71 #endif /* hds_db_tree_wid.hpp */
virtual void changeCurrentItem(QTreeWidgetItem *cur_item, QTreeWidgetItem *prev_item)
hds::db::ErrCode init(const hds::db::Factory *pdbf)
Definition: db_tree_wid.hpp:16
Definition: seismic.hpp:19
ErrCode
Definition: defines.hpp:46
Definition: factory.hpp:18
virtual void removeObject(QTreeWidgetItem *pitem)
HdbTreeWid(QWidget *parent=0, Qt::WindowFlags f=0)
hds::db::ErrCode init_projects(const hds::db::Factory &dbf, QList< QTreeWidgetItem * > &items)
Definition: hds_db_tree_wid.hpp:17
virtual void refreshTree()
hds::db::ErrCode init_seismic(hds::db::Seismic *pseis, QTreeWidgetItem *parent_item)