UltraScan III
us_eqreporter.h
Go to the documentation of this file.
1 #ifndef US_EQREPORTER_H
2 #define US_EQREPORTER_H
3 
4 #include <QtCore>
5 #include <QtGui>
6 
7 #include "us_extern.h"
8 #include "us_dataIO.h"
9 #include "us_globeq_data.h"
10 
11 #ifndef DbgLv
12 #define DbgLv(a) if(dbg_level>=a)qDebug()
13 #endif
14 
15 class US_EqReporter : public QObject
16 {
17  Q_OBJECT
18 
19  public:
20  US_EqReporter( QVector< US_DataIO::EditedData >&,
21  QVector< ScanEdit >&, QVector< EqScanFit >&, EqRunFit&,
22  QWidget* = 0 );
23 
24  void scan_diagnostics();
25  bool check_scan_fit( int );
26  QString fit_report( FitCtrlPar&, bool, bool, QString& );
27 
28  private:
29  QVector< US_DataIO::EditedData >& dataList;
30  QVector< ScanEdit >& scedits;
31  QVector< EqScanFit >& scanfits;
33  QWidget* wparent;
34 
35  int dbg_level;
36 
37  QString asters;
38 
39  private slots:
40  int index_radius( US_DataIO::EditedData*, double );
41  QString centerInLine( const QString&, int, bool, const QChar );
42  QString scanInfoHeader( int, int );
43  int maxLineWidth ( QFontMetrics& fm, const QString& );
44 };
45 #endif
46