UltraScan III
us_export.h
Go to the documentation of this file.
1 #ifndef US_EXPORT_LEGACY_H
2 #define US_EXPORT_LEGACY_H
3 
4 #include <QtGui>
5 
6 #include "us_widgets.h"
7 #include "us_plot.h"
8 #include "us_dataIO.h"
9 #include "us_db2.h"
10 #include "us_editor.h"
11 #include "us_math2.h"
12 #include "us_help.h"
13 #include "us_run_details2.h"
14 #include <qwt_plot.h>
15 #include <qwt_plot_marker.h>
16 
17 #ifndef DbgLv
18 #define DbgLv(a) if(dbg_level>=a)qDebug()
19 #endif
20 
22 {
23  Q_OBJECT
24 
25  public:
27 
28  private:
29 
30  QLineEdit* le_id;
31  QLineEdit* le_temp;
32 
33  QTextEdit* te_desc;
34  QTextEdit* te_stat;
35 
36  QPushButton* pb_load;
37  QPushButton* pb_details;
38  QPushButton* pb_view;
39  QPushButton* pb_save;
40  QPushButton* pb_reset;
41  QPushButton* pb_help;
42  QPushButton* pb_close;
43 
44  QListWidget* lw_triples;
45 
46  int scanCount;
48  int dbg_level;
49  int nexport;
50 
51  bool dataLoaded;
52 
53  QString run_name;
54  QString workingDir;
55  QString runID;
56  QString rawDtype;
57  QString rawChann;
58  QString rawCell;
59  QString rawWaveln;
60 
61  QStringList files;
62 
66 
68 
69  private slots:
70 
71  void load ( void );
72  void data_plot ( void );
73  void export_data( void );
74  void details ( void );
75  void reset ( void );
76  void update ( int );
77 
78  void exp_mosttypes ( QStringList& );
79  void exp_intensity ( QStringList& );
80  void exp_interference( QStringList& );
81  void write_report ( QTextStream& );
82  void update_disk_db ( bool );
83  bool mkdir ( QString&, QString& );
84  void new_triple ( int );
85  QString indent ( int ) const;
86  void view_report ( void );
87  QString table_row ( const QString&, const QString& ) const;
88  QString html_header ( QString, QString, US_DataIO::RawData* );
89  QString data_details ( void );
90  double time_correction ( void );
92  QString&, QString&, QString&, QString& );
93 
94  int getRIProfile ( QVector< double >& );
95  void convertToIntensity ( QVector< double >& );
96  void parseRIProfile ( QString&, QVector< double >& );
97 
98  void help ( void )
99  { showHelp.show_help( "export_legacy.html" ); };
100 
101  protected:
102  QStringList triples;
103  QVector< US_DataIO::EditedData > dataList;
104  QVector< US_DataIO::RawData > rawList;
105  QVector< int > extrips;
106 
108 
109  // Layouts
110  QBoxLayout* mainLayout;
111  QBoxLayout* leftLayout;
112  QBoxLayout* rightLayout;
113  QBoxLayout* buttonLayout;
114 
115  QGridLayout* analysisLayout;
116  QGridLayout* runInfoLayout;
117 
118  US_Plot* plotLayout2; // Derived from QVBoxLayout
119 
120  // Widgets
121  QwtPlot* data_plot2;
122 };
123 #endif