musredit 1.0.0
Loading...
Searching...
No Matches
PPrefsDialog.h
Go to the documentation of this file.
1/****************************************************************************
2
3 PPrefsDialog.h
4
5 Author: Andreas Suter
6 e-mail: andreas.suter@psi.ch
7
8*****************************************************************************/
9
10/***************************************************************************
11 * Copyright (C) 2010-2026 by Andreas Suter *
12 * andreas.suter@psi.ch *
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program; if not, write to the *
26 * Free Software Foundation, Inc., *
27 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
28 ***************************************************************************/
29
47
48#ifndef _PPREFSDIALOG_H_
49#define _PPREFSDIALOG_H_
50
51#include <QCheckBox>
52
53#include <PAdmin.h>
54
55#include "ui_PPrefsDialog.h"
56
102class PPrefsDialog : public QDialog, private Ui::PPrefsDialog
103{
104 Q_OBJECT
105
106 public:
120 PPrefsDialog(PAdmin *admin);
121
130 bool getMusrviewShowFourierFlag() { return fFourier_checkBox->isChecked(); }
131
140 bool getMusrviewShowAvgFlag() { return fAvg_checkBox->isChecked(); }
141
150 bool getMusrviewShowOneToOneFlag() { return fOneToOne_checkBox->isChecked(); }
151
160 bool getKeepMinuit2OutputFlag() { return fKeepMn2Output_checkBox->isChecked(); }
161
170 bool getTitleFromDataFileFlag() { return fTitleFromData_checkBox->isChecked(); }
171
180 bool getEnableMusrT0Flag() { return fEnableMusrT0_checkBox->isChecked(); }
181
190 bool getKeepRunPerBlockChisqFlag() { return fPerRunBlockChisq_checkBox->isChecked(); }
191
200 bool getEstimateN0Flag() { return fEstimateN0_checkBox->isChecked(); }
201
210 bool getYamlOutFlag() { return fYamlOut_checkBox->isChecked(); }
211
220 bool getIgnoreThemeAutoDetection() { return fIgnoreThemeAutoDetection_checkBox->isChecked(); }
221
230 bool getDarkThemeIconsMenuFlag() { return fDarkThemeIconsMenu_checkBox->isChecked(); }
231
240 bool getDarkThemeIconsToolbarFlag() { return fDarkThemeIconsToolbar_checkBox->isChecked(); }
241
252 bool getOneToOneFlag() { return fOneToOne_checkBox->isChecked(); }
253
270 int getDump();
271
283 int getTimeout() { return fTimeout_lineEdit->text().toInt(); }
284
285 public slots:
296 void dumpAscii();
297
308 void dumpRoot();
309
319 void handleDefaultPaths();
320
326 void numberOfThreadsChanged(int idx);
327
328 private:
330};
331
332#endif // _PPREFSDIALOG_H_
Administration and configuration management for musredit.
Central administration class for musredit configuration management.
Definition PAdmin.h:209
int getTimeout()
Returns the fitting timeout preference.
PAdmin * fAdmin
Pointer to global administration object storing all preferences.
bool getEstimateN0Flag()
Returns the N0 estimation preference.
void dumpAscii()
Slot: Handles ASCII dump checkbox selection.
bool getMusrviewShowFourierFlag()
Returns the musrview Fourier display preference.
bool getMusrviewShowAvgFlag()
Returns the musrview average display preference.
bool getOneToOneFlag()
Returns the one-to-one plotting preference.
void dumpRoot()
Slot: Handles ROOT dump checkbox selection.
int getDump()
Returns the dump format preference.
bool getTitleFromDataFileFlag()
Returns the title-from-data-file preference.
void handleDefaultPaths()
Slot: Opens the default paths configuration dialog.
bool getMusrviewShowOneToOneFlag()
Returns the musrview one-to-one plotting preference.
bool getEnableMusrT0Flag()
Returns the musrT0 enablement preference.
bool getYamlOutFlag()
Returns the YAML output preference.
void numberOfThreadsChanged(int idx)
Slot: called when the current index of the number of threads to be used has changed.
PPrefsDialog(PAdmin *admin)
Constructs the preferences dialog.
bool getDarkThemeIconsToolbarFlag()
Returns the dark theme toolbar icons preference.
bool getDarkThemeIconsMenuFlag()
Returns the dark theme menu icons preference.
bool getIgnoreThemeAutoDetection()
Returns the theme auto-detection override preference.
bool getKeepRunPerBlockChisqFlag()
Returns the per-run chi-square preference.
bool getKeepMinuit2OutputFlag()
Returns the MINUIT2 output preservation preference.