UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ldb_tree_wid.hpp
1 /* hds_db_tree_wid.hpp */
2 /* $Id$ */
3 #ifndef __ldb_tree_wid_hpp
4 #define __ldb_tree_wid_hpp
5 
6 #include <ldb/dbtools.h>
7 #include <hds_widgets/db_tree_wid.hpp>
8 
9 class QCursor;
10 
12 namespace hds
13 {
14  namespace impl
15  {
16  class LdbJobsMap;
17  class LdbDbtList;
18  };
19 
21  class LdbTreeWid : public DbTreeWid
22  {
23  Q_OBJECT
24 
25  public:
26 
28  LdbTreeWid(QWidget *parent = 0, Qt::WindowFlags f = 0);
29 
31  virtual ~LdbTreeWid();
32 
35  int init();
36 
37  signals:
38 
41  void openSeismicRequested(const QString &project_str,
42  const QString &name_str);
43 
46  void openDbtRequested(const QString &project_str,
47  const QString &name_str);
48 
51  void openJobRequested(const QString &project_str,
52  const QString &fname_str);
53 
54  public slots:
55 
57  virtual void refreshTree();
58 
59  protected:
60 
63  int init_projects();
64 
68  int init_dbt_folders(const QString &project_str,
69  QTreeWidgetItem *parent_item);
70 
71  protected slots:
72 
74  virtual void openObject(QTreeWidgetItem *pitem);
75 
77  virtual void removeObject(QTreeWidgetItem *pitem);
78 
80  virtual void longJobStateInit();
81 
85  virtual void changeCurrentItem(QTreeWidgetItem* cur_item,
86  QTreeWidgetItem* prev_item);
87 
89  virtual void expandItem(QTreeWidgetItem *item);
90 
92  virtual void setProjectSizeStr(const QString &project_str,
93  const QString &size_str,
94  const QString &descr_str);
96  virtual void setSeismicsList(const QString &project_str,
97  const QStringList &seis_list,
98  const QStringList &size_list);
99 
101  virtual void setDbtList(const QString &project_str,
102  const QString &tt_str,
103  const impl::LdbDbtList &list);
104 
106  virtual void setJobs(const QString &project_str,
107  const impl::LdbJobsMap &jobs_map);
108 
109  private:
110 
112  void remove_object(QTreeWidgetItem *pitem);
113  };
114 }; // hds
115 
116 #endif /* ldb_tree_wid.hpp */
void openSeismicRequested(const QString &project_str, const QString &name_str)
virtual ~LdbTreeWid()
Definition: ldb_tree_wid.hpp:21
Definition: db_tree_wid.hpp:16
virtual void setProjectSizeStr(const QString &project_str, const QString &size_str, const QString &descr_str)
virtual void setDbtList(const QString &project_str, const QString &tt_str, const impl::LdbDbtList &list)
virtual void refreshTree()
int init_dbt_folders(const QString &project_str, QTreeWidgetItem *parent_item)
virtual void expandItem(QTreeWidgetItem *item)
void openDbtRequested(const QString &project_str, const QString &name_str)
virtual void openObject(QTreeWidgetItem *pitem)
virtual void changeCurrentItem(QTreeWidgetItem *cur_item, QTreeWidgetItem *prev_item)
virtual void longJobStateInit()
LdbTreeWid(QWidget *parent=0, Qt::WindowFlags f=0)
virtual void removeObject(QTreeWidgetItem *pitem)
virtual void setSeismicsList(const QString &project_str, const QStringList &seis_list, const QStringList &size_list)
virtual void setJobs(const QString &project_str, const impl::LdbJobsMap &jobs_map)
void openJobRequested(const QString &project_str, const QString &fname_str)