\doxysection{PMusr\+Step.\+h} \hypertarget{PMusrStep_8h_source}{}\label{PMusrStep_8h_source}\index{/workspace/LMU/musrfit/src/musredit\_qt6/musrStep/PMusrStep.h@{/workspace/LMU/musrfit/src/musredit\_qt6/musrStep/PMusrStep.h}} \mbox{\hyperlink{PMusrStep_8h}{Go to the documentation of this file.}} \begin{DoxyCode}{0} \DoxyCodeLine{00001\ \textcolor{comment}{/***************************************************************************}} \DoxyCodeLine{00002\ \textcolor{comment}{}} \DoxyCodeLine{00003\ \textcolor{comment}{\ \ PMusrStep.h}} \DoxyCodeLine{00004\ \textcolor{comment}{}} \DoxyCodeLine{00005\ \textcolor{comment}{\ \ Author:\ Andreas\ Suter}} \DoxyCodeLine{00006\ \textcolor{comment}{\ \ e-\/mail:\ andreas.suter@psi.ch}} \DoxyCodeLine{00007\ \textcolor{comment}{}} \DoxyCodeLine{00008\ \textcolor{comment}{***************************************************************************/}} \DoxyCodeLine{00009\ } \DoxyCodeLine{00010\ \textcolor{comment}{/***************************************************************************}} \DoxyCodeLine{00011\ \textcolor{comment}{\ *\ \ \ Copyright\ (C)\ 2007-\/2026\ by\ Andreas\ Suter\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00012\ \textcolor{comment}{\ *\ \ \ andreas.suter@psi.ch\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00013\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00014\ \textcolor{comment}{\ *\ \ \ This\ program\ is\ free\ software;\ you\ can\ redistribute\ it\ and/or\ modify\ \ *}} \DoxyCodeLine{00015\ \textcolor{comment}{\ *\ \ \ it\ under\ the\ terms\ of\ the\ GNU\ General\ Public\ License\ as\ published\ by\ \ *}} \DoxyCodeLine{00016\ \textcolor{comment}{\ *\ \ \ the\ Free\ Software\ Foundation;\ either\ version\ 2\ of\ the\ License,\ or\ \ \ \ \ *}} \DoxyCodeLine{00017\ \textcolor{comment}{\ *\ \ \ (at\ your\ option)\ any\ later\ version.\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00018\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00019\ \textcolor{comment}{\ *\ \ \ This\ program\ is\ distributed\ in\ the\ hope\ that\ it\ will\ be\ useful,\ \ \ \ \ \ \ *}} \DoxyCodeLine{00020\ \textcolor{comment}{\ *\ \ \ but\ WITHOUT\ ANY\ WARRANTY;\ without\ even\ the\ implied\ warranty\ of\ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00021\ \textcolor{comment}{\ *\ \ \ MERCHANTABILITY\ or\ FITNESS\ FOR\ A\ PARTICULAR\ PURPOSE.\ \ See\ the\ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00022\ \textcolor{comment}{\ *\ \ \ GNU\ General\ Public\ License\ for\ more\ details.\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00023\ \textcolor{comment}{\ *\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00024\ \textcolor{comment}{\ *\ \ \ You\ should\ have\ received\ a\ copy\ of\ the\ GNU\ General\ Public\ License\ \ \ \ \ *}} \DoxyCodeLine{00025\ \textcolor{comment}{\ *\ \ \ along\ with\ this\ program;\ if\ not,\ write\ to\ the\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00026\ \textcolor{comment}{\ *\ \ \ Free\ Software\ Foundation,\ Inc.,\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00027\ \textcolor{comment}{\ *\ \ \ 59\ Temple\ Place\ -\/\ Suite\ 330,\ Boston,\ MA\ \ 02111-\/1307,\ USA.\ \ \ \ \ \ \ \ \ \ \ \ \ *}} \DoxyCodeLine{00028\ \textcolor{comment}{\ ***************************************************************************/}} \DoxyCodeLine{00029\ } \DoxyCodeLine{00040\ } \DoxyCodeLine{00041\ \textcolor{preprocessor}{\#ifndef\ \_PMUSRSTEP\_H\_}} \DoxyCodeLine{00042\ \textcolor{preprocessor}{\#define\ \_PMUSRSTEP\_H\_}} \DoxyCodeLine{00043\ } \DoxyCodeLine{00044\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00045\ } \DoxyCodeLine{00046\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00047\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00048\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00049\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00050\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00051\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00052\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00053\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00054\ } \DoxyCodeLine{00062\ \textcolor{keyword}{struct\ }\mbox{\hyperlink{structPParam}{PParam}}\ \{} \DoxyCodeLine{00063\ \ \ QString\ \mbox{\hyperlink{structPParam_a63ed971208f7a0bf41c7f8a0e6747620}{number}};\ \ \ \ \ } \DoxyCodeLine{00064\ \ \ QString\ \mbox{\hyperlink{structPParam_a3e2fef2e15397970730d8555cd022728}{name}};\ \ \ \ \ \ \ } \DoxyCodeLine{00065\ \ \ QString\ \mbox{\hyperlink{structPParam_a6d1c8bfb52e8d32a1ab634ea09378c61}{value}};\ \ \ \ \ \ } \DoxyCodeLine{00066\ \ \ QString\ \mbox{\hyperlink{structPParam_a7dd5d74e583dcdde398288b19b52a5f8}{step}};\ \ \ \ \ \ \ } \DoxyCodeLine{00067\ \ \ QString\ \mbox{\hyperlink{structPParam_a132a19067af8eb0753ce1e57345e306b}{posErr}};\ \ \ \ \ } \DoxyCodeLine{00068\ \ \ QString\ \mbox{\hyperlink{structPParam_af24c288dd5ceb31c75ffc38fe6d27350}{boundLow}};\ \ \ } \DoxyCodeLine{00069\ \ \ QString\ \mbox{\hyperlink{structPParam_a248c74d1940e7becd25a06f429a7923a}{boundHigh}};\ \ } \DoxyCodeLine{00070\ \};} \DoxyCodeLine{00071\ } \DoxyCodeLine{00072\ \textcolor{comment}{//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}} \DoxyCodeLine{00084\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classPModSelect_ae0563581e5e63ae3aae7e398fe70659d}{PModSelect}}\ :\ \textcolor{keyword}{public}\ QDialog} \DoxyCodeLine{00085\ \{} \DoxyCodeLine{00086\ \ \ Q\_OBJECT} \DoxyCodeLine{00087\ } \DoxyCodeLine{00088\ \ \ \textcolor{keyword}{public}:} \DoxyCodeLine{00093\ \ \ \ \ \mbox{\hyperlink{classPModSelect_ae0563581e5e63ae3aae7e398fe70659d}{PModSelect}}(QWidget\ *parent=Q\_NULLPTR);} \DoxyCodeLine{00094\ } \DoxyCodeLine{00095\ \ \ signals:} \DoxyCodeLine{00104\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}{scale}}(\textcolor{keywordtype}{bool}\ automatic,\ \textcolor{keywordtype}{double}\ factor,\ \textcolor{keywordtype}{bool}\ absVal);} \DoxyCodeLine{00105\ } \DoxyCodeLine{00106\ \ \ \textcolor{keyword}{private}\ slots:} \DoxyCodeLine{00113\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPModSelect_a8f01e2253ed84a2746c40dc8f7d5c7a5}{absoluteValueStateChanged}}(\textcolor{keywordtype}{int}\ ival);} \DoxyCodeLine{00114\ } \DoxyCodeLine{00120\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPModSelect_a1e150a2df4c8574a82852111d3685d70}{scaleAuto}}();} \DoxyCodeLine{00121\ } \DoxyCodeLine{00127\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPModSelect_aee1b807bdb7b14a4eae581ad6106d643}{getFactor}}();} \DoxyCodeLine{00128\ } \DoxyCodeLine{00129\ \ \ \textcolor{keyword}{private}:} \DoxyCodeLine{00130\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPModSelect_a7d97bff6a889b413d4ae2bb4936eeaa4}{fAbsVal}};\ \ \ \ \ \ \ \ \ \ \ } \DoxyCodeLine{00131\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPModSelect_ace22ff02fc416f25ab295be8168f1ba8}{fFactorLabel}};\ \ \ \ \ \ \ \ \ } \DoxyCodeLine{00132\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPModSelect_a889ff8f032dc4e6b06f0ed9424cc51b7}{fFactorLineEdit}};\ \ \ } \DoxyCodeLine{00133\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPModSelect_a770306c9a3fe778195e401148a76214b}{fScaleByFactor}};\ \ } \DoxyCodeLine{00134\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPModSelect_adc3c96a727232003870b074be25cc534}{fScaleAutomatic}};\ } \DoxyCodeLine{00135\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPModSelect_a6cf5875a952885d1f8e1e00f1112bb28}{fCancel}};\ \ \ \ \ \ \ \ \ } \DoxyCodeLine{00136\ \};} \DoxyCodeLine{00137\ } \DoxyCodeLine{00138\ \textcolor{comment}{//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++}} \DoxyCodeLine{00155\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classPMusrStep_ae5a323788b3ba63cdde7e57fd992ceaf}{PMusrStep}}\ :\ \textcolor{keyword}{public}\ QDialog} \DoxyCodeLine{00156\ \{} \DoxyCodeLine{00157\ \ \ Q\_OBJECT} \DoxyCodeLine{00158\ } \DoxyCodeLine{00159\ \ \ \textcolor{keyword}{public}:} \DoxyCodeLine{00167\ \ \ \ \ \mbox{\hyperlink{classPMusrStep_ae5a323788b3ba63cdde7e57fd992ceaf}{PMusrStep}}(\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *fln,\ QWidget\ *parent=Q\_NULLPTR);} \DoxyCodeLine{00168\ } \DoxyCodeLine{00174\ \ \ \ \ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{classPMusrStep_ab7a41b585c9dc0a1a2eea2f36550be0f}{isValid}}()\ \{\ \textcolor{keywordflow}{return}\ \mbox{\hyperlink{classPMusrStep_af6c7c2bc35b2644ea7aebea2ff734bff}{fValid}};\ \}} \DoxyCodeLine{00175\ } \DoxyCodeLine{00176\ \ \ \textcolor{keyword}{private}\ slots:} \DoxyCodeLine{00184\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_af03a31fa62bf15304cd3d2a82d66beef}{handleCellChanged}}(\textcolor{keywordtype}{int}\ row,\ \textcolor{keywordtype}{int}\ column);} \DoxyCodeLine{00185\ } \DoxyCodeLine{00191\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_ab6814af44878fe06aa1ef6c908eefbe9}{checkSpecific}}();} \DoxyCodeLine{00192\ } \DoxyCodeLine{00197\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_affab10a8a48eeac2d68872c06a2718e3}{checkAll}}();} \DoxyCodeLine{00198\ } \DoxyCodeLine{00202\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_a6216b14d3b253739dd46806c56052898}{unCheckAll}}();} \DoxyCodeLine{00203\ } \DoxyCodeLine{00209\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_a688f2396de9c346c7fba453ff804f83f}{modifyAuto}}();} \DoxyCodeLine{00210\ } \DoxyCodeLine{00214\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_abd24a0cb8a3cbb11241cb74e288503bb}{modifyChecked}}();} \DoxyCodeLine{00215\ } \DoxyCodeLine{00219\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_aec2d0397ed83bf339a9626e396acab6e}{saveAndQuit}}();} \DoxyCodeLine{00220\ } \DoxyCodeLine{00228\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_aa37bcdcd4a9dc06a5519a7cb9026cbf0}{handleModSelect}}(\textcolor{keywordtype}{bool}\ automatic,\ \textcolor{keywordtype}{double}\ factor,\ \textcolor{keywordtype}{bool}\ absVal);} \DoxyCodeLine{00229\ } \DoxyCodeLine{00230\ \ \ \textcolor{keyword}{private}:} \DoxyCodeLine{00231\ \ \ \ \ QString\ \mbox{\hyperlink{classPMusrStep_a32c24ed446ed454fc9f5fb316d81ac3c}{fMsrFileName}};\ \ } \DoxyCodeLine{00232\ \ \ \ \ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{classPMusrStep_af6c7c2bc35b2644ea7aebea2ff734bff}{fValid}};\ \ \ \ \ \ \ \ \ \ \ } \DoxyCodeLine{00233\ } \DoxyCodeLine{00234\ \ \ \ \ QVector\ \mbox{\hyperlink{classPMusrStep_afc8659958175f5d39ec809ee0c146630}{fParamVec}};\ \ } \DoxyCodeLine{00235\ } \DoxyCodeLine{00236\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_a5938a7e42180c4bc030f637cfe6f55f3}{fTitleLabel}};\ \ \ \ \ \ \ \ \ \ \ \ } \DoxyCodeLine{00237\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_a2159c442a7007d1c03f8d6b74be8fe1d}{fParamTable}};\ \ \ \ \ \ } \DoxyCodeLine{00238\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_a88137805d4ed7689326e6bb5c4d9ffb8}{fCheckSpecific}};\ \ \ \ } \DoxyCodeLine{00239\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_af89cc1cf20e7fef24d9ced5508817980}{fCheckAll}};\ \ \ \ \ \ \ \ \ } \DoxyCodeLine{00240\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_a15c23756c9460e88231a72b7cbcff5e8}{fUnCheckAll}};\ \ \ \ \ \ \ } \DoxyCodeLine{00241\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_aafb64bf7b1733dbecd5361a55753a79f}{fModifyAuto}};\ \ \ \ \ \ \ } \DoxyCodeLine{00242\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_a5b11aa27d4f78655f060cf5e0ef50cca}{fModifySelected}};\ \ \ } \DoxyCodeLine{00243\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_a983f9d91d6b0889d009320125ac014fa}{fSave}};\ \ \ \ \ \ \ \ \ \ \ \ \ } \DoxyCodeLine{00244\ \ \ \ \ std::unique\_ptr\ \mbox{\hyperlink{classPMusrStep_a81bb9b9d3ca59946a2a443048a16f9b6}{fCancel}};\ \ \ \ \ \ \ \ \ \ \ } \DoxyCodeLine{00245\ } \DoxyCodeLine{00246\ \ \ \ \ \mbox{\hyperlink{classPModSelect}{PModSelect}}\ *\mbox{\hyperlink{classPMusrStep_a8842277920f629ced2f9180aab1cd0a8}{fModSelect}};\ \ } \DoxyCodeLine{00247\ } \DoxyCodeLine{00252\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classPMusrStep_a16c2acd93220d1ba42111af5a8221abf}{initParam}}(\mbox{\hyperlink{structPParam}{PParam}}\ \¶m);} \DoxyCodeLine{00253\ } \DoxyCodeLine{00266\ \ \ \ \ \textcolor{keywordtype}{double}\ \mbox{\hyperlink{classPMusrStep_af1fbdd6991c2f5c0320ffa9e94c4943b}{lookupTable}}(\textcolor{keyword}{const}\ QString\ str,\ \textcolor{keywordtype}{bool}\ \&absVal);} \DoxyCodeLine{00267\ } \DoxyCodeLine{00275\ \ \ \ \ QString\ \mbox{\hyperlink{classPMusrStep_a75eae8b3f7b3831055c55c468575c8a7}{adoptStep}}(\textcolor{keyword}{const}\ QString\ str,\ \textcolor{keywordtype}{double}\ factor,\ \textcolor{keywordtype}{bool}\ absVal);} \DoxyCodeLine{00276\ } \DoxyCodeLine{00283\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{classPMusrStep_af53caa0a604b5966e07b06b37a16e543}{readMsrFile}}();} \DoxyCodeLine{00284\ } \DoxyCodeLine{00292\ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{classPMusrStep_a30abe3e3ce9c9a913427045df86c9bca}{writeMsrFile}}();} \DoxyCodeLine{00293\ } \DoxyCodeLine{00300\ \ \ \ \ QString\ \mbox{\hyperlink{classPMusrStep_a8387983ab49c7db65da6f9285fd01836}{getLine}}(QByteArray\ \&data,\ \textcolor{keywordtype}{int}\ \&idx);} \DoxyCodeLine{00301\ } \DoxyCodeLine{00309\ \ \ \ \ QString\ \mbox{\hyperlink{classPMusrStep_a50f93b2a5d936a4bff7ce88254ffee5c}{updateParamLine}}(\textcolor{keyword}{const}\ QString\ str);} \DoxyCodeLine{00310\ \};} \DoxyCodeLine{00311\ } \DoxyCodeLine{00312\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ \_PMUSRSTEP\_H\_}} \end{DoxyCode}