UltraScan III
us_data_tree.h
Go to the documentation of this file.
1 #ifndef US_DATA_TREE_H
2 #define US_DATA_TREE_H
3 
4 #include <QtGui>
5 
6 #include "us_extern.h"
7 #include "us_sync_exper.h"
8 #include "us_data_model.h"
9 #include "us_data_process.h"
10 #include "us_db2.h"
11 #include "us_model.h"
12 #include "us_buffer.h"
13 #include "us_analyte.h"
14 #include "us_help.h"
15 #include "us_dataIO.h"
16 
17 class US_DataTree : public QObject
18 {
19  Q_OBJECT
20 
21  public:
22  US_DataTree( US_DataModel*, QTreeWidget*, QWidget* = 0 );
23 
24  void toggle_expand( QString, bool );
25  void build_dtree( void );
26 
27  public slots:
28  void dtree_help( void );
29  void row_context_menu( QTreeWidgetItem* );
30 
31  private:
32 
33  US_DataModel* da_model; // data model object
34  QTreeWidget* tw_recs; // tree widget
35  QPushButton* pb_hsedit; // pointer to edits hide/show button
36  QPushButton* pb_hsmodl; // pointer to models hide/show button
37  QPushButton* pb_hsnois; // pointer to noises hide/show button
38  QWidget* parentw; // pointer to parent widget
39 
40  US_DataProcess* da_process; // data processor object
41 
42  QTreeWidgetItem* tw_item; // current tree widget item
43 
44  US_DataModel::DataDesc cdesc; // current record description
45 
46  QList< QTreeWidgetItem* > selitems; // all selected items
47 
48  QVector< int > selrows; // all selected rows
49  QVector< int > actrows; // all action rows
50  QVector< int > rawrows; // Raw selected rows
51 
52  QLabel* lb_status;
53 
54  QTextEdit* te_status;
55 
56  QLineEdit* le_invtor;
57 
58  QPushButton* pb_browse;
59  QPushButton* pb_detail;
60  QPushButton* pb_reset;
61  QPushButton* pb_help;
62  QPushButton* pb_close;
63 
64  int ntrows;
65  int ntcols;
66  int ncrecs;
67  int ncraws;
68  int ncedts;
69  int ncmods;
70  int ncnois;
71  int ndrecs;
72  int ndraws;
73  int ndedts;
74  int ndmods;
75  int ndnois;
76  int nlrecs;
77  int nlraws;
78  int nledts;
79  int nlmods;
80  int nlnois;
81  int kdmy;
82  int dbg_level;
83 
84  private slots:
85  void item_upload ( void );
86  void item_download ( void );
87  void item_remove_db ( void );
88  void item_remove_loc( void );
89  void item_remove_all( void );
90  void item_details ( void );
91  void items_details ( void );
92  int action_rows ( void );
93  void record_type ( int, QString& );
94  int do_actions ( QString, QString );
95  QString action_text ( QString, QString );
96  void action_result ( int, QString );
97  QString record_state ( int );
99 };
100 #endif