Debian Codegraph @

listfile.h

raw symbols SCIP
1 #ifndef LISTFILE_H
2 #define LISTFILE_H
3
4 #include <QObject>
5 #include <QWidget>
6
7 class ListFileHandler : public QObject
8 {
9 Q_OBJECT
10 public:
11 QStringList REL_RESTR_CARDS;
12 explicit ListFileHandler(QString lfpath, QObject *parent = 0);
13 bool success; //! turns to true if refinement was a sucess.
14 bool getSuccess() const;
15 void setSuccess(bool value);
16 QStringList loadLst();
17 QString restraintsTable();
18 private:
19 QVector<QStringList> listfileparser();
20 QStringList lineformatter(QStringList line);
21 QString table_maker(QVector<QStringList> tabledata);
22 QString row(QStringList rowdata);
23 QStringList *listfcontent;
24 QString my_lstpath;
25 QString thetaFromLst();
26 signals:
27 void listfile_changed(QString line);
28 void lstFinished();
29 public slots:
30 };
31
32 struct LstData {
33 //! Data structure for SHELXL output information
34 QString xlversion; //! SHELXL version number
35 QString cmdline; //! SHELXL command line option
36 QString threads; //! number of threads used
37 QString procs; //! number of processors used
38 QString rint; //! R(int)
39 QString rsigma; //! R(sigma)
40 QString wr2; //! current wr2
41 QString cycle; //! current cycle
42 QString data; //! number of data
43 QString current_parameters; //! current number of refinement parameters
44 QString all_parameters; //! number of all possible refinement parameters
45 QString curGoof; //! current Goof for current cycle
46 QString curRGoof; //! current restraint Goof for current cycle
47 QString nrestraints; //! number of restraints used in refinement
48 QString finalwR2; //! wR2 after refinement (all data)
49 QString R1_4sig; //! R1 after refinement with I > 4sig(I)
50 QString R1_all; //! R1 (all data) after refinement
51 QString finalGoof; //! Goof after refinement
52 QString finalrestrGoof; //! restraint Goof after refinement
53 QString meanshift; //! Mean shift per esd in current cycle
54 QString maxshift_esd; //! Maximum shift per estimated standard deviation in current cycle
55 QString max_shift_esd_for; //! Atom with the maximum shift per esd
56 QString maxshift; //! Maximum shift in Angstrom in current cycle
57 QString maxshiftfor; //! Atom with the maximum shift
58 QString dU; //! Maximum delta U in current cycle
59 QString dUfor; //! Atom with maximum delta U in current cycle
60 QString peak; //! Largest elektron density peak after refinement
61 QString hole; //! Deepest hole after refinement
62 QString peakpos; //! Peak position
63 QString holepos; //! Hole position
64 QString peakdist; //! Distance of peak to next atom
65 QString peakfrom; //! Nearest atom from peak position
66 QString holedist; //! Distance of hole to next atom
67 QString holefrom; //! Nearest atom hole position
68 QString warning; //! A SHELXL warn message
69 QStringList warnings; //! All SHELXL warn messages
70 QString flack; //! Final flack x parametr
71 QString parson; //! Final Parson z parameter
72 QString time; //! Toltal time of SHELXL run
73 };
74
75
76 typedef struct {
77 //! Data structure for residuals to plot
78 int cycle;
79 qreal wR2;
80 qreal final_wR2;
81 qreal Goof;
82 qreal meanshift;
83 qreal maxshift_esd;
84 QString max_shift_esd_for;
85 qreal maxshift;
86 QString maxshiftfor;
87 qreal dU;
88 QString dUfor;
89 QString warning;
90 QStringList warnings;
91 qreal time;
92 } RGraph;
93
94
95 class XLOutputParser : public QObject
96 {
97 Q_OBJECT
98
99 public:
100 explicit XLOutputParser(QObject *parent = 0);
101 private:
102 int ls_cycles;
103 LstData listf_data;
104 RGraph rgr;
105 void fillListFileData(QString line);
106 QStringList warnings;
107 signals:
108 LstData newLScycle();
109
110 public slots:
111 QStringList xl_threads(QString line);
112 QString xl_version(QString line);
113 QString xl_cmdline(QString line);
114 QStringList xl_current_wr2_data_param(QString line);
115 QStringList xl_rint_rsigma(QString line);
116 QStringList xl_current_goof(QString line);
117 QStringList xl_final_goofs(QString line);
118 QStringList xl_current_max_shift(QString line);
119 QStringList xl_current_meanshift_esd(QString line);
120 QString xl_current_warning(QString line);
121 void xl_collect_warnings(QString line);
122 QString xl_final_R1_4sig(QString line);
123 QString xl_final_wR2(QString line);
124 QString residualsTextDisplay(QString &line, int ls_cycles);
125 QStringList xl_hole(QString line);
126 QStringList xl_peak(QString line);
127 RGraph residualsGraphDisplay();
128 QStringList xl_flacksvals(QString line);
129 QString xl_final_R1all(QString line);
130 QString xl_timeval(QString line);
131 };
132
133 /*
134 class ListFileWidget : public QWidget
135 {
136 Q_OBJECT
137
138 public:
139 explicit ListFileWidget(QObject *parent = 0);
140
141 private:
142
143 signals:
144
145 public slots:
146
147 };
148 */
149 #endif // LISTFILE_H