musredit 1.0.0
Loading...
Searching...
No Matches
PGetParameterBlockDialog.h
Go to the documentation of this file.
1/****************************************************************************
2
3 PGetParameterBlockDialog.h
4
5 Author: Andreas Suter
6 e-mail: andreas.suter@psi.ch
7
8*****************************************************************************/
9
10/***************************************************************************
11 * Copyright (C) 2009-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
46
47#ifndef _PGETPARAMETERBLOCKDIALOG_H_
48#define _PGETPARAMETERBLOCKDIALOG_H_
49
50#include "ui_PGetParameterBlockDialog.h"
51
52//---------------------------------------------------------------------------
87class PGetParameterBlockDialog : public QDialog, private Ui::PGetParameterBlockDialog
88{
89 Q_OBJECT
90
91 public:
92 PGetParameterBlockDialog(const QString helpUrl);
93
99 QString getParams() { return fParam_plainTextEdit->toPlainText(); }
100
101 protected:
110 bool eventFilter( QObject *obj, QEvent *ev );
111
112 private slots:
116 void paramAdd();
117
121 void helpContent();
122
123 private:
124 QString fHelpUrl;
125};
126
127#endif // _PGETPARAMETERBLOCKDIALOG_H_
void helpContent()
Opens the online help for FITPARAMETER blocks.
bool eventFilter(QObject *obj, QEvent *ev)
Event filter to handle keyboard shortcuts.
QString fHelpUrl
URL to the online documentation for FITPARAMETER blocks.
PGetParameterBlockDialog(const QString helpUrl)
Constructs the FITPARAMETER block dialog.
void paramAdd()
Validates and adds a parameter to the FITPARAMETER block.
QString getParams()
Returns all entered parameters as formatted text.