musredit 1.0.0
Loading...
Searching...
No Matches
PGetTheoryBlockDialog.h
Go to the documentation of this file.
1/****************************************************************************
2
3 PGetTheoryBlockDialog.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
47
48#ifndef _PGETTHEORYBLOCKDIALOG_H_
49#define _PGETTHEORYBLOCKDIALOG_H_
50
51#include "PAdmin.h"
52#include "ui_PGetTheoryBlockDialog.h"
53
54//---------------------------------------------------------------------------
91class PGetTheoryBlockDialog : public QDialog, private Ui::PGetTheoryBlockDialog
92{
93 Q_OBJECT
94
95 public:
113 PGetTheoryBlockDialog(PAdmin *admin = 0, const QString helpUrl = "");
114
130 QString getTheoryBlock() { return fTheoryBlock_plainTextEdit->toPlainText(); }
131
132 private slots:
150 QString getTheoFuncString();
151
171 void addPlus();
172
192 void addMultiply();
193
211 void helpContent();
212
213 private:
215 QString fHelpUrl;
216};
217
218#endif // _PGETTHEORYBLOCKDIALOG_H_
Administration and configuration management for musredit.
Central administration class for musredit configuration management.
Definition PAdmin.h:209
QString getTheoryBlock()
Returns the complete theory block text.
QString getTheoFuncString()
Generates the theory function string for the selected function.
void addPlus()
Adds the selected function followed by a '+' operator.
PAdmin * fAdmin
Pointer to the administration object for accessing theory function definitions.
QString fHelpUrl
URL to the online documentation for THEORY blocks.
void helpContent()
Opens the online help for THEORY blocks.
PGetTheoryBlockDialog(PAdmin *admin=0, const QString helpUrl="")
Constructs a dialog for creating THEORY blocks.
void addMultiply()
Adds the selected function (multiplication with next line).