musredit 1.0.0
Loading...
Searching...
No Matches
PGetMusrFTOptionsDialog.h
Go to the documentation of this file.
1/****************************************************************************
2
3 PGetMusrFTOptionsDialog.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
45
46#ifndef _PGETMUSRFTOPTIONSDIALOG_H_
47#define _PGETMUSRFTOPTIONSDIALOG_H_
48
49#include <QDialog>
50#include <QStringList>
51
52#include "ui_PGetMusrFTOptionsDialog.h"
53
54//---------------------------------------------------------------------------
102class PGetMusrFTOptionsDialog : public QDialog, private Ui::PGetMusrFTOptionsDialog
103{
104 Q_OBJECT
105
106 public:
107 PGetMusrFTOptionsDialog(QString currentMsrFile, QStringList &prevCmd, const QString helpUrl);
108
114 QStringList getMusrFTOptions();
115
116 public slots:
120 void helpContent();
121
122 private slots:
127 void currentMsrFileTagChanged(int state);
128 void allMsrFileTagChanged(int state);
129 void selectMsrFileNames();
130 void clearMsrFileNames();
131 void selectDataFileNames();
132 void clearDataFileNames();
133 void createMsrFileChanged(int state);
135
140 void averagedAll(int state);
141 void averagedPerDataSet(int state);
143
147 void resetAll();
148
149 private:
154 QStringList fMsrFilePaths;
155 QStringList fMsrFileNames;
156 QStringList fDataFilePaths;
157 QStringList fDataFileNames;
159
162 QString fHelpUrl;
163};
164
165#endif // _PGETMUSRFTOPTIONSDIALOG_H_
void clearMsrFileNames()
Clears the msr-file selection.
QString fCurrentMsrFileName
Full path-name of the currently active msr-file in musredit.
QString fCreateMsrFileName
Full path-name for msr-file creation output.
QString fHelpUrl
URL to the online documentation for musrFT.
void resetAll()
Resets all dialog options to their default values.
void clearDataFileNames()
Clears the data file selection.
void selectDataFileNames()
Opens file dialog to select data files.
QStringList fDataFileNames
File names (without path) for selected data files.
QStringList fMsrFilePaths
Directory paths for selected msr-files.
QStringList fDataFilePaths
Directory paths for selected data files.
QStringList fMsrFileNames
File names (without path) for selected msr-files.
void averagedPerDataSet(int state)
Handles average-per-dataset checkbox (mutually exclusive with all).
void helpContent()
Opens the online help for musrFT.
PGetMusrFTOptionsDialog(QString currentMsrFile, QStringList &prevCmd, const QString helpUrl)
Constructs the musrFT options dialog.
void averagedAll(int state)
Handles average-all checkbox (mutually exclusive with per-dataset).
void createMsrFileChanged(int state)
Handles create msr-file checkbox state change.
void allMsrFileTagChanged(int state)
Handles all msr-files checkbox state change.
void currentMsrFileTagChanged(int state)
Handles current msr-file checkbox state change.
QStringList getMusrFTOptions()
Builds and returns the musrFT command-line options.
void selectMsrFileNames()
Opens file dialog to select msr-files.