first version of a help sub-layer for musredit added
@ -34,15 +34,16 @@
|
|||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
|
|
||||||
#include "PGetAsymmetryRunBlockDialog.h"
|
#include "PGetAsymmetryRunBlockDialog.h"
|
||||||
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetAsymmetryRunBlockDialog::PGetAsymmetryRunBlockDialog(const QString help, QWidget *parent, Qt::WindowFlags f) :
|
PGetAsymmetryRunBlockDialog::PGetAsymmetryRunBlockDialog(const QString helpUrl) : fHelpUrl(helpUrl)
|
||||||
QDialog(parent, f),
|
|
||||||
fHelp(help)
|
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -261,8 +262,12 @@ QString PGetAsymmetryRunBlockDialog::getPacking(bool &present)
|
|||||||
*/
|
*/
|
||||||
void PGetAsymmetryRunBlockDialog::helpContent()
|
void PGetAsymmetryRunBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "helpContents",
|
if (fHelpUrl.isEmpty()) {
|
||||||
fHelp, QMessageBox::Ok);
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -39,7 +39,7 @@ class PGetAsymmetryRunBlockDialog : public QDialog, private Ui::PGetAsymmetryRun
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetAsymmetryRunBlockDialog(const QString help = "", QWidget * parent = 0, Qt::WindowFlags f = 0);
|
PGetAsymmetryRunBlockDialog(const QString helpUrl);
|
||||||
|
|
||||||
QString getRunHeaderInfo();
|
QString getRunHeaderInfo();
|
||||||
QString getAlphaParameter(bool &present);
|
QString getAlphaParameter(bool &present);
|
||||||
@ -53,11 +53,11 @@ class PGetAsymmetryRunBlockDialog : public QDialog, private Ui::PGetAsymmetryRun
|
|||||||
QString getFitRange(bool &valid);
|
QString getFitRange(bool &valid);
|
||||||
QString getPacking(bool &present);
|
QString getPacking(bool &present);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void helpContent();
|
void helpContent();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString fHelp;
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETASYMMETRYRUNBLOCKDIALOG_H_
|
#endif // _PGETASYMMETRYRUNBLOCKDIALOG_H_
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
|
|
||||||
#include "PGetDefaultDialog.h"
|
#include "PGetDefaultDialog.h"
|
||||||
|
|
||||||
#define INSTITUTE_PSI 0
|
#define INSTITUTE_PSI 0
|
||||||
@ -54,8 +56,7 @@
|
|||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetDefaultDialog::PGetDefaultDialog(QWidget *parent, Qt::WindowFlags f) :
|
PGetDefaultDialog::PGetDefaultDialog()
|
||||||
QDialog(parent, f)
|
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -100,7 +101,9 @@ void PGetDefaultDialog::setFileFormat(const QString &str)
|
|||||||
*/
|
*/
|
||||||
void PGetDefaultDialog::helpContent()
|
void PGetDefaultDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "Help", "will eventually show help information.");
|
PHelp *help = new PHelp("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_5_The_RUN_Block");
|
||||||
|
|
||||||
|
help->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@ -44,7 +44,7 @@ class PGetDefaultDialog : public QDialog, private Ui::PGetDefaultDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetDefaultDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
PGetDefaultDialog();
|
||||||
virtual ~PGetDefaultDialog() {}
|
virtual ~PGetDefaultDialog() {}
|
||||||
|
|
||||||
virtual const QString getRunFileName() const { return fRunFileName_lineEdit->text(); }
|
virtual const QString getRunFileName() const { return fRunFileName_lineEdit->text(); }
|
||||||
|
@ -36,13 +36,15 @@
|
|||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
|
|
||||||
#include "PGetFourierBlockDialog.h"
|
#include "PGetFourierBlockDialog.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetFourierBlockDialog::PGetFourierBlockDialog()
|
PGetFourierBlockDialog::PGetFourierBlockDialog(const QString helpUrl) : fHelpUrl(helpUrl)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -127,7 +129,12 @@ void PGetFourierBlockDialog::fillFourierBlock()
|
|||||||
*/
|
*/
|
||||||
void PGetFourierBlockDialog::helpContent()
|
void PGetFourierBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "**HELP**", "Will eventually show a help.");
|
if (fHelpUrl.isEmpty()) {
|
||||||
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -41,7 +41,7 @@ class PGetFourierBlockDialog : public QDialog, private Ui::PGetFourierBlockDialo
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetFourierBlockDialog();
|
PGetFourierBlockDialog(const QString helpUrl);
|
||||||
|
|
||||||
QString getFourierBlock() { return fFourierBlock; }
|
QString getFourierBlock() { return fFourierBlock; }
|
||||||
|
|
||||||
@ -52,6 +52,7 @@ class PGetFourierBlockDialog : public QDialog, private Ui::PGetFourierBlockDialo
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QString fFourierBlock;
|
QString fFourierBlock;
|
||||||
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETFOURIERBLOCKDIALOG_H_
|
#endif // _PGETFOURIERBLOCKDIALOG_H_
|
||||||
|
@ -37,14 +37,15 @@
|
|||||||
|
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
|
|
||||||
#include "PGetFunctionsBlockDialog.h"
|
#include "PGetFunctionsBlockDialog.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetFunctionsBlockDialog::PGetFunctionsBlockDialog(const QString help, QWidget *parent, Qt::WindowFlags f) :
|
PGetFunctionsBlockDialog::PGetFunctionsBlockDialog(const QString helpUrl) : fHelpUrl(helpUrl)
|
||||||
QDialog(parent, f), fHelp(help)
|
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -103,8 +104,12 @@ void PGetFunctionsBlockDialog::addFunction()
|
|||||||
*/
|
*/
|
||||||
void PGetFunctionsBlockDialog::helpContent()
|
void PGetFunctionsBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "helpContents",
|
if (fHelpUrl.isEmpty()) {
|
||||||
fHelp, QMessageBox::Ok);
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -39,7 +39,7 @@ class PGetFunctionsBlockDialog : public QDialog, private Ui::PGetFunctionsBlockD
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetFunctionsBlockDialog(const QString help = "", QWidget * parent = 0, Qt::WindowFlags f = 0);
|
PGetFunctionsBlockDialog(const QString helpUrl = "");
|
||||||
|
|
||||||
QString getFunctionsBlock() { return fFunctionBlock_plainTextEdit->toPlainText(); }
|
QString getFunctionsBlock() { return fFunctionBlock_plainTextEdit->toPlainText(); }
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ class PGetFunctionsBlockDialog : public QDialog, private Ui::PGetFunctionsBlockD
|
|||||||
void helpContent();
|
void helpContent();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString fHelp;
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETFUNCTIONSBLOCKDIALOG_H_
|
#endif // _PGETFUNCTIONSBLOCKDIALOG_H_
|
||||||
|
@ -34,15 +34,14 @@
|
|||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
#include "PGetNonMusrRunBlockDialog.h"
|
#include "PGetNonMusrRunBlockDialog.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetNonMusrRunBlockDialog::PGetNonMusrRunBlockDialog(const QString help, QWidget *parent, Qt::WindowFlags f) :
|
PGetNonMusrRunBlockDialog::PGetNonMusrRunBlockDialog(const QString helpUrl) : fHelpUrl(helpUrl)
|
||||||
QDialog(parent, f),
|
|
||||||
fHelp(help)
|
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -147,8 +146,12 @@ QString PGetNonMusrRunBlockDialog::getFitRange(bool &valid)
|
|||||||
*/
|
*/
|
||||||
void PGetNonMusrRunBlockDialog::helpContent()
|
void PGetNonMusrRunBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "helpContent",
|
if (fHelpUrl.isEmpty()) {
|
||||||
fHelp, QMessageBox::Ok);
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -39,7 +39,7 @@ class PGetNonMusrRunBlockDialog : public QDialog, private Ui::PGetNonMusrRunBloc
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetNonMusrRunBlockDialog(const QString help = "", QWidget * parent = 0, Qt::WindowFlags f = 0);
|
PGetNonMusrRunBlockDialog(const QString helpUrl = "");
|
||||||
|
|
||||||
QString getRunHeaderInfo();
|
QString getRunHeaderInfo();
|
||||||
QString getMap(bool &valid);
|
QString getMap(bool &valid);
|
||||||
@ -50,7 +50,7 @@ class PGetNonMusrRunBlockDialog : public QDialog, private Ui::PGetNonMusrRunBloc
|
|||||||
void helpContent();
|
void helpContent();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString fHelp;
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETNONMUSRRUNBLOCKDIALOG_H_
|
#endif // _PGETNONMUSRRUNBLOCKDIALOG_H_
|
||||||
|
@ -37,13 +37,14 @@
|
|||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
#include "PGetParameterBlockDialog.h"
|
#include "PGetParameterBlockDialog.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetParameterBlockDialog::PGetParameterBlockDialog()
|
PGetParameterBlockDialog::PGetParameterBlockDialog(const QString helpUrl) : fHelpUrl(helpUrl)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -212,7 +213,12 @@ void PGetParameterBlockDialog::paramAdd()
|
|||||||
*/
|
*/
|
||||||
void PGetParameterBlockDialog::helpContent()
|
void PGetParameterBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
if (fHelpUrl.isEmpty()) {
|
||||||
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -39,7 +39,7 @@ class PGetParameterBlockDialog : public QDialog, private Ui::PGetParameterBlockD
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetParameterBlockDialog();
|
PGetParameterBlockDialog(const QString helpUrl);
|
||||||
|
|
||||||
QString getParams() { return fParam_plainTextEdit->toPlainText(); }
|
QString getParams() { return fParam_plainTextEdit->toPlainText(); }
|
||||||
|
|
||||||
@ -49,6 +49,9 @@ class PGetParameterBlockDialog : public QDialog, private Ui::PGetParameterBlockD
|
|||||||
private slots:
|
private slots:
|
||||||
void paramAdd();
|
void paramAdd();
|
||||||
void helpContent();
|
void helpContent();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETPARAMETERBLOCKDIALOG_H_
|
#endif // _PGETPARAMETERBLOCKDIALOG_H_
|
||||||
|
@ -36,13 +36,14 @@
|
|||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
#include "PGetPlotBlockDialog.h"
|
#include "PGetPlotBlockDialog.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetPlotBlockDialog::PGetPlotBlockDialog()
|
PGetPlotBlockDialog::PGetPlotBlockDialog(const QString helpUrl) : fHelpUrl(helpUrl)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -155,8 +156,12 @@ void PGetPlotBlockDialog::addPlot()
|
|||||||
*/
|
*/
|
||||||
void PGetPlotBlockDialog::helpContent()
|
void PGetPlotBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "helpContents",
|
if (fHelpUrl.isEmpty()) {
|
||||||
"Will eventually show a help", QMessageBox::Ok);
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -39,7 +39,7 @@ class PGetPlotBlockDialog : public QDialog, private Ui::PGetPlotBlockDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetPlotBlockDialog();
|
PGetPlotBlockDialog(const QString helpUrl);
|
||||||
|
|
||||||
QString getPlotBlock() { return fPlot_plainTextEdit->toPlainText(); }
|
QString getPlotBlock() { return fPlot_plainTextEdit->toPlainText(); }
|
||||||
|
|
||||||
@ -49,6 +49,9 @@ class PGetPlotBlockDialog : public QDialog, private Ui::PGetPlotBlockDialog
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter( QObject *obj, QEvent *ev );
|
bool eventFilter( QObject *obj, QEvent *ev );
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETPLOTBLOCKDIALOG_H_
|
#endif // _PGETPLOTBLOCKDIALOG_H_
|
||||||
|
@ -35,18 +35,15 @@
|
|||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
#include "PGetSingleHistoRunBlockDialog.h"
|
#include "PGetSingleHistoRunBlockDialog.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetSingleHistoRunBlockDialog::PGetSingleHistoRunBlockDialog(const QString help,
|
PGetSingleHistoRunBlockDialog::PGetSingleHistoRunBlockDialog(const QString helpUrl,
|
||||||
const bool lifetimeCorrection,
|
const bool lifetimeCorrection) : fHelpUrl(helpUrl)
|
||||||
QWidget * parent,
|
|
||||||
Qt::WindowFlags f) :
|
|
||||||
QDialog(parent, f),
|
|
||||||
fHelp(help)
|
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -262,8 +259,12 @@ QString PGetSingleHistoRunBlockDialog::getLifetimeCorrection(bool &present)
|
|||||||
*/
|
*/
|
||||||
void PGetSingleHistoRunBlockDialog::helpContent()
|
void PGetSingleHistoRunBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "helpContents",
|
if (fHelpUrl.isEmpty()) {
|
||||||
fHelp, QMessageBox::Ok);
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -42,8 +42,7 @@ class PGetSingleHistoRunBlockDialog : public QDialog, private Ui::PGetSingleHist
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetSingleHistoRunBlockDialog(const QString help = "", const bool lifetimeCorrection = true,
|
PGetSingleHistoRunBlockDialog(const QString helpUrl = "", const bool lifetimeCorrection = true);
|
||||||
QWidget * parent = 0, Qt::WindowFlags f = 0);
|
|
||||||
|
|
||||||
QString getRunHeaderInfo();
|
QString getRunHeaderInfo();
|
||||||
QString getMap(bool &valid);
|
QString getMap(bool &valid);
|
||||||
@ -61,7 +60,7 @@ class PGetSingleHistoRunBlockDialog : public QDialog, private Ui::PGetSingleHist
|
|||||||
void helpContent();
|
void helpContent();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString fHelp;
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETSINGLEHISTORUNBLOCKDIALOG_H_
|
#endif // _PGETSINGLEHISTORUNBLOCKDIALOG_H_
|
||||||
|
@ -37,30 +37,32 @@
|
|||||||
|
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
|
|
||||||
|
#include "PHelp.h"
|
||||||
#include "PGetTheoryBlockDialog.h"
|
#include "PGetTheoryBlockDialog.h"
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetTheoryBlockDialog::PGetTheoryBlockDialog(PAdmin *admin, QWidget * parent, Qt::WindowFlags f) :
|
PGetTheoryBlockDialog::PGetTheoryBlockDialog(PAdmin *admin, const QString helpUrl) :
|
||||||
QDialog(parent, f),
|
fAdmin(admin),
|
||||||
fAdmin(admin)
|
fHelpUrl(helpUrl)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
setModal(true);
|
setModal(true);
|
||||||
|
|
||||||
// feed theory function combo box
|
// feed theory function combo box
|
||||||
|
fTheoryFunction_comboBox->setIconSize(QSize(250, 20));
|
||||||
PTheory *theoItem;
|
PTheory *theoItem;
|
||||||
QIcon icon;
|
QIcon *icon;
|
||||||
QString iconName;
|
QString iconName;
|
||||||
for (unsigned int i=0; i<fAdmin->getTheoryCounts(); i++) {
|
for (unsigned int i=0; i<fAdmin->getTheoryCounts(); i++) {
|
||||||
theoItem = fAdmin->getTheoryItem(i);
|
theoItem = fAdmin->getTheoryItem(i);
|
||||||
if (theoItem->pixmapName.length() > 0) {
|
if (theoItem->pixmapName.length() > 0) {
|
||||||
iconName = QString(":/latex_images/") + theoItem->pixmapName;
|
iconName = QString(":/latex_images/") + theoItem->pixmapName;
|
||||||
icon.addPixmap(QPixmap(iconName));
|
icon = new QIcon(QPixmap(iconName));
|
||||||
fTheoryFunction_comboBox->insertItem(i, icon, theoItem->label);
|
fTheoryFunction_comboBox->insertItem(i, *icon, theoItem->label);
|
||||||
} else {
|
} else {
|
||||||
fTheoryFunction_comboBox->insertItem(i, theoItem->label);
|
fTheoryFunction_comboBox->insertItem(i, theoItem->label);
|
||||||
}
|
}
|
||||||
@ -120,8 +122,12 @@ void PGetTheoryBlockDialog::addMultiply()
|
|||||||
*/
|
*/
|
||||||
void PGetTheoryBlockDialog::helpContent()
|
void PGetTheoryBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, "helpContents",
|
if (fHelpUrl.isEmpty()) {
|
||||||
fAdmin->getHelpMain(), QMessageBox::Ok);
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -40,7 +40,7 @@ class PGetTheoryBlockDialog : public QDialog, private Ui::PGetTheoryBlockDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetTheoryBlockDialog(PAdmin *admin = 0, QWidget * parent = 0, Qt::WindowFlags f = 0);
|
PGetTheoryBlockDialog(PAdmin *admin = 0, const QString helpUrl = "");
|
||||||
|
|
||||||
QString getTheoryBlock() { return fTheoryBlock_plainTextEdit->toPlainText(); }
|
QString getTheoryBlock() { return fTheoryBlock_plainTextEdit->toPlainText(); }
|
||||||
|
|
||||||
@ -52,6 +52,7 @@ class PGetTheoryBlockDialog : public QDialog, private Ui::PGetTheoryBlockDialog
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
PAdmin *fAdmin;
|
PAdmin *fAdmin;
|
||||||
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETTHEORYBLOCKDIALOG_H_
|
#endif // _PGETTHEORYBLOCKDIALOG_H_
|
||||||
|
@ -31,14 +31,14 @@
|
|||||||
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
#include "PGetTitleBlockDialog.h"
|
|
||||||
#include "PHelp.h"
|
#include "PHelp.h"
|
||||||
|
#include "PGetTitleBlockDialog.h"
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*/
|
*/
|
||||||
PGetTitleBlockDialog::PGetTitleBlockDialog(QWidget *parent, Qt::WindowFlags f) : QDialog(parent, f)
|
PGetTitleBlockDialog::PGetTitleBlockDialog(const QString helpUrl) : fHelpUrl(helpUrl)
|
||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
@ -51,8 +51,12 @@ PGetTitleBlockDialog::PGetTitleBlockDialog(QWidget *parent, Qt::WindowFlags f) :
|
|||||||
*/
|
*/
|
||||||
void PGetTitleBlockDialog::helpContent()
|
void PGetTitleBlockDialog::helpContent()
|
||||||
{
|
{
|
||||||
PHelp *help = new PHelp("http://lmu.web.psi.ch/musrfit/title.html");
|
if (fHelpUrl.isEmpty()) {
|
||||||
//help->show();
|
QMessageBox::information(this, "**INFO**", "Will eventually show a help window");
|
||||||
|
} else {
|
||||||
|
PHelp *help = new PHelp(fHelpUrl);
|
||||||
|
help->show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@ -40,7 +40,7 @@ class PGetTitleBlockDialog : public QDialog, private Ui::PGetTitleBlockDialog
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PGetTitleBlockDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
|
PGetTitleBlockDialog(const QString helpUrl);
|
||||||
virtual ~PGetTitleBlockDialog() {}
|
virtual ~PGetTitleBlockDialog() {}
|
||||||
|
|
||||||
QString getTitle() { return fTitle_lineEdit->text(); }
|
QString getTitle() { return fTitle_lineEdit->text(); }
|
||||||
@ -48,6 +48,8 @@ class PGetTitleBlockDialog : public QDialog, private Ui::PGetTitleBlockDialog
|
|||||||
private slots:
|
private slots:
|
||||||
void helpContent();
|
void helpContent();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString fHelpUrl;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PGETTITLEBLOCKDIALOG_H_
|
#endif // _PGETTITLEBLOCKDIALOG_H_
|
||||||
|
@ -29,7 +29,8 @@
|
|||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#include <QMessageBox>
|
#include <QtGui>
|
||||||
|
#include <QtWebKit>
|
||||||
|
|
||||||
#include "PHelp.h"
|
#include "PHelp.h"
|
||||||
|
|
||||||
@ -39,8 +40,33 @@
|
|||||||
*/
|
*/
|
||||||
PHelp::PHelp(const QString &url)
|
PHelp::PHelp(const QString &url)
|
||||||
{
|
{
|
||||||
QString str = "Will eventually show the url:\n" + url;
|
fProgress = 0;
|
||||||
QMessageBox::information(this, "**HELP**", str);
|
|
||||||
|
QNetworkProxyFactory::setUseSystemConfiguration(true);
|
||||||
|
|
||||||
|
fView = new QWebView(this);
|
||||||
|
fView->load(QUrl(url));
|
||||||
|
connect(fView, SIGNAL(loadFinished(bool)), SLOT(adjustLocation()));
|
||||||
|
connect(fView, SIGNAL(titleChanged(QString)), SLOT(adjustTitle()));
|
||||||
|
connect(fView, SIGNAL(loadProgress(int)), SLOT(setProgress(int)));
|
||||||
|
connect(fView, SIGNAL(loadFinished(bool)), SLOT(finishLoading(bool)));
|
||||||
|
|
||||||
|
fLocationEdit = new QLineEdit(this);
|
||||||
|
fLocationEdit->setSizePolicy(QSizePolicy::Expanding, fLocationEdit->sizePolicy().verticalPolicy());
|
||||||
|
connect(fLocationEdit, SIGNAL(returnPressed()), SLOT(changeLocation()));
|
||||||
|
|
||||||
|
QToolBar *toolBar = addToolBar(tr("Navigation"));
|
||||||
|
toolBar->addAction(fView->pageAction(QWebPage::Back));
|
||||||
|
toolBar->addAction(fView->pageAction(QWebPage::Forward));
|
||||||
|
toolBar->addAction(fView->pageAction(QWebPage::Reload));
|
||||||
|
toolBar->addAction(fView->pageAction(QWebPage::Stop));
|
||||||
|
toolBar->addWidget(fLocationEdit);
|
||||||
|
|
||||||
|
QMenu *exitMenu = menuBar()->addMenu(tr("&File"));
|
||||||
|
exitMenu->addAction("&Exit", this, SLOT(done()), QKeySequence(tr("Ctrl+Q")));
|
||||||
|
|
||||||
|
setCentralWidget(fView);
|
||||||
|
setUnifiedTitleAndToolBarOnMac(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
@ -49,6 +75,76 @@ PHelp::PHelp(const QString &url)
|
|||||||
*/
|
*/
|
||||||
PHelp::~PHelp()
|
PHelp::~PHelp()
|
||||||
{
|
{
|
||||||
|
if (fView) {
|
||||||
|
delete fView;
|
||||||
|
fView = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fLocationEdit) {
|
||||||
|
delete fLocationEdit;
|
||||||
|
fLocationEdit = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*/
|
||||||
|
void PHelp::done()
|
||||||
|
{
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*/
|
||||||
|
void PHelp::adjustLocation()
|
||||||
|
{
|
||||||
|
fLocationEdit->setText(fView->url().toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*/
|
||||||
|
void PHelp::changeLocation()
|
||||||
|
{
|
||||||
|
QUrl url = QUrl(fLocationEdit->text());
|
||||||
|
fView->load(url);
|
||||||
|
fView->setFocus();
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*/
|
||||||
|
void PHelp::adjustTitle()
|
||||||
|
{
|
||||||
|
if (fProgress <= 0 || fProgress >= 100)
|
||||||
|
setWindowTitle(fView->title());
|
||||||
|
else
|
||||||
|
setWindowTitle(QString("%1 (%2%)").arg(fView->title()).arg(fProgress));
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*/
|
||||||
|
void PHelp::setProgress(int p)
|
||||||
|
{
|
||||||
|
fProgress = p;
|
||||||
|
adjustTitle();
|
||||||
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*/
|
||||||
|
void PHelp::finishLoading(bool)
|
||||||
|
{
|
||||||
|
fProgress = 100;
|
||||||
|
adjustTitle();
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
@ -32,16 +32,33 @@
|
|||||||
#ifndef _PHELP_H_
|
#ifndef _PHELP_H_
|
||||||
#define _PHELP_H_
|
#define _PHELP_H_
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QtGui>
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
class PHelp : public QDialog
|
class QWebView;
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
class QLineEdit;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
class PHelp : public QMainWindow
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PHelp(const QString &url);
|
PHelp(const QString &url);
|
||||||
virtual ~PHelp();
|
virtual ~PHelp();
|
||||||
|
|
||||||
|
protected slots:
|
||||||
|
void done();
|
||||||
|
void adjustLocation();
|
||||||
|
void changeLocation();
|
||||||
|
void adjustTitle();
|
||||||
|
void setProgress(int p);
|
||||||
|
void finishLoading(bool);
|
||||||
|
|
||||||
|
private:
|
||||||
|
QWebView *fView;
|
||||||
|
QLineEdit *fLocationEdit;
|
||||||
|
int fProgress;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _PHELP_H_
|
#endif // _PHELP_H_
|
||||||
|
@ -150,7 +150,8 @@ QMenu* PSubTextEdit::createPopupMenu(const QPoint &pos)
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertTitle()
|
void PSubTextEdit::insertTitle()
|
||||||
{
|
{
|
||||||
PGetTitleBlockDialog *dlg = new PGetTitleBlockDialog();
|
// for the time being the url's are hard coded but should be transfered to the XML startup
|
||||||
|
PGetTitleBlockDialog *dlg = new PGetTitleBlockDialog("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_1_The_Title");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
@ -169,7 +170,8 @@ void PSubTextEdit::insertTitle()
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertParameterBlock()
|
void PSubTextEdit::insertParameterBlock()
|
||||||
{
|
{
|
||||||
PGetParameterBlockDialog *dlg = new PGetParameterBlockDialog();
|
// for the time being the url's are hard coded but should be transfered to the XML startup
|
||||||
|
PGetParameterBlockDialog *dlg = new PGetParameterBlockDialog("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_2_The_FITPARAMETER_Block");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
@ -226,7 +228,8 @@ void PSubTextEdit::insertTheoryFunction(int idx)
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertTheoryBlock()
|
void PSubTextEdit::insertTheoryBlock()
|
||||||
{
|
{
|
||||||
PGetTheoryBlockDialog *dlg = new PGetTheoryBlockDialog(fAdmin);
|
// for the time being the url's are hard coded but should be transfered to the XML startup
|
||||||
|
PGetTheoryBlockDialog *dlg = new PGetTheoryBlockDialog(fAdmin, "https://wiki.intranet.psi.ch/MUSR/MusrFit#4_3_The_THEORY_Block");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
@ -245,7 +248,8 @@ void PSubTextEdit::insertTheoryBlock()
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertFunctionBlock()
|
void PSubTextEdit::insertFunctionBlock()
|
||||||
{
|
{
|
||||||
PGetFunctionsBlockDialog *dlg = new PGetFunctionsBlockDialog(fAdmin->getHelpMain());
|
// for the time being the url's are hard coded but should be transfered to the XML startup
|
||||||
|
PGetFunctionsBlockDialog *dlg = new PGetFunctionsBlockDialog("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_4_The_FUNCTIONS_Block");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
@ -264,7 +268,8 @@ void PSubTextEdit::insertFunctionBlock()
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertAsymRunBlock()
|
void PSubTextEdit::insertAsymRunBlock()
|
||||||
{
|
{
|
||||||
PGetAsymmetryRunBlockDialog *dlg = new PGetAsymmetryRunBlockDialog(fAdmin->getHelpMain());
|
// for the time being the url's are hard coded but should be transfered to the XML startup
|
||||||
|
PGetAsymmetryRunBlockDialog *dlg = new PGetAsymmetryRunBlockDialog("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_5_The_RUN_Block");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
@ -370,7 +375,8 @@ void PSubTextEdit::insertAsymRunBlock()
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertSingleHistRunBlock()
|
void PSubTextEdit::insertSingleHistRunBlock()
|
||||||
{
|
{
|
||||||
PGetSingleHistoRunBlockDialog *dlg = new PGetSingleHistoRunBlockDialog(fAdmin->getHelpMain());
|
// for the time being the url's are hard coded but should be transfered to the XML startup
|
||||||
|
PGetSingleHistoRunBlockDialog *dlg = new PGetSingleHistoRunBlockDialog("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_5_The_RUN_Block");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
@ -476,7 +482,7 @@ void PSubTextEdit::insertSingleHistRunBlock()
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertNonMusrRunBlock()
|
void PSubTextEdit::insertNonMusrRunBlock()
|
||||||
{
|
{
|
||||||
PGetNonMusrRunBlockDialog *dlg = new PGetNonMusrRunBlockDialog(fAdmin->getHelpMain());
|
PGetNonMusrRunBlockDialog *dlg = new PGetNonMusrRunBlockDialog("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_5_The_RUN_Block");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
@ -555,7 +561,8 @@ void PSubTextEdit::insertCommandBlock()
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertFourierBlock()
|
void PSubTextEdit::insertFourierBlock()
|
||||||
{
|
{
|
||||||
PGetFourierBlockDialog *dlg = new PGetFourierBlockDialog();
|
// for the time being the url's are hard coded but should be transfered to the XML startup
|
||||||
|
PGetFourierBlockDialog *dlg = new PGetFourierBlockDialog("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_7_The_FOURIER_Block");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
@ -573,7 +580,8 @@ void PSubTextEdit::insertFourierBlock()
|
|||||||
*/
|
*/
|
||||||
void PSubTextEdit::insertPlotBlock()
|
void PSubTextEdit::insertPlotBlock()
|
||||||
{
|
{
|
||||||
PGetPlotBlockDialog *dlg = new PGetPlotBlockDialog();
|
// for the time being the url's are hard coded but should be transfered to the XML startup
|
||||||
|
PGetPlotBlockDialog *dlg = new PGetPlotBlockDialog("https://wiki.intranet.psi.ch/MUSR/MusrFit#4_8_The_PLOT_Block");
|
||||||
|
|
||||||
if (dlg == 0)
|
if (dlg == 0)
|
||||||
return;
|
return;
|
||||||
|
@ -61,6 +61,7 @@ using namespace std;
|
|||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
|
|
||||||
#include "PTextEdit.h"
|
#include "PTextEdit.h"
|
||||||
|
#include "PHelp.h"
|
||||||
#include "PSubTextEdit.h"
|
#include "PSubTextEdit.h"
|
||||||
#include "PAdmin.h"
|
#include "PAdmin.h"
|
||||||
#include "PFindDialog.h"
|
#include "PFindDialog.h"
|
||||||
@ -2097,9 +2098,9 @@ void PTextEdit::musrSwapMsrMlog()
|
|||||||
*/
|
*/
|
||||||
void PTextEdit::helpContents()
|
void PTextEdit::helpContents()
|
||||||
{
|
{
|
||||||
QMessageBox::information( this, "helpContents",
|
PHelp *help = new PHelp("https://wiki.intranet.psi.ch/MUSR/WebHome");
|
||||||
fAdmin->getHelpMain(),
|
|
||||||
QMessageBox::Ok );
|
help->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>446</width>
|
<width>462</width>
|
||||||
<height>503</height>
|
<height>506</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<widget class="QGroupBox" name="fRunHeaderInfo_groupBox">
|
<widget class="QGroupBox" name="fRunHeaderInfo_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>441</width>
|
<width>441</width>
|
||||||
<height>121</height>
|
<height>121</height>
|
||||||
@ -193,7 +193,7 @@
|
|||||||
<widget class="QGroupBox" name="fRequiredEntries_groupBox">
|
<widget class="QGroupBox" name="fRequiredEntries_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>120</y>
|
<y>120</y>
|
||||||
<width>441</width>
|
<width>441</width>
|
||||||
<height>241</height>
|
<height>241</height>
|
||||||
@ -495,7 +495,7 @@
|
|||||||
<widget class="QGroupBox" name="fOptionalEntries_groupBox">
|
<widget class="QGroupBox" name="fOptionalEntries_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>360</y>
|
<y>360</y>
|
||||||
<width>441</width>
|
<width>441</width>
|
||||||
<height>91</height>
|
<height>91</height>
|
||||||
@ -593,10 +593,10 @@
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>460</y>
|
<y>460</y>
|
||||||
<width>441</width>
|
<width>441</width>
|
||||||
<height>36</height>
|
<height>39</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PGetDefaultDialog</class>
|
<class>PGetDefaultDialog</class>
|
||||||
<widget class="QDialog" name="PGetDefaultDialog">
|
<widget class="QDialog" name="PGetDefaultDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::WindowModal</enum>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
@ -23,7 +26,7 @@
|
|||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>130</y>
|
<y>130</y>
|
||||||
<width>381</width>
|
<width>381</width>
|
||||||
<height>25</height>
|
<height>27</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
@ -66,13 +69,13 @@
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>12</x>
|
||||||
<y>10</y>
|
<y>12</y>
|
||||||
<width>381</width>
|
<width>84</width>
|
||||||
<height>22</height>
|
<height>111</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="fRunFileName_label">
|
<widget class="QLabel" name="fRunFileName_label">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@ -80,21 +83,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="fRunFileName_lineEdit"/>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="layoutWidget">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>10</x>
|
|
||||||
<y>40</y>
|
|
||||||
<width>381</width>
|
|
||||||
<height>22</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="fBeamline_label">
|
<widget class="QLabel" name="fBeamline_label">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@ -108,21 +96,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="fBeamline_lineEdit"/>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="layoutWidget">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>10</x>
|
|
||||||
<y>70</y>
|
|
||||||
<width>156</width>
|
|
||||||
<height>22</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="fInstitute_label">
|
<widget class="QLabel" name="fInstitute_label">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@ -136,6 +109,37 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="fFileFormat_label">
|
||||||
|
<property name="minimumSize">
|
||||||
|
<size>
|
||||||
|
<width>68</width>
|
||||||
|
<height>0</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>File Format</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<widget class="QWidget" name="layoutWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>99</x>
|
||||||
|
<y>12</y>
|
||||||
|
<width>291</width>
|
||||||
|
<height>111</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="fRunFileName_lineEdit"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="fBeamline_lineEdit"/>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="fInstitute_comboBox">
|
<widget class="QComboBox" name="fInstitute_comboBox">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@ -166,31 +170,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="layoutWidget">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>10</x>
|
|
||||||
<y>100</y>
|
|
||||||
<width>156</width>
|
|
||||||
<height>22</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="fFileFormat_label">
|
|
||||||
<property name="minimumSize">
|
|
||||||
<size>
|
|
||||||
<width>68</width>
|
|
||||||
<height>0</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>File Format</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
<item>
|
||||||
<widget class="QComboBox" name="fFileFormat_comboBox">
|
<widget class="QComboBox" name="fFileFormat_comboBox">
|
||||||
<item>
|
<item>
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PGetFourierBlockDialog</class>
|
<class>PGetFourierBlockDialog</class>
|
||||||
<widget class="QDialog" name="PGetFourierBlockDialog">
|
<widget class="QDialog" name="PGetFourierBlockDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::WindowModal</enum>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PGetFunctionsBlockDialog</class>
|
<class>PGetFunctionsBlockDialog</class>
|
||||||
<widget class="QDialog" name="PGetFunctionsBlockDialog">
|
<widget class="QDialog" name="PGetFunctionsBlockDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::WindowModal</enum>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
@ -79,17 +82,20 @@
|
|||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande';">Supported basic arithmetics: </span><span style=" font-family:'Courier New,courier';">+, -, *, /, ()</span></p>
|
<table style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande';">Supported built-in functions; </span><span style=" font-family:'Courier New,courier';">cos(), sin(), tan(), acos(), asin(), atan(), cosh(), sinh(), tanh(), acosh(), asinh(), atanh(), exp(), log(), ln()</span></p>
|
<tr>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande';">Supported pre-defined constants</span></p>
|
<td style="border: none;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';">gamma_mu = 0.0135538817 (MHz/G)</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande'; font-size:10pt;">Supported basic arithmetics: </span><span style=" font-family:'Courier New,courier'; font-size:10pt;">+, -, *, /, ()</span></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';">pi = 3.1415926535897932846</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande'; font-size:10pt;">Supported built-in functions; </span><span style=" font-family:'Courier New,courier'; font-size:10pt;">cos(), sin(), tan(), acos(), asin(), atan(), cosh(), sinh(), tanh(), acosh(), asinh(), atanh(), exp(), log(), ln()</span></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande';">Parameters and Maps are reached via parX, mapY, where X, Y are numbers, e.g. par1, map3</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande'; font-size:10pt;">Supported pre-defined constants</span></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande';">Examples:</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;">gamma_mu = 0.0135538817 (MHz/G)</span></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';">fun1 = gamma_mu * par3</span><span style=" font-family:'Lucida Grande';"> valid</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;">pi = 3.1415926535897932846</span></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';">fun2 = par2/map4 * sin(par3*par5)</span><span style=" font-family:'Lucida Grande';"> valid</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande'; font-size:10pt;">Parameters and Maps are reached via parX, mapY, where X, Y are numbers, e.g. par1, map3</span></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier';">fun3 = fun1 + par6</span><span style=" font-family:'Lucida Grande';"> invalid, since functions cannot be used with the functions definition</span></p></body></html></string>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Lucida Grande'; font-size:10pt;">Examples:</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;">fun1 = gamma_mu * par3</span><span style=" font-family:'Lucida Grande'; font-size:10pt;"> valid</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;">fun2 = par2/map4 * sin(par3*par5)</span><span style=" font-family:'Lucida Grande'; font-size:10pt;"> valid</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier New,courier'; font-size:10pt;">fun3 = fun1 + par6</span><span style=" font-family:'Lucida Grande'; font-size:10pt;"> invalid, since functions cannot be used with the functions definition</span></p></td></tr></table></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QGroupBox" name="fInput_groupBox">
|
<widget class="QGroupBox" name="fInput_groupBox">
|
||||||
|
@ -2,12 +2,15 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PGetNonMusrRunBlockDialog</class>
|
<class>PGetNonMusrRunBlockDialog</class>
|
||||||
<widget class="QDialog" name="PGetNonMusrRunBlockDialog">
|
<widget class="QDialog" name="PGetNonMusrRunBlockDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::WindowModal</enum>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>402</width>
|
<width>419</width>
|
||||||
<height>300</height>
|
<height>307</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -20,7 +23,7 @@
|
|||||||
<widget class="QGroupBox" name="fRunHeaderInfo_groupBox">
|
<widget class="QGroupBox" name="fRunHeaderInfo_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>401</width>
|
<width>401</width>
|
||||||
<height>131</height>
|
<height>131</height>
|
||||||
@ -199,7 +202,7 @@
|
|||||||
<widget class="QGroupBox" name="fReqiredEntries_groupBox">
|
<widget class="QGroupBox" name="fReqiredEntries_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>130</y>
|
<y>130</y>
|
||||||
<width>401</width>
|
<width>401</width>
|
||||||
<height>131</height>
|
<height>131</height>
|
||||||
@ -347,7 +350,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>270</y>
|
<y>270</y>
|
||||||
<width>381</width>
|
<width>401</width>
|
||||||
<height>27</height>
|
<height>27</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PGetParameterBlockDialog</class>
|
<class>PGetParameterBlockDialog</class>
|
||||||
<widget class="QDialog" name="PGetParameterBlockDialog">
|
<widget class="QDialog" name="PGetParameterBlockDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::WindowModal</enum>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PGetPlotBlockDialog</class>
|
<class>PGetPlotBlockDialog</class>
|
||||||
<widget class="QDialog" name="PGetPlotBlockDialog">
|
<widget class="QDialog" name="PGetPlotBlockDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::WindowModal</enum>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>424</width>
|
<width>440</width>
|
||||||
<height>586</height>
|
<height>592</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<widget class="QGroupBox" name="fRunHeaderInfo_groupBox">
|
<widget class="QGroupBox" name="fRunHeaderInfo_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>421</width>
|
<width>421</width>
|
||||||
<height>121</height>
|
<height>121</height>
|
||||||
@ -193,7 +193,7 @@
|
|||||||
<widget class="QGroupBox" name="fRequiredEntries_groupBox">
|
<widget class="QGroupBox" name="fRequiredEntries_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>120</y>
|
<y>120</y>
|
||||||
<width>421</width>
|
<width>421</width>
|
||||||
<height>301</height>
|
<height>301</height>
|
||||||
@ -468,7 +468,7 @@
|
|||||||
<widget class="QGroupBox" name="fOptionalEntries_groupBox">
|
<widget class="QGroupBox" name="fOptionalEntries_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>420</y>
|
<y>420</y>
|
||||||
<width>421</width>
|
<width>421</width>
|
||||||
<height>121</height>
|
<height>121</height>
|
||||||
@ -540,7 +540,7 @@
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>545</y>
|
<y>545</y>
|
||||||
<width>421</width>
|
<width>421</width>
|
||||||
<height>39</height>
|
<height>39</height>
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>550</width>
|
<width>698</width>
|
||||||
<height>529</height>
|
<height>546</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -23,9 +23,9 @@
|
|||||||
<widget class="QTextEdit" name="fDescription_textEdit">
|
<widget class="QTextEdit" name="fDescription_textEdit">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>10</y>
|
<y>10</y>
|
||||||
<width>541</width>
|
<width>681</width>
|
||||||
<height>211</height>
|
<height>211</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -36,24 +36,27 @@
|
|||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
p, li { white-space: pre-wrap; }
|
p, li { white-space: pre-wrap; }
|
||||||
</style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;">
|
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">Every theory function has to be written on a single line. It starts with the theory function name or its abbreviation followed by the parameters. Consecutive lines of theory functions will be multiplied. If theory functions need to be added, a line with a '+' has to separate them. The parameters are given as the numbers assigned to them in the FITPARAMETER-block.</span></p>
|
<table border="0" style="-qt-table-type: root; margin-top:4px; margin-bottom:4px; margin-left:4px; margin-right:4px;">
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;"></p>
|
<tr>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">Example:</span></p>
|
<td style="border: none;">
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">asymmetry 2</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Every theory function has to be written on a single line. It starts with the theory function name or its abbreviation followed by the parameters. Consecutive lines of theory functions will be multiplied. If theory functions need to be added, a line with a '+' has to separate them. The parameters are given as the numbers assigned to them in the FITPARAMETER-block.</p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">simplExpo 3</span></p>
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">TFieldCos map1 fun2</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Example:</p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">+</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">asymmetry 2</p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">asymmetry 6</span></p>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">simplExpo 3</p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Sans Serif'; font-size:9pt;">simplExpo 7</span></p></body></html></string>
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TFieldCos map1 fun2</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">+</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">asymmetry 6</p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">simplExpo 7</p></td></tr></table></body></html></string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QGroupBox" name="fTheoryInput_groupBox">
|
<widget class="QGroupBox" name="fTheoryInput_groupBox">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>220</y>
|
<y>220</y>
|
||||||
<width>541</width>
|
<width>681</width>
|
||||||
<height>71</height>
|
<height>71</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -64,16 +67,16 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>30</y>
|
<y>20</y>
|
||||||
<width>381</width>
|
<width>541</width>
|
||||||
<height>25</height>
|
<height>41</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QPushButton" name="fPlus_pushButton">
|
<widget class="QPushButton" name="fPlus_pushButton">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>420</x>
|
<x>560</x>
|
||||||
<y>30</y>
|
<y>30</y>
|
||||||
<width>51</width>
|
<width>51</width>
|
||||||
<height>25</height>
|
<height>25</height>
|
||||||
@ -86,7 +89,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<widget class="QPushButton" name="fMultiply_pushButton">
|
<widget class="QPushButton" name="fMultiply_pushButton">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>480</x>
|
<x>620</x>
|
||||||
<y>30</y>
|
<y>30</y>
|
||||||
<width>51</width>
|
<width>51</width>
|
||||||
<height>25</height>
|
<height>25</height>
|
||||||
@ -100,9 +103,9 @@ p, li { white-space: pre-wrap; }
|
|||||||
<widget class="QPlainTextEdit" name="fTheoryBlock_plainTextEdit">
|
<widget class="QPlainTextEdit" name="fTheoryBlock_plainTextEdit">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>290</y>
|
<y>300</y>
|
||||||
<width>541</width>
|
<width>681</width>
|
||||||
<height>201</height>
|
<height>201</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@ -114,9 +117,9 @@ THEORY</string>
|
|||||||
<widget class="QWidget" name="layoutWidget">
|
<widget class="QWidget" name="layoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>10</x>
|
||||||
<y>500</y>
|
<y>510</y>
|
||||||
<width>541</width>
|
<width>681</width>
|
||||||
<height>29</height>
|
<height>29</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
@ -2,12 +2,15 @@
|
|||||||
<ui version="4.0">
|
<ui version="4.0">
|
||||||
<class>PGetTitleBlockDialog</class>
|
<class>PGetTitleBlockDialog</class>
|
||||||
<widget class="QDialog" name="PGetTitleBlockDialog">
|
<widget class="QDialog" name="PGetTitleBlockDialog">
|
||||||
|
<property name="windowModality">
|
||||||
|
<enum>Qt::WindowModal</enum>
|
||||||
|
</property>
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>555</width>
|
<width>556</width>
|
||||||
<height>84</height>
|
<height>90</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
Before Width: | Height: | Size: 918 B After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 770 B After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 603 B After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 532 B After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 928 B After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 806 B After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 418 B After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 624 B After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 986 B After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 560 B After Width: | Height: | Size: 11 KiB |
@ -31,6 +31,8 @@ CONFIG += qt \
|
|||||||
debug
|
debug
|
||||||
|
|
||||||
QT += xml
|
QT += xml
|
||||||
|
QT += webkit
|
||||||
|
QT += network
|
||||||
|
|
||||||
HEADERS = musredit.h \
|
HEADERS = musredit.h \
|
||||||
PHelp.h \
|
PHelp.h \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<!DOCTYPE RCC><RCC version="1.0">
|
<RCC>
|
||||||
<qresource>
|
<qresource>
|
||||||
<file>images/editcopy.xpm</file>
|
<file>images/editcopy.xpm</file>
|
||||||
<file>images/editcut.xpm</file>
|
<file>images/editcut.xpm</file>
|
||||||
@ -23,6 +23,7 @@
|
|||||||
<file>images/musrt0.xpm</file>
|
<file>images/musrt0.xpm</file>
|
||||||
<file>images/musrview.xpm</file>
|
<file>images/musrview.xpm</file>
|
||||||
<file>latex_images/abragam.png</file>
|
<file>latex_images/abragam.png</file>
|
||||||
|
<file>latex_images/abragam.gif</file>
|
||||||
<file>latex_images/asymmetry.png</file>
|
<file>latex_images/asymmetry.png</file>
|
||||||
<file>latex_images/bessel.png</file>
|
<file>latex_images/bessel.png</file>
|
||||||
<file>latex_images/combiLGKT.png</file>
|
<file>latex_images/combiLGKT.png</file>
|
||||||
|