Files
Gitea Actions b6fac619f9 Deploy site
2026-05-28 07:32:41 +00:00

243 lines
13 KiB
TeX

\doxysection{PMod\+Select Class Reference}
\hypertarget{classPModSelect}{}\label{classPModSelect}\index{PModSelect@{PModSelect}}
Dialog for selecting modification options for parameter step sizes.
{\ttfamily \#include $<$PMusr\+Step.\+h$>$}
Inheritance diagram for PMod\+Select\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classPModSelect}
\end{center}
\end{figure}
\doxysubsubsection*{Signals}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}{scale}} (bool automatic, double factor, bool abs\+Val)
\begin{DoxyCompactList}\small\item\em Signal emitted when user selects a scaling operation. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item
\mbox{\hyperlink{classPModSelect_ae0563581e5e63ae3aae7e398fe70659d}{PMod\+Select}} (QWidget \texorpdfstring{$\ast$}{*}parent=Q\+\_\+\+NULLPTR)
\begin{DoxyCompactList}\small\item\em Constructor for \doxylink{classPModSelect}{PMod\+Select} dialog. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Private Slots}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{classPModSelect_a8f01e2253ed84a2746c40dc8f7d5c7a5}{absolute\+Value\+State\+Changed}} (int ival)
\begin{DoxyCompactList}\small\item\em Slot called when the absolute value checkbox state changes. \end{DoxyCompactList}\item
void \mbox{\hyperlink{classPModSelect_a1e150a2df4c8574a82852111d3685d70}{scale\+Auto}} ()
\begin{DoxyCompactList}\small\item\em Slot that triggers automatic scaling of selected parameters. \end{DoxyCompactList}\item
void \mbox{\hyperlink{classPModSelect_aee1b807bdb7b14a4eae581ad6106d643}{get\+Factor}} ()
\begin{DoxyCompactList}\small\item\em Slot that applies the user-\/specified factor to selected parameters. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item
std\+::unique\+\_\+ptr$<$ QCheck\+Box $>$ \mbox{\hyperlink{classPModSelect_a7d97bff6a889b413d4ae2bb4936eeaa4}{f\+Abs\+Val}}
\begin{DoxyCompactList}\small\item\em Checkbox for absolute value mode. \end{DoxyCompactList}\item
std\+::unique\+\_\+ptr$<$ QLabel $>$ \mbox{\hyperlink{classPModSelect_ace22ff02fc416f25ab295be8168f1ba8}{f\+Factor\+Label}}
\begin{DoxyCompactList}\small\item\em Label for the factor input field. \end{DoxyCompactList}\item
std\+::unique\+\_\+ptr$<$ QLine\+Edit $>$ \mbox{\hyperlink{classPModSelect_a889ff8f032dc4e6b06f0ed9424cc51b7}{f\+Factor\+Line\+Edit}}
\begin{DoxyCompactList}\small\item\em Input field for the scaling factor. \end{DoxyCompactList}\item
std\+::unique\+\_\+ptr$<$ QPush\+Button $>$ \mbox{\hyperlink{classPModSelect_a770306c9a3fe778195e401148a76214b}{f\+Scale\+By\+Factor}}
\begin{DoxyCompactList}\small\item\em Button to apply factor scaling. \end{DoxyCompactList}\item
std\+::unique\+\_\+ptr$<$ QPush\+Button $>$ \mbox{\hyperlink{classPModSelect_adc3c96a727232003870b074be25cc534}{f\+Scale\+Automatic}}
\begin{DoxyCompactList}\small\item\em Button to apply automatic scaling. \end{DoxyCompactList}\item
std\+::unique\+\_\+ptr$<$ QPush\+Button $>$ \mbox{\hyperlink{classPModSelect_a6cf5875a952885d1f8e1e00f1112bb28}{f\+Cancel}}
\begin{DoxyCompactList}\small\item\em Button to cancel the dialog. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection{Detailed Description}
Dialog for selecting modification options for parameter step sizes.
This dialog provides the user interface for choosing how to modify selected parameter step sizes. It offers two main options\+:
\begin{DoxyItemize}
\item Scale by a user-\/specified factor (multiplicative or absolute value)
\item Automatic scaling based on parameter naming conventions
\end{DoxyItemize}
The dialog emits a \doxylink{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}{scale()} signal when the user makes a selection, which is then processed by the parent \doxylink{classPMusrStep}{PMusr\+Step} dialog.
\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{classPModSelect_ae0563581e5e63ae3aae7e398fe70659d}\index{PModSelect@{PModSelect}!PModSelect@{PModSelect}}
\index{PModSelect@{PModSelect}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{PModSelect()}{PModSelect()}}
{\footnotesize\ttfamily \label{classPModSelect_ae0563581e5e63ae3aae7e398fe70659d}
PMod\+Select\+::\+PMod\+Select (\begin{DoxyParamCaption}\item[{QWidget \texorpdfstring{$\ast$}{*}}]{parent}{ = {\ttfamily Q\+\_\+NULLPTR}}\end{DoxyParamCaption})}
Constructor for \doxylink{classPModSelect}{PMod\+Select} dialog.
Constructor for the \doxylink{classPModSelect}{PMod\+Select} dialog.
\begin{DoxyParams}{Parameters}
{\em parent} & Pointer to the parent widget (default\+: Q\+\_\+\+NULLPTR)\\
\hline
\end{DoxyParams}
Creates and initializes the dialog UI with the following controls\+:
\begin{DoxyItemize}
\item "{}\+Scale by Factor"{} button with associated factor input field
\item "{}\+Absolute Value"{} checkbox to toggle between multiplicative and absolute scaling
\item "{}\+Scale Automatically"{} button for automatic scaling based on parameter names
\item "{}\+Cancel"{} button to close the dialog without applying changes
\end{DoxyItemize}
\begin{DoxyParams}{Parameters}
{\em parent} & Pointer to the parent widget (default\+: Q\+\_\+\+NULLPTR) \\
\hline
\end{DoxyParams}
\doxysubsection{Member Function Documentation}
\Hypertarget{classPModSelect_a8f01e2253ed84a2746c40dc8f7d5c7a5}\index{PModSelect@{PModSelect}!absoluteValueStateChanged@{absoluteValueStateChanged}}
\index{absoluteValueStateChanged@{absoluteValueStateChanged}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{absoluteValueStateChanged}{absoluteValueStateChanged}}
{\footnotesize\ttfamily \label{classPModSelect_a8f01e2253ed84a2746c40dc8f7d5c7a5}
void PMod\+Select\+::absolute\+Value\+State\+Changed (\begin{DoxyParamCaption}\item[{int}]{ival}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}, {\ttfamily [slot]}}
Slot called when the absolute value checkbox state changes.
Handles state changes of the absolute value checkbox.
Updates the UI labels to reflect whether the factor will be used as a multiplier or as an absolute value.
\begin{DoxyParams}{Parameters}
{\em ival} & The new checkbox state (Qt\+::\+Checked or Qt\+::\+Unchecked)\\
\hline
\end{DoxyParams}
Updates the UI labels to reflect the current mode\+:
\begin{DoxyItemize}
\item When unchecked\+: Shows "{}\+Factor"{} label and "{}\+Scale by Factor"{} button text
\item When checked\+: Shows "{}\+Value"{} label and "{}\+Set Abs. Value"{} button text
\end{DoxyItemize}
\begin{DoxyParams}{Parameters}
{\em ival} & The new checkbox state (Qt\+::\+Checked or Qt\+::\+Unchecked) \\
\hline
\end{DoxyParams}
\Hypertarget{classPModSelect_aee1b807bdb7b14a4eae581ad6106d643}\index{PModSelect@{PModSelect}!getFactor@{getFactor}}
\index{getFactor@{getFactor}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{getFactor}{getFactor}}
{\footnotesize\ttfamily \label{classPModSelect_aee1b807bdb7b14a4eae581ad6106d643}
void PMod\+Select\+::get\+Factor (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}, {\ttfamily [slot]}}
Slot that applies the user-\/specified factor to selected parameters.
Reads the user-\/specified factor and emits the scale signal.
Reads the factor value from the input field and the absolute value checkbox state, then emits the \doxylink{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}{scale()} signal with these values.
Retrieves the factor value from the input field and the absolute value checkbox state, then emits the \doxylink{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}{scale()} signal with automatic=false to indicate manual scaling mode. \Hypertarget{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}\index{PModSelect@{PModSelect}!scale@{scale}}
\index{scale@{scale}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{scale}{scale}}
{\footnotesize\ttfamily \label{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}
void PMod\+Select\+::scale (\begin{DoxyParamCaption}\item[{bool}]{automatic}{, }\item[{double}]{factor}{, }\item[{bool}]{abs\+Val}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [signal]}}
Signal emitted when user selects a scaling operation.
\begin{DoxyParams}{Parameters}
{\em automatic} & If true, use automatic scaling based on parameter names; if false, use the provided factor value \\
\hline
{\em factor} & The scaling factor to apply (used when automatic is false) \\
\hline
{\em abs\+Val} & If true, factor is used as an absolute value; if false, factor is used as a multiplier \\
\hline
\end{DoxyParams}
\Hypertarget{classPModSelect_a1e150a2df4c8574a82852111d3685d70}\index{PModSelect@{PModSelect}!scaleAuto@{scaleAuto}}
\index{scaleAuto@{scaleAuto}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{scaleAuto}{scaleAuto}}
{\footnotesize\ttfamily \label{classPModSelect_a1e150a2df4c8574a82852111d3685d70}
void PMod\+Select\+::scale\+Auto (\begin{DoxyParamCaption}{}{}\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}, {\ttfamily [slot]}}
Slot that triggers automatic scaling of selected parameters.
Triggers automatic scaling of selected parameters.
Emits the \doxylink{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}{scale()} signal with automatic=true, causing the parent dialog to apply scaling factors based on parameter naming conventions.
Emits the \doxylink{classPModSelect_afa0a486616b4faf0643c55ffeb8c76e8}{scale()} signal with automatic=true and a default factor of 0.\+01. The parent dialog will then apply scaling factors based on parameter naming conventions using its lookup\+Table() method.
\doxysubsection{Member Data Documentation}
\Hypertarget{classPModSelect_a7d97bff6a889b413d4ae2bb4936eeaa4}\index{PModSelect@{PModSelect}!fAbsVal@{fAbsVal}}
\index{fAbsVal@{fAbsVal}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{fAbsVal}{fAbsVal}}
{\footnotesize\ttfamily \label{classPModSelect_a7d97bff6a889b413d4ae2bb4936eeaa4}
std\+::unique\+\_\+ptr$<$QCheck\+Box$>$ PMod\+Select\+::f\+Abs\+Val\hspace{0.3cm}{\ttfamily [private]}}
Checkbox for absolute value mode.
\Hypertarget{classPModSelect_a6cf5875a952885d1f8e1e00f1112bb28}\index{PModSelect@{PModSelect}!fCancel@{fCancel}}
\index{fCancel@{fCancel}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{fCancel}{fCancel}}
{\footnotesize\ttfamily \label{classPModSelect_a6cf5875a952885d1f8e1e00f1112bb28}
std\+::unique\+\_\+ptr$<$QPush\+Button$>$ PMod\+Select\+::f\+Cancel\hspace{0.3cm}{\ttfamily [private]}}
Button to cancel the dialog.
\Hypertarget{classPModSelect_ace22ff02fc416f25ab295be8168f1ba8}\index{PModSelect@{PModSelect}!fFactorLabel@{fFactorLabel}}
\index{fFactorLabel@{fFactorLabel}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{fFactorLabel}{fFactorLabel}}
{\footnotesize\ttfamily \label{classPModSelect_ace22ff02fc416f25ab295be8168f1ba8}
std\+::unique\+\_\+ptr$<$QLabel$>$ PMod\+Select\+::f\+Factor\+Label\hspace{0.3cm}{\ttfamily [private]}}
Label for the factor input field.
\Hypertarget{classPModSelect_a889ff8f032dc4e6b06f0ed9424cc51b7}\index{PModSelect@{PModSelect}!fFactorLineEdit@{fFactorLineEdit}}
\index{fFactorLineEdit@{fFactorLineEdit}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{fFactorLineEdit}{fFactorLineEdit}}
{\footnotesize\ttfamily \label{classPModSelect_a889ff8f032dc4e6b06f0ed9424cc51b7}
std\+::unique\+\_\+ptr$<$QLine\+Edit$>$ PMod\+Select\+::f\+Factor\+Line\+Edit\hspace{0.3cm}{\ttfamily [private]}}
Input field for the scaling factor.
\Hypertarget{classPModSelect_adc3c96a727232003870b074be25cc534}\index{PModSelect@{PModSelect}!fScaleAutomatic@{fScaleAutomatic}}
\index{fScaleAutomatic@{fScaleAutomatic}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{fScaleAutomatic}{fScaleAutomatic}}
{\footnotesize\ttfamily \label{classPModSelect_adc3c96a727232003870b074be25cc534}
std\+::unique\+\_\+ptr$<$QPush\+Button$>$ PMod\+Select\+::f\+Scale\+Automatic\hspace{0.3cm}{\ttfamily [private]}}
Button to apply automatic scaling.
\Hypertarget{classPModSelect_a770306c9a3fe778195e401148a76214b}\index{PModSelect@{PModSelect}!fScaleByFactor@{fScaleByFactor}}
\index{fScaleByFactor@{fScaleByFactor}!PModSelect@{PModSelect}}
\doxysubsubsection{\texorpdfstring{fScaleByFactor}{fScaleByFactor}}
{\footnotesize\ttfamily \label{classPModSelect_a770306c9a3fe778195e401148a76214b}
std\+::unique\+\_\+ptr$<$QPush\+Button$>$ PMod\+Select\+::f\+Scale\+By\+Factor\hspace{0.3cm}{\ttfamily [private]}}
Button to apply factor scaling.
The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item
/workspace/\+LMU/musrfit/src/musredit\+\_\+qt6/musr\+Step/\mbox{\hyperlink{PMusrStep_8h}{PMusr\+Step.\+h}}\item
/workspace/\+LMU/musrfit/src/musredit\+\_\+qt6/musr\+Step/\mbox{\hyperlink{PMusrStep_8cpp}{PMusr\+Step.\+cpp}}\end{DoxyCompactItemize}